Re: _fpathconf() and __semctl() prototypes

2003-02-13 Thread Garrett Wollman
On Sun, 9 Feb 2003 22:47:47 +1100 (EST), Bruce Evans [EMAIL PROTECTED] said:

 _fpathconf() is quite different from __semctl.  It is not a syscall.
 It is a weak alias for fpathconf() which is prototyped normally in
 unistd.h.  The prototype for fpathconf() should be turned into
 a prototype for _fpathconf() by namespace.h, but statvfs.c is missing
 theinclude of unistd.h so this doesn't happen.

It's there in the version on my machine (rev. 1.2 by tjr dated
2002/09/06).

-GAWollman


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: _fpathconf() and __semctl() prototypes

2003-02-13 Thread Bruce Evans
On Thu, 13 Feb 2003, Garrett Wollman wrote:

 On Sun, 9 Feb 2003 22:47:47 +1100 (EST), Bruce Evans [EMAIL PROTECTED] said:

  _fpathconf() is quite different from __semctl.  It is not a syscall.
  It is a weak alias for fpathconf() which is prototyped normally in
  unistd.h.  The prototype for fpathconf() should be turned into
  a prototype for _fpathconf() by namespace.h, but statvfs.c is missing
  theinclude of unistd.h so this doesn't happen.

 It's there in the version on my machine (rev. 1.2 by tjr dated
 2002/09/06).

Oops.  It's there in my version too.  I jumped to the conclusion that it
isn't there after grepping for _fpathconf in namespace.h.  The problem is
that _fpathconf is in the `#if 0' section.

Bruce


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: _fpathconf() and __semctl() prototypes

2003-02-09 Thread Bruce Evans
On Sat, 8 Feb 2003, Kris Kennaway wrote:

 On Sat, Feb 08, 2003 at 02:59:30PM -0800, Kris Kennaway wrote:
  Can someone take a look at lib/libc/gen/semctl.c and tell me where
  the __semctl() sysctl should be prototyped?

 Also _fpathconf() in lib/libc/gen/statvfs.c

_fpathconf() is quite different from __semctl.  It is not a syscall.
It is a weak alias for fpathconf() which is prototyped normally in
unistd.h.  The prototype for fpathconf() should be turned into
a prototype for _fpathconf() by namespace.h, but statvfs.c is missing
theinclude of unistd.h so this doesn't happen.

Bruce


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: _fpathconf() and __semctl() prototypes

2003-02-09 Thread Kris Kennaway
On Sun, Feb 09, 2003 at 10:47:47PM +1100, Bruce Evans wrote:
 On Sat, 8 Feb 2003, Kris Kennaway wrote:
 
  On Sat, Feb 08, 2003 at 02:59:30PM -0800, Kris Kennaway wrote:
   Can someone take a look at lib/libc/gen/semctl.c and tell me where
   the __semctl() sysctl should be prototyped?
 
  Also _fpathconf() in lib/libc/gen/statvfs.c
 
 _fpathconf() is quite different from __semctl.  It is not a syscall.
 It is a weak alias for fpathconf() which is prototyped normally in
 unistd.h.  The prototype for fpathconf() should be turned into
 a prototype for _fpathconf() by namespace.h, but statvfs.c is missing
 theinclude of unistd.h so this doesn't happen.

Thanks for your help.

Kris



msg52099/pgp0.pgp
Description: PGP signature


Re: _fpathconf() and __semctl() prototypes

2003-02-08 Thread Maxim Sobolev
On Sat, Feb 08, 2003 at 03:06:27PM -0800, Kris Kennaway wrote:
 On Sat, Feb 08, 2003 at 02:59:30PM -0800, Kris Kennaway wrote:
  Can someone take a look at lib/libc/gen/semctl.c and tell me where
  the __semctl() sysctl should be prototyped?
 
 Also _fpathconf() in lib/libc/gen/statvfs.c

/usr/src/lib/libc/include/namespace.h

AFAIK, those `_*' functions are necessary in the libc_r, where it is needed
to make sure that a thread-safe version of the function in question is called
instead of unsafe one.

-Maxim

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message