add put*ent functions for passwd/group files and similar for shadow

since shadow does not yet support enumeration (getspent), the
corresponding FILE-based get and put versions are also subbed out for
now. this is partly out of laziness and partly because it's not clear
how they should work in the presence of TCB shadow files. the stubs
should make it possible to compile some software that expects them to
exist, but such software still may not work properly.
This commit is contained in:
Rich Felker
2013-04-04 19:23:47 -04:00
parent 771c6cead0
commit ddfb267b0e
5 changed files with 36 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ void setgrent(void);
#ifdef _GNU_SOURCE
struct group *fgetgrent(FILE *stream);
int putgrent(const struct group *, FILE *);
#endif
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)