Scrub pwd.h and grp.h handling so we don't have to play any

silly games.
 -Erik
This commit is contained in:
Eric Andersen 2002-07-03 23:19:26 +00:00
parent 360e254954
commit 887ca79f04
31 changed files with 42 additions and 42 deletions

View File

@ -91,7 +91,7 @@ export VERSION BUILDTIME TOPDIR HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP
# To compile vs uClibc, just use the compiler wrapper built by uClibc... # To compile vs uClibc, just use the compiler wrapper built by uClibc...
# Everything should compile and work as expected these days... # 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 # To compile vs some other alternative libc, you may need to use/adjust
# the following lines to meet your needs... # the following lines to meet your needs...

View File

@ -50,8 +50,8 @@ static void check_suid ( struct BB_applet *app );
#include <sys/stat.h> #include <sys/stat.h>
#include <ctype.h> #include <ctype.h>
#include "pwd.h" #include "pwd_.h"
#include "grp.h" #include "grp_.h"
static int parse_config_file ( void ); static int parse_config_file ( void );

View File

@ -29,8 +29,8 @@
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include "busybox.h" #include "busybox.h"
#include "pwd.h" #include "pwd_.h"
#include "grp.h" #include "grp_.h"
/*struct passwd *getpwnam();*/ /*struct passwd *getpwnam();*/

View File

@ -18,7 +18,7 @@
#include <unistd.h> #include <unistd.h>
#include "busybox.h" #include "busybox.h"
#include "pwd.h" #include "pwd_.h"
static int start = 0; static int start = 0;
static int stop = 0; static int stop = 0;

View File

@ -2,7 +2,7 @@
#define __CONFIG_GRP_H #define __CONFIG_GRP_H
#if !defined CONFIG_USE_BB_PWD_GRP #if !defined CONFIG_USE_BB_PWD_GRP
#include_next <grp.h> #include <grp.h>
#else #else

View File

@ -39,8 +39,8 @@
#include "config.h" #include "config.h"
#include "pwd.h" #include "pwd_.h"
#include "grp.h" #include "grp_.h"
#ifdef CONFIG_FEATURE_SHADOWPASSWDS #ifdef CONFIG_FEATURE_SHADOWPASSWDS
#include "shadow_.h" #include "shadow_.h"
#endif #endif

View File

@ -2,7 +2,7 @@
#define __CONFIG_PWD_H #define __CONFIG_PWD_H
#if !defined CONFIG_USE_BB_PWD_GRP #if !defined CONFIG_USE_BB_PWD_GRP
#include_next <pwd.h> #include <pwd.h>
#else #else

View File

@ -18,7 +18,7 @@
#include <unistd.h> #include <unistd.h>
#include "busybox.h" #include "busybox.h"
#include "pwd.h" #include "pwd_.h"
static int start = 0; static int start = 0;
static int stop = 0; static int stop = 0;

View File

@ -22,8 +22,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "libbb.h" #include "libbb.h"
#include "pwd.h" #include "pwd_.h"
#include "grp.h" #include "grp_.h"
/* gets a groupname given a gid */ /* gets a groupname given a gid */

View File

@ -22,8 +22,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "libbb.h" #include "libbb.h"
#include "pwd.h" #include "pwd_.h"
#include "grp.h" #include "grp_.h"
/* returns a gid given a group name */ /* returns a gid given a group name */

View File

@ -22,8 +22,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "libbb.h" #include "libbb.h"
#include "pwd.h" #include "pwd_.h"
#include "grp.h" #include "grp_.h"
/* returns a uid given a username */ /* returns a uid given a username */

View File

@ -22,8 +22,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "libbb.h" #include "libbb.h"
#include "pwd.h" #include "pwd_.h"
#include "grp.h" #include "grp_.h"

View File

@ -22,8 +22,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "libbb.h" #include "libbb.h"
#include "pwd.h" #include "pwd_.h"
#include "grp.h" #include "grp_.h"

View File

