about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-04-04 19:23:47 -0400
committerRich Felker <dalias@aerifal.cx>2013-04-04 19:23:47 -0400
commitddfb267b0e72499f6022981733264a063ec881f0 (patch)
tree854193fad4a1c8ba4dac7816a4bac90e16f15654 /include
parent771c6cead0684487a0699750ff740e3d3894200a (diff)
downloadmusl-ddfb267b0e72499f6022981733264a063ec881f0.tar.gz
musl-ddfb267b0e72499f6022981733264a063ec881f0.tar.xz
musl-ddfb267b0e72499f6022981733264a063ec881f0.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/grp.h1
-rw-r--r--include/pwd.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/grp.h b/include/grp.h
index 8e2e1f20..b331d326 100644
--- a/include/grp.h
+++ b/include/grp.h
@@ -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)
diff --git a/include/pwd.h b/include/pwd.h
index 91fe426f..55d9d42d 100644
--- a/include/pwd.h
+++ b/include/pwd.h
@@ -39,6 +39,7 @@ int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **)
 
 #ifdef _GNU_SOURCE
 struct passwd *fgetpwent(FILE *);
+int putpwent(const struct passwd *, FILE *);
 #endif
 
 #ifdef __cplusplus