diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-03-22 20:43:35 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-03-22 20:43:35 +0000 |
commit | d126b4a3fbf7e423206712145b4a4efdc0c5b1c1 (patch) | |
tree | c5ee35edf79da686621f240ef7451620dc63b04e | |
parent | 89663ff0fa2abe08f9594b372ea5f9f298bf98e7 (diff) |
Mark SVID functions
-rw-r--r-- | libc/pwd_grp/pwd_grp.c | 10 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/stime.c | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/libc/pwd_grp/pwd_grp.c b/libc/pwd_grp/pwd_grp.c index 1fe7b12c4..1b341f3fd 100644 --- a/libc/pwd_grp/pwd_grp.c +++ b/libc/pwd_grp/pwd_grp.c @@ -92,6 +92,7 @@ extern int __pgsreader(int (*__parserfunc)(void *d, char *line), void *data, /**********************************************************************/ #ifdef L_fgetpwent_r +#ifdef __USE_SVID libc_hidden_proto(fgetpwent_r) int fgetpwent_r(FILE *__restrict stream, struct passwd *__restrict resultbuf, char *__restrict buffer, size_t buflen, @@ -108,11 +109,13 @@ int fgetpwent_r(FILE *__restrict stream, struct passwd *__restrict resultbuf, return rv; } libc_hidden_def(fgetpwent_r) +#endif #endif /**********************************************************************/ #ifdef L_fgetgrent_r +#ifdef __USE_SVID libc_hidden_proto(fgetgrent_r) int fgetgrent_r(FILE *__restrict stream, struct group *__restrict resultbuf, char *__restrict buffer, size_t buflen, @@ -129,6 +132,7 @@ int fgetgrent_r(FILE *__restrict stream, struct group *__restrict resultbuf, return rv; } libc_hidden_def(fgetgrent_r) +#endif #endif /**********************************************************************/ @@ -159,6 +163,7 @@ libc_hidden_def(fgetspent_r) /**********************************************************************/ #ifdef L_fgetpwent +#ifdef __USE_SVID libc_hidden_proto(fgetpwent_r) struct passwd *fgetpwent(FILE *stream) @@ -170,11 +175,13 @@ struct passwd *fgetpwent(FILE *stream) fgetpwent_r(stream, &resultbuf, buffer, sizeof(buffer), &result); return result; } +#endif #endif /**********************************************************************/ #ifdef L_fgetgrent +#ifdef __USE_SVID libc_hidden_proto(fgetgrent_r) struct group *fgetgrent(FILE *stream) @@ -186,6 +193,7 @@ struct group *fgetgrent(FILE *stream) fgetgrent_r(stream, &resultbuf, buffer, sizeof(buffer), &result); return result; } +#endif #endif /**********************************************************************/ @@ -752,6 +760,7 @@ int initgroups(const char *user, gid_t gid) /**********************************************************************/ #ifdef L_putpwent +#ifdef __USE_SVID int putpwent(const struct passwd *__restrict p, FILE *__restrict f) { int rv = -1; @@ -772,6 +781,7 @@ int putpwent(const struct passwd *__restrict p, FILE *__restrict f) return rv; } +#endif #endif /**********************************************************************/ diff --git a/libc/sysdeps/linux/common/stime.c b/libc/sysdeps/linux/common/stime.c index 9f9615d3e..387122ff3 100644 --- a/libc/sysdeps/linux/common/stime.c +++ b/libc/sysdeps/linux/common/stime.c @@ -10,6 +10,8 @@ #include "syscalls.h" #include <time.h> #include <sys/time.h> + +#ifdef __USE_SVID #ifdef __NR_stime _syscall1(int, stime, const time_t *, t); #else @@ -28,3 +30,4 @@ int stime(const time_t * when) return settimeofday(&tv, (struct timezone *) 0); } #endif +#endif |