summary refs log tree commit diff
path: root/shadow/shadow.h
diff options
context:
space:
mode:
Diffstat (limited to 'shadow/shadow.h')
-rw-r--r--shadow/shadow.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/shadow/shadow.h b/shadow/shadow.h
index 133cfd6009..c27cc9a996 100644
--- a/shadow/shadow.h
+++ b/shadow/shadow.h
@@ -74,31 +74,31 @@ extern int putspent __P ((__const struct spwd *__p, FILE *__stream));
 
 #ifdef	__USE_REENTRANT
 /* Reentrant versions of some of the functions above.  */
-extern struct spwd *__getspent_r __P ((struct spwd *__result_buf,
-				       char *__buffer, int __buflen));
-extern struct spwd *getspent_r __P ((struct spwd *__result_buf,
-				     char *__buffer, int __buflen));
-
-extern struct spwd *__getspnam_r __P ((__const char *__name,
-				       struct spwd *__result_buf,
-				       char *__buffer, int __buflen));
-extern struct spwd *getspnam_r __P ((__const char *__name,
-				     struct spwd *__result_buf,
-				     char *__buffer, int __buflen));
-
-extern struct spwd *__sgetspent_r __P ((__const char *__string,
-					struct spwd *__result_buf,
-					char *__buffer, int __buflen));
-extern struct spwd *sgetspent_r __P ((__const char *__string,
-				      struct spwd *__result_buf,
-				      char *__buffer, int __buflen));
-
-extern struct spwd *__fgetspent_r __P ((FILE *__stream,
-					struct spwd *__result_buf,
-					char *__buffer, int __buflen));
-extern struct spwd *fgetspent_r __P ((FILE *__stream,
-				      struct spwd *__result_buf,
-				      char *__buffer, int __buflen));
+extern int __getspent_r __P ((struct spwd *__result_buf, char *__buffer,
+			      size_t __buflen, struct spwd **__result));
+extern int getspent_r __P ((struct spwd *__result_buf, char *__buffer,
+			    size_t __buflen, struct spwd **__result));
+
+extern int __getspnam_r __P ((__const char *__name, struct spwd *__result_buf,
+			      char *__buffer, size_t __buflen,
+			      struct spwd **__result));
+extern int getspnam_r __P ((__const char *__name, struct spwd *__result_buf,
+			    char *__buffer, size_t __buflen,
+			    struct spwd **__result));
+
+extern int __sgetspent_r __P ((__const char *__string,
+			       struct spwd *__result_buf, char *__buffer,
+			       size_t __buflen, struct spwd **__result));
+extern int sgetspent_r __P ((__const char *__string, struct spwd *__result_buf,
+			     char *__buffer, size_t __buflen,
+			     struct spwd **__result));
+
+extern int __fgetspent_r __P ((FILE *__stream, struct spwd *__result_buf,
+			       char *__buffer, size_t __buflen,
+			       struct spwd **__result));
+extern int fgetspent_r __P ((FILE *__stream, struct spwd *__result_buf,
+			     char *__buffer, size_t __buflen,
+			     struct spwd **__result));
 #endif	/* reentrant */