* lib/commonio.c, lib/commonio.h, lib/groupio.c, lib/groupio.h,

lib/pwio.c, lib/pwio.h, lib/shadowio.c, lib/shadowio.h: Added
	splint annotations. The *_locate() and *_next() functions
	currently return an observer. As the structure are often modified
	by the caller, it could maybe be changed to exposed later. (and
	non-const).
This commit is contained in:
nekral-guest
2009-04-23 21:19:02 +00:00
parent d0d01ffb00
commit 6e357e14fc
9 changed files with 30 additions and 21 deletions

View File

@@ -39,12 +39,12 @@
#include <pwd.h>
extern int pw_close (void);
extern /*@null@*/const struct passwd *pw_locate (const char *name);
extern /*@null@*/const struct passwd *pw_locate_uid (uid_t uid);
extern /*@observer@*/ /*@null@*/const struct passwd *pw_locate (const char *name);
extern /*@observer@*/ /*@null@*/const struct passwd *pw_locate_uid (uid_t uid);
extern int pw_lock (void);
extern int pw_setdbname (const char *filename);
extern /*@observer@*/const char *pw_dbname (void);
extern /*@null@*/const struct passwd *pw_next (void);
extern /*@observer@*/ /*@null@*/const struct passwd *pw_next (void);
extern int pw_open (int mode);
extern int pw_remove (const char *name);
extern int pw_rewind (void);