aboutsummaryrefslogtreecommitdiff
path: root/pwd/pwd.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-09 21:56:43 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-09 21:56:43 +0000
commitc1422e5b7cdb4400f934c91bcefa3a1a96d789fb (patch)
tree7f8981b86c4ce4b5bb899f690eeb03d6645826a5 /pwd/pwd.h
parenta4a1492eb94de4f5c5ec84a5898e994fca5f317b (diff)
downloadglibc-c1422e5b7cdb4400f934c91bcefa3a1a96d789fb.zip
glibc-c1422e5b7cdb4400f934c91bcefa3a1a96d789fb.tar.gz
glibc-c1422e5b7cdb4400f934c91bcefa3a1a96d789fb.tar.bz2
Update.
Patch by khendricks@ivey.uwo.ca [libc/1382].
Diffstat (limited to 'pwd/pwd.h')
-rw-r--r--pwd/pwd.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/pwd/pwd.h b/pwd/pwd.h
index a528a51..651b9da 100644
--- a/pwd/pwd.h
+++ b/pwd/pwd.h
@@ -67,29 +67,29 @@ struct passwd
#if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN_EXTENDED
/* Rewind the password-file stream. */
-extern void setpwent __P ((void));
+extern void setpwent (void) __THROW;
/* Close the password-file stream. */
-extern void endpwent __P ((void));
+extern void endpwent (void) __THROW;
/* Read an entry from the password-file stream, opening it if necessary. */
-extern struct passwd *getpwent __P ((void));
+extern struct passwd *getpwent (void) __THROW;
#endif
#ifdef __USE_SVID
/* Read an entry from STREAM. */
-extern struct passwd *fgetpwent __P ((FILE *__stream));
+extern struct passwd *fgetpwent (FILE *__stream) __THROW;
/* Write the given entry onto the given stream. */
-extern int putpwent __P ((__const struct passwd *__restrict __p,
- FILE *__restrict __f));
+extern int putpwent (__const struct passwd *__restrict __p,
+ FILE *__restrict __f) __THROW;
#endif
/* Search for an entry with a matching user ID. */
-extern struct passwd *getpwuid __P ((__uid_t __uid));
+extern struct passwd *getpwuid (__uid_t __uid) __THROW;
/* Search for an entry with a matching username. */
-extern struct passwd *getpwnam __P ((__const char *__name));
+extern struct passwd *getpwnam (__const char *__name) __THROW;
#if defined __USE_POSIX || defined __USE_MISC
@@ -108,29 +108,29 @@ extern struct passwd *getpwnam __P ((__const char *__name));
POSIX people would choose. */
# if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN_EXTENDED
-extern int getpwent_r __P ((struct passwd *__restrict __resultbuf,
- char *__restrict __buffer, size_t __buflen,
- struct passwd **__restrict __result));
+extern int getpwent_r (struct passwd *__restrict __resultbuf,
+ char *__restrict __buffer, size_t __buflen,
+ struct passwd **__restrict __result) __THROW;
# endif
-extern int getpwuid_r __P ((__uid_t __uid,
- struct passwd *__restrict __resultbuf,
- char *__restrict __buffer, size_t __buflen,
- struct passwd **__restrict __result));
+extern int getpwuid_r (__uid_t __uid,
+ struct passwd *__restrict __resultbuf,
+ char *__restrict __buffer, size_t __buflen,
+ struct passwd **__restrict __result) __THROW;
-extern int getpwnam_r __P ((__const char *__restrict __name,
- struct passwd *__restrict __resultbuf,
- char *__restrict __buffer, size_t __buflen,
- struct passwd **__restrict __result));
+extern int getpwnam_r (__const char *__restrict __name,
+ struct passwd *__restrict __resultbuf,
+ char *__restrict __buffer, size_t __buflen,
+ struct passwd **__restrict __result) __THROW;
# ifdef __USE_SVID
/* Read an entry from STREAM. This function is not standardized and
probably never will. */
-extern int fgetpwent_r __P ((FILE *__restrict __stream,
- struct passwd *__restrict __resultbuf,
- char *__restrict __buffer, size_t __buflen,
- struct passwd **__restrict __result));
+extern int fgetpwent_r (FILE *__restrict __stream,
+ struct passwd *__restrict __resultbuf,
+ char *__restrict __buffer, size_t __buflen,
+ struct passwd **__restrict __result) __THROW;
# endif
#endif /* POSIX or reentrant */
@@ -139,7 +139,7 @@ extern int fgetpwent_r __P ((FILE *__restrict __stream,
/* Re-construct the password-file line for the given uid
in the given buffer. This knows the format that the caller
will expect, but this need not be the format of the password file. */
-extern int getpw __P ((__uid_t __uid, char *__buffer));
+extern int getpw (__uid_t __uid, char *__buffer) __THROW;
#endif
__END_DECLS