Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jun 1996 22:54:06 GMT
From:      James Raynard <fhackers@jraynard.demon.co.uk>
To:        joerg_wunsch@uriah.heep.sax.de
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Two queries (libcompat.so and timedef())
Message-ID:  <199606022254.WAA02832@jraynard.demon.co.uk>
In-Reply-To: <199606021311.PAA01229@uriah.heep.sax.de> (message from J Wunsch on Sun, 2 Jun 1996 15:11:24 %2B0200 (MET DST))

next in thread | previous in thread | raw e-mail | index | archive | help

> > 1. ftok(). The prototype for this function is missing from
> >    <sys/ipc.h>. No big deal, it's probably just an oversight which is
> 
> It should be in some system header (perhaps in <libcompat.h> if all
> else fails), but not in some <sys/foo.h>.  The <sys/*> subhierarchy
> is for declaring _kernel_ interfaces, not library interfaces.  It's
> the primary source of include files for building the kernel.

OK, I just mentioned <sys/ipc.h> because that's what was in the man
page.

Perhaps it might be worth having something like <libcompat.h> as there
are a couple of other functions in libcompat that aren't prototyped in
the headers as far as I can see (eg getpw()).

> I wonder where SysV did provide the prototype.  Perhaps nowhere. :)

Well, apparently they put its man page under stdipc(3C), so your guess
is as good as mine 8-)

> Intention.  It's not worth stuffing legacy functions into a shared
> lib.
> 
> It's a userland (i.e. library) thing, not a kernel one.  The other
> SysV stuff in libc is simply the syscall wrappers only (as for all
> other syscalls).

Understood.

Thanks.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606022254.WAA02832>