Scrub pwd.h and grp.h handling so we don't have to play any
silly games. -Erik
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#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
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include "pwd.h"
|
||||
#include "pwd_.h"
|
||||
|
||||
#define PWD_BUFFER_SIZE 256
|
||||
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include "grp.h"
|
||||
#include "grp_.h"
|
||||
|
||||
struct group *fgetgrent(FILE * file)
|
||||
{
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include "pwd.h"
|
||||
#include "pwd_.h"
|
||||
|
||||
struct passwd *fgetpwent(FILE * file)
|
||||
{
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include "grp.h"
|
||||
#include "grp_.h"
|
||||
|
||||
struct group *getgrgid(const gid_t gid)
|
||||
{
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include "grp.h"
|
||||
#include "grp_.h"
|
||||
|
||||
struct group *getgrnam(const char *name)
|
||||
{
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include "pwd.h"
|
||||
#include "pwd_.h"
|
||||
|
||||
int getpw(uid_t uid, char *buf)
|
||||
{
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include "pwd.h"
|
||||
#include "pwd_.h"
|
||||
|
||||
|
||||
struct passwd *getpwnam(const char *name)
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include "pwd.h"
|
||||
#include "pwd_.h"
|
||||
|
||||
struct passwd *getpwuid(uid_t uid)
|
||||
{
|
||||
|
@@ -28,7 +28,7 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include "grp.h"
|
||||
#include "grp_.h"
|
||||
|
||||
static int grp_fd = -1;
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#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
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include "pwd.h"
|
||||
#include "pwd_.h"
|
||||
|
||||
int putpwent(const struct passwd *passwd, FILE * f)
|
||||
{
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include "pwd.h"
|
||||
#include "pwd_.h"
|
||||
#include <fcntl.h>
|
||||
|
||||
/*
|
||||
|
@@ -35,7 +35,7 @@
|
||||
/* 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);
|
||||
|
Reference in New Issue
Block a user