@ -23,7 +23,7 @@
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "grp.h" #include "grp_.h"
/* /*
* Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer * Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer

View File

@ -24,7 +24,7 @@
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include "pwd.h" #include "pwd_.h"
#define PWD_BUFFER_SIZE 256 #define PWD_BUFFER_SIZE 256

View File

@ -22,7 +22,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "grp.h" #include "grp_.h"
struct group *fgetgrent(FILE * file) struct group *fgetgrent(FILE * file)
{ {

View File

@ -22,7 +22,7 @@
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include "pwd.h" #include "pwd_.h"
struct passwd *fgetpwent(FILE * file) struct passwd *fgetpwent(FILE * file)
{ {

View File

@ -23,7 +23,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include "grp.h" #include "grp_.h"
struct group *getgrgid(const gid_t gid) struct group *getgrgid(const gid_t gid)
{ {

View File

@ -24,7 +24,7 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include "grp.h" #include "grp_.h"
struct group *getgrnam(const char *name) struct group *getgrnam(const char *name)
{ {

View File

@ -23,7 +23,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include "pwd.h" #include "pwd_.h"
int getpw(uid_t uid, char *buf) int getpw(uid_t uid, char *buf)
{ {

View File

@ -24,7 +24,7 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include "pwd.h" #include "pwd_.h"
struct passwd *getpwnam(const char *name) struct passwd *getpwnam(const char *name)

View File

@ -23,7 +23,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include "pwd.h" #include "pwd_.h"
struct passwd *getpwuid(uid_t uid) struct passwd *getpwuid(uid_t uid)
{ {

View File

@ -28,7 +28,7 @@
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include "grp.h" #include "grp_.h"
static int grp_fd = -1; static int grp_fd = -1;

View File

@ -23,7 +23,7 @@
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include "grp.h" #include "grp_.h"
/* /*
* Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer * Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer

View File

@ -22,7 +22,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "pwd.h" #include "pwd_.h"
int putpwent(const struct passwd *passwd, FILE * f) int putpwent(const struct passwd *passwd, FILE * f)
{ {

View File

@ -23,7 +23,7 @@
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include "pwd.h" #include "pwd_.h"
#include <fcntl.h> #include <fcntl.h>
/* /*

View File

@ -35,7 +35,7 @@
/* This is needed for libc5 */ /* This is needed for libc5 */
#include <asm/unistd.h> #include <asm/unistd.h>
#endif #endif
#include "grp.h" #include "grp_.h"
//#define __NR_setgroups 81 //#define __NR_setgroups 81
_syscall2(int, setgroups, size_t, size, const gid_t *, list); _syscall2(int, setgroups, size_t, size, const gid_t *, list);

View File

@ -32,8 +32,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include "busybox.h" #include "busybox.h"
#include "pwd.h" #include "pwd_.h"
#include "grp.h" #include "grp_.h"
/* structs __________________________ */ /* structs __________________________ */
@ -162,4 +162,4 @@ int addgroup_main(int argc, char **argv)
return addgroup(group_file, group, gid); 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 $ */

View File

@ -34,7 +34,7 @@
#include <unistd.h> #include <unistd.h>
#include "inet_common.h" #include "inet_common.h"
#include "busybox.h" #include "busybox.h"
#include "pwd.h" #include "pwd_.h"
#ifdef CONFIG_ROUTE #ifdef CONFIG_ROUTE
extern void displayroutes(int noresolve, int netstatfmt); extern void displayroutes(int noresolve, int netstatfmt);

View File

@ -69,7 +69,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include "busybox.h" #include "busybox.h"
#include "pwd.h" #include "pwd_.h"
#if !defined(FNMATCH_BROKEN) #if !defined(FNMATCH_BROKEN)
@ -12442,7 +12442,7 @@ findvar(struct var **vpp, const char *name)
/* /*
* Copyright (c) 1999 Herbert Xu <herbert@debian.org> * Copyright (c) 1999 Herbert Xu <herbert@debian.org>
* This file contains code for the times builtin. * 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) static int timescmd (int argc, char **argv)
{ {

View File

@ -82,7 +82,7 @@
#ifdef CONFIG_FEATURE_GETUSERNAME_AND_HOMEDIR #ifdef CONFIG_FEATURE_GETUSERNAME_AND_HOMEDIR
# ifndef TEST # ifndef TEST
# include "pwd.h" # include "pwd_.h"
# else # else
# include <pwd.h> # include <pwd.h>
# endif /* TEST */ # endif /* TEST */