1. 01 Jan, 2010 1 commit
  2. 13 Nov, 2009 1 commit
    • Eric Blake's avatar
      getgroups: don't expose GETGROUPS_T to user · 6e4b15b5
      Eric Blake authored
      These days, most systems already declare getgroups with gid_t*.
      But in the rare case that GETGROUPS_T is still int but gid_t
      is short, the user should not have to uglify their code; let
      the replacement hide all the magic.
      
      Tested by configuring with ac_cv_type_getgroups=uint64_t on a
      platform with 32-bit gid_t, and ignoring compiler warnings.
      
      However, since we don't replace setgroups, the GETGROUPS_T
      workaround is still needed there for now.
      
      * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
      an element at a time if GETGROUPS_T is wrong size.
      * lib/getugroups.h (getugroups): Change signature.
      * lib/unistd.in.h (getgroups): Likewise.
      * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
      signature needs fixing.
      * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
      AC_TYPE_GETGROUPS.
      * modules/group-member (Depends-on): Add getgroups.
      * lib/group-member.c (group_info, get_group_info): Use gid_t.
      (group_member): Rely on getgroups replacement.
      * lib/getugroups.c (getugroups): Use gid_t.
      * tests/test-getgroups.c (main): Likewise.
      * NEWS: Mention the signature change.
      * doc/posix-functions/getgroups.texi (getgroups): Mention the
      problem with signature.
      * doc/glibc-functions/setgroups.texi (setgroups): Mention that
      GETGROUPS_T is still useful for setgroups.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      6e4b15b5
  3. 07 Oct, 2007 1 commit
  4. 04 Jul, 2007 1 commit
    • Jim Meyering's avatar
      * lib/getugroups.h: New file. · c471cb38
      Jim Meyering authored
      * lib/getugroups.c: Include "getugroups.h".
      Remove uses of "register" keyword.
      Move local variable, "cp", down into scope where used.
      Give "username" parameter the "const" attribute.
      * modules/getugroups (Files): Add lib/getugroups.h
      c471cb38
  5. 14 May, 2005 1 commit
  6. 06 Aug, 2004 1 commit
  7. 22 Jun, 2002 1 commit
  8. 05 Oct, 2001 1 commit
  9. 07 Aug, 2000 1 commit
  10. 09 Jul, 2000 1 commit
  11. 07 Dec, 1998 1 commit
  12. 15 Jul, 1996 1 commit
  13. 08 Nov, 1992 1 commit
  14. 31 Oct, 1992 1 commit