void setusershell() {}
void endusershell() {}
+#ifndef BIONIC_O
struct mntent *getmntent_r(FILE *fp, struct mntent *mnt, char *buf, int buflen)
{
char *tokp = NULL, *s;
/* declared in grp.h, but not necessary */
#if !ENABLE_USE_BB_PWD_GRP
-#ifndef BIONIC_O
int setpwent() { return 0; }
-#endif
void setgrent() {}
void endgrent() {}
#endif
-
+#endif
#define killpg_busybox(P, S) kill(-(P), S)
+#if !defined(BIONIC_O)
#define setmntent fopen
#define endmntent fclose
+#endif
/* defined in bionic/utmp.c */
void endutent(void);
/* bionic's vfork is rather broken; for now a terrible bandaid: */
#define vfork fork
-#if !defined(BIONIC_L) && !defined(BLOATCHECK)
+#if defined(BIONIC_L) && !defined(BLOATCHECK)
#define _SOCKLEN_T_DECLARED
-typedef int socklen_t;
#endif
/* wait3 was removed in android L */