This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

setresgid,setresuid: Prototypes missing



Hi,

I'm currently compiling the current glibc 2.1 CVS version with
-Wmissing-prototypes and noticed the following messages:
../sysdeps/unix/sysv/linux/i386/setresgid.c:34: warning: no previous prototype for `setresgid'
../sysdeps/unix/sysv/linux/i386/setresuid.c:34: warning: no previous prototype for `__setresuid'

Greping through /usr/include/* I couldn't find the declarations for
these functions.  Where should the prototypes be added?

The Linux man pages have:

SYNOPSIS
       #include <unistd.h>

       int setresuid(uid_t ruid, uid_t euid, uid_t suid);
       int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
[...]
CONFORMING TO
       This call is Linux-specific.

Andreas
-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]