diff options
author | Roland McGrath <roland@gnu.org> | 1995-08-25 19:23:32 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-08-25 19:23:32 +0000 |
commit | 7752137a6a9d9a042d2c2f00e245b920e41737bc (patch) | |
tree | d0d12093452de95c4c7a609bd14d0094439ad956 /pwd/pwd.h | |
parent | Tue Aug 22 16:49:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> (diff) | |
download | glibc-7752137a6a9d9a042d2c2f00e245b920e41737bc.tar.gz glibc-7752137a6a9d9a042d2c2f00e245b920e41737bc.tar.bz2 glibc-7752137a6a9d9a042d2c2f00e245b920e41737bc.zip |
Fri Aug 25 12:12:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
* stdio/vfscanf.c (number): Allow field width to inhibit first
digit after base detection.
* stdio/vfprintf.c (vfprintf: %s): Never search past the limit
specified by the precision.
* grp/grpread.c (__grpscan): New function.
* grp/grp.h (__grpscan): Declare it.
* grp/getgrgid.c: Use __grpscan.
* grp/getgrnam.c: Likewise.
* pwd/pwdread.c (__pwdscan): New function.
* pwd/pwd.h (__pwdscan): Declare it.
* pwd/getpwnam.c: Use __pwdscan.
* pwd/getpwuid.c: Likewise.
Thu Aug 24 16:29:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
MAP_FILE.
* hurd/thread-cancel.c: Return EINTR when called on self.
* sysdeps/i386/elf/start.S (data_start): Define as weak alias for
__data_start.
Diffstat (limited to 'pwd/pwd.h')
-rw-r--r-- | pwd/pwd.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1995 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -58,6 +58,12 @@ extern struct passwd *__pwdread __P ((FILE * __stream, __ptr_t __p)); /* Return a chunk of memory containing pre-initialized data for __pwdread. */ extern __ptr_t __pwdalloc __P ((void)); + +/* Scan the password file, filling in P, until SELECTOR returns nonzero for + an entry. Return the `struct passwd' of P if successful, NULL on + failure. */ +extern struct passwd *__pwdscan __P ((__ptr_t *__p, + int (*__selector) (struct passwd *))); #endif |