silly games.
-Erik
# To compile vs uClibc, just use the compiler wrapper built by uClibc...
# Everything should compile and work as expected these days...
-#CC:=/usr/i386-linux-uclibc/usr/bin/i386-uclibc-gcc
+#CC:=/usr/i386-linux-uclibc/bin/i386-uclibc-gcc
# To compile vs some other alternative libc, you may need to use/adjust
# the following lines to meet your needs...
#include <sys/stat.h>
#include <ctype.h>
-#include "pwd.h"
-#include "grp.h"
+#include "pwd_.h"
+#include "grp_.h"
static int parse_config_file ( void );
#include <string.h>
#include <stdlib.h>
#include "busybox.h"
-#include "pwd.h"
-#include "grp.h"
+#include "pwd_.h"
+#include "grp_.h"
/*struct passwd *getpwnam();*/
#include <unistd.h>
#include "busybox.h"
-#include "pwd.h"
+#include "pwd_.h"
static int start = 0;
static int stop = 0;
+++ /dev/null
-#ifndef __CONFIG_GRP_H
-#define __CONFIG_GRP_H
-
-#if !defined CONFIG_USE_BB_PWD_GRP
-#include_next <grp.h>
-
-#else
-
-#include <sys/types.h>
-#include <features.h>
-#include <stdio.h>
-
-
-/* The group structure */
-struct group
-{
- char *gr_name; /* Group name. */
- char *gr_passwd; /* Password. */
- gid_t gr_gid; /* Group ID. */
- char **gr_mem; /* Member list. */
-};
-
-extern void setgrent __P ((void));
-extern void endgrent __P ((void));
-extern struct group * getgrent __P ((void));
-
-extern struct group * getgrgid __P ((__const gid_t gid));
-extern struct group * getgrnam __P ((__const char * name));
-
-extern struct group * fgetgrent __P ((FILE * file));
-
-extern int setgroups __P ((size_t n, __const gid_t * groups));
-extern int initgroups __P ((__const char * user, gid_t gid));
-
-extern struct group * __getgrent __P ((int grp_fd));
-
-#endif /* USE_SYSTEM_PWD_GRP */
-#endif /* __CONFIG_GRP_H */
-
--- /dev/null
+#ifndef __CONFIG_GRP_H
+#define __CONFIG_GRP_H
+
+#if !defined CONFIG_USE_BB_PWD_GRP
+#include <grp.h>
+
+#else
+
+#include <sys/types.h>
+#include <features.h>
+#include <stdio.h>
+
+
+/* The group structure */
+struct group
+{
+ char *gr_name; /* Group name. */
+ char *gr_passwd; /* Password. */
+ gid_t gr_gid; /* Group ID. */
+ char **gr_mem; /* Member list. */
+};
+
+extern void setgrent __P ((void));
+extern void endgrent __P ((void));
+extern struct group * getgrent __P ((void));
+
+extern struct group * getgrgid __P ((__const gid_t gid));
+extern struct group * getgrnam __P ((__const char * name));
+
+extern struct group * fgetgrent __P ((FILE * file));
+
+extern int setgroups __P ((size_t n, __const gid_t * groups));
+extern int initgroups __P ((__const char * user, gid_t gid));
+
+extern struct group * __getgrent __P ((int grp_fd));
+
+#endif /* USE_SYSTEM_PWD_GRP */
+#endif /* __CONFIG_GRP_H */
+
#include "config.h"
-#include "pwd.h"
-#include "grp.h"
+#include "pwd_.h"
+#include "grp_.h"
#ifdef CONFIG_FEATURE_SHADOWPASSWDS
#include "shadow_.h"
#endif
+++ /dev/null
-#ifndef __CONFIG_PWD_H
-#define __CONFIG_PWD_H
-
-#if !defined CONFIG_USE_BB_PWD_GRP
-#include_next <pwd.h>
-
-#else
-
-#include <sys/types.h>
-#include <features.h>
-#include <stdio.h>
-
-/* The passwd structure. */
-struct passwd
-{
- char *pw_name; /* Username. */
- char *pw_passwd; /* Password. */
- uid_t pw_uid; /* User ID. */
- gid_t pw_gid; /* Group ID. */
- char *pw_gecos; /* Real name. */
- char *pw_dir; /* Home directory. */
- char *pw_shell; /* Shell program. */
-};
-
-extern void setpwent __P ((void));
-extern void endpwent __P ((void));
-extern struct passwd * getpwent __P ((void));
-
-extern int putpwent __P ((__const struct passwd * __p, FILE * __f));
-extern int getpw __P ((uid_t uid, char *buf));
-
-extern struct passwd * fgetpwent __P ((FILE * file));
-
-extern struct passwd * getpwuid __P ((__const uid_t));
-extern struct passwd * getpwnam __P ((__const char *));
-
-extern struct passwd * __getpwent __P ((__const int passwd_fd));
-
-#endif /* USE_SYSTEM_PWD_GRP */
-#endif /* __CONFIG_PWD_H */
-
--- /dev/null
+#ifndef __CONFIG_PWD_H
+#define __CONFIG_PWD_H
+
+#if !defined CONFIG_USE_BB_PWD_GRP
+#include <pwd.h>
+
+#else
+
+#include <sys/types.h>
+#include <features.h>
+#include <stdio.h>
+
+/* The passwd structure. */
+struct passwd
+{
+ char *pw_name; /* Username. */
+ char *pw_passwd; /* Password. */
+ uid_t pw_uid; /* User ID. */
+ gid_t pw_gid; /* Group ID. */
+ char *pw_gecos; /* Real name. */
+ char *pw_dir; /* Home directory. */
+ char *pw_shell; /* Shell program. */
+};
+
+extern void setpwent __P ((void));
+extern void endpwent __P ((void));
+extern struct passwd * getpwent __P ((void));
+
+extern int putpwent __P ((__const struct passwd * __p, FILE * __f));
+extern int getpw __P ((uid_t uid, char *buf));
+
+extern struct passwd * fgetpwent __P ((FILE * file));
+
+extern struct passwd * getpwuid __P ((__const uid_t));
+extern struct passwd * getpwnam __P ((__const char *));
+
+extern struct passwd * __getpwent __P ((__const int passwd_fd));
+
+#endif /* USE_SYSTEM_PWD_GRP */
+#endif /* __CONFIG_PWD_H */
+
#include <unistd.h>
#include "busybox.h"
-#include "pwd.h"
+#include "pwd_.h"
static int start = 0;
static int stop = 0;
#include <stdio.h>
#include <string.h>
#include "libbb.h"
-#include "pwd.h"
-#include "grp.h"
+#include "pwd_.h"
+#include "grp_.h"
/* gets a groupname given a gid */
#include <stdio.h>
#include <string.h>
#include "libbb.h"
-#include "pwd.h"
-#include "grp.h"
+#include "pwd_.h"
+#include "grp_.h"
/* returns a gid given a group name */
#include <stdio.h>
#include <string.h>
#include "libbb.h"
-#include "pwd.h"
-#include "grp.h"
+#include "pwd_.h"
+#include "grp_.h"
/* returns a uid given a username */
#include <stdio.h>
#include <string.h>
#include "libbb.h"
-#include "pwd.h"
-#include "grp.h"
+#include "pwd_.h"
+#include "grp_.h"
#include <stdio.h>
#include <string.h>
#include "libbb.h"
-#include "pwd.h"
-#include "grp.h"
+#include "pwd_.h"
+#include "grp_.h"
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
-#include "grp.h"
+#include "grp_.h"
/*
* Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
-#include "pwd.h"
+#include "pwd_.h"
#define PWD_BUFFER_SIZE 256
#include <stdio.h>
#include <errno.h>
-#include "grp.h"
+#include "grp_.h"
struct group *fgetgrent(FILE * file)
{
#include <errno.h>
#include <stdio.h>
-#include "pwd.h"
+#include "pwd_.h"
struct passwd *fgetpwent(FILE * file)
{
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
-#include "grp.h"
+#include "grp_.h"
struct group *getgrgid(const gid_t gid)
{
#include <string.h>
#include <errno.h>
#include <fcntl.h>
-#include "grp.h"
+#include "grp_.h"
struct group *getgrnam(const char *name)
{
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
-#include "pwd.h"
+#include "pwd_.h"
int getpw(uid_t uid, char *buf)
{
#include <string.h>
#include <errno.h>
#include <fcntl.h>
-#include "pwd.h"
+#include "pwd_.h"
struct passwd *getpwnam(const char *name)
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
-#include "pwd.h"
+#include "pwd_.h"
struct passwd *getpwuid(uid_t uid)
{
#include <unistd.h>
#include <fcntl.h>
-#include "grp.h"
+#include "grp_.h"
static int grp_fd = -1;
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
-#include "grp.h"
+#include "grp_.h"
/*
* Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer
#include <stdio.h>
#include <errno.h>
-#include "pwd.h"
+#include "pwd_.h"
int putpwent(const struct passwd *passwd, FILE * f)
{
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
-#include "pwd.h"
+#include "pwd_.h"
#include <fcntl.h>
/*
/* This is needed for libc5 */
#include <asm/unistd.h>
#endif
-#include "grp.h"
+#include "grp_.h"
//#define __NR_setgroups 81
_syscall2(int, setgroups, size_t, size, const gid_t *, list);
#include <sys/types.h>
#include <unistd.h>
#include "busybox.h"
-#include "pwd.h"
-#include "grp.h"
+#include "pwd_.h"
+#include "grp_.h"
/* structs __________________________ */
return addgroup(group_file, group, gid);
}
-/* $Id: addgroup.c,v 1.2 2002/06/23 04:24:24 andersen Exp $ */
+/* $Id: addgroup.c,v 1.3 2002/07/03 23:19:18 andersen Exp $ */
#include <unistd.h>
#include "inet_common.h"
#include "busybox.h"
-#include "pwd.h"
+#include "pwd_.h"
#ifdef CONFIG_ROUTE
extern void displayroutes(int noresolve, int netstatfmt);
#include <sys/types.h>
#include <sys/wait.h>
#include "busybox.h"
-#include "pwd.h"
+#include "pwd_.h"
#if !defined(FNMATCH_BROKEN)
/*
* Copyright (c) 1999 Herbert Xu <herbert@debian.org>
* This file contains code for the times builtin.
- * $Id: ash.c,v 1.52 2002/06/06 12:07:28 andersen Exp $
+ * $Id: ash.c,v 1.53 2002/07/03 23:19:22 andersen Exp $
*/
static int timescmd (int argc, char **argv)
{
#ifdef CONFIG_FEATURE_GETUSERNAME_AND_HOMEDIR
# ifndef TEST
-# include "pwd.h"
+# include "pwd_.h"
# else
# include <pwd.h>
# endif /* TEST */