Bump to version 1.22.1
[platform/upstream/busybox.git] / include / pwd_.h
index aa63ac9..625b6f5 100644 (file)
@@ -18,7 +18,7 @@
    02111-1307 USA.  */
 
 /*
- *     POSIX Standard: 9.2.2 User Database Access      <pwd.h>
+ * POSIX Standard: 9.2.2 User Database Access  <pwd.h>
  */
 
 #ifndef BB_PWD_H
@@ -30,7 +30,7 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
  * We will use libc-defined structures, but will #define function names
  * so that function calls are directed to bb_internal_XXX replacements
  */
-
+#undef endpwent
 #define setpwent    bb_internal_setpwent
 #define endpwent    bb_internal_endpwent
 #define getpwent    bb_internal_getpwent
@@ -63,7 +63,7 @@ extern struct passwd *fgetpwent(FILE *__stream);
 
 /* Write the given entry onto the given stream.  */
 extern int putpwent(const struct passwd *__restrict __p,
-                    FILE *__restrict __f);
+               FILE *__restrict __f);
 #endif
 
 /* Search for an entry with a matching user ID.  */
@@ -81,25 +81,25 @@ extern struct passwd *getpwnam(const char *__name);
    POSIX people would choose.  */
 
 extern int getpwent_r(struct passwd *__restrict __resultbuf,
-                      char *__restrict __buffer, size_t __buflen,
-                      struct passwd **__restrict __result);
+               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);
+               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);
+               struct passwd *__restrict __resultbuf,
+               char *__restrict __buffer, size_t __buflen,
+               struct passwd **__restrict __result);
 
 /* Read an entry from STREAM.  This function is not standardized and
    probably never will.  */
 extern int fgetpwent_r(FILE *__restrict __stream,
-                       struct passwd *__restrict __resultbuf,
-                       char *__restrict __buffer, size_t __buflen,
-                       struct passwd **__restrict __result);
+               struct passwd *__restrict __resultbuf,
+               char *__restrict __buffer, size_t __buflen,
+               struct passwd **__restrict __result);
 
 POP_SAVED_FUNCTION_VISIBILITY