2005-05-12 Jeff Johnston <jjohnstn@redhat.com>

* libc/sys/linux/getpwuid.c: Removed.
        * libc/sys/linux/getpwnam.c: Removed.
        * libc/sys/linux/getpwent.c: New file containing logic
        from files removed above.  This allows overriding of file
        in libc/unix.
        * libc/sys/linux/Makefile.am: Support changes above.
        * libc/sys/linux/Makefile.in: Regenerated.
This commit is contained in:
Jeff Johnston 2005-05-12 22:06:26 +00:00
parent 58fc7cdaf9
commit b6e654c498
6 changed files with 42 additions and 27 deletions

View File

@ -1,3 +1,13 @@
2005-05-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/getpwuid.c: Removed.
* libc/sys/linux/getpwnam.c: Removed.
* libc/sys/linux/getpwent.c: New file containing logic
from files removed above. This allows overriding of file
in libc/unix.
* libc/sys/linux/Makefile.am: Support changes above.
* libc/sys/linux/Makefile.in: Regenerated.
2005-04-28 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko

View File

@ -146,8 +146,7 @@ ELIX_3_OBJS = \
ELIX_4_OBJS = \
getlogin.$(oext) \
getpwnam.$(oext) \
getpwuid.$(oext) \
getpwent.$(oext) \
stack.$(oext)
if ELIX_LEVEL_1

View File

@ -118,7 +118,7 @@ ELIX_2_OBJS = aio64.$(oext) confstr.$(oext) ctermid.$(oext) fclean.$(oext)
ELIX_3_OBJS = system.$(oext) wait.$(oext)
ELIX_4_OBJS = getlogin.$(oext) getpwnam.$(oext) getpwuid.$(oext) stack.$(oext)
ELIX_4_OBJS = getlogin.$(oext) getpwent.$(oext) stack.$(oext)
@ELIX_LEVEL_1_TRUE@LIB_OBJS =
@ELIX_LEVEL_1_FALSE@@ELIX_LEVEL_2_TRUE@LIB_OBJS = $(ELIX_2_OBJS)

View File

@ -0,0 +1,30 @@
/* FIXME: dummy stub for now. */
#include <errno.h>
#include <pwd.h>
struct passwd *
_DEFUN (getpwnam, (name),
_CONST char *name)
{
errno = ENOSYS;
return NULL;
}
/* FIXME: dummy stub for now. */
struct passwd *
_DEFUN (getpwuid, (uid),
uid_t uid)
{
errno = ENOSYS;
return NULL;
}
/* FIXME: dummy stub for now. */
struct passwd *
_DEFUN (getpwent, (uid),
uid_t uid)
{
errno = ENOSYS;
return NULL;
}

View File

@ -1,12 +0,0 @@
/* FIXME: dummy stub for now. */
#include <errno.h>
#include <pwd.h>
struct passwd *
_DEFUN (getpwnam, (name),
_CONST char *name)
{
errno = ENOSYS;
return NULL;
}

View File

@ -1,12 +0,0 @@
/* FIXME: dummy stub for now. */
#include <errno.h>
#include <pwd.h>
struct passwd *
_DEFUN (getpwuid, (uid),
uid_t uid)
{
errno = ENOSYS;
return NULL;
}