diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-05-12 22:06:26 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-05-12 22:06:26 +0000 |
commit | b6e654c498cd131b0d4ad1f121f3f395f3d77e75 (patch) | |
tree | 9713fa3ef81c62422b2645d175ba0f135b88e28a /newlib/libc | |
parent | 58fc7cdaf9c7a3b0cef76763fbba66408e0a2bc5 (diff) | |
download | cygnal-b6e654c498cd131b0d4ad1f121f3f395f3d77e75.tar.gz cygnal-b6e654c498cd131b0d4ad1f121f3f395f3d77e75.tar.bz2 cygnal-b6e654c498cd131b0d4ad1f121f3f395f3d77e75.zip |
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.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/sys/linux/Makefile.am | 3 | ||||
-rw-r--r-- | newlib/libc/sys/linux/Makefile.in | 2 | ||||
-rw-r--r-- | newlib/libc/sys/linux/getpwent.c | 30 | ||||
-rw-r--r-- | newlib/libc/sys/linux/getpwnam.c | 12 | ||||
-rw-r--r-- | newlib/libc/sys/linux/getpwuid.c | 12 |
5 files changed, 32 insertions, 27 deletions
diff --git a/newlib/libc/sys/linux/Makefile.am b/newlib/libc/sys/linux/Makefile.am index 56842cebb..de11547a3 100644 --- a/newlib/libc/sys/linux/Makefile.am +++ b/newlib/libc/sys/linux/Makefile.am @@ -146,8 +146,7 @@ ELIX_3_OBJS = \ ELIX_4_OBJS = \ getlogin.$(oext) \ - getpwnam.$(oext) \ - getpwuid.$(oext) \ + getpwent.$(oext) \ stack.$(oext) if ELIX_LEVEL_1 diff --git a/newlib/libc/sys/linux/Makefile.in b/newlib/libc/sys/linux/Makefile.in index 3f110fab2..ead358265 100644 --- a/newlib/libc/sys/linux/Makefile.in +++ b/newlib/libc/sys/linux/Makefile.in @@ -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) diff --git a/newlib/libc/sys/linux/getpwent.c b/newlib/libc/sys/linux/getpwent.c new file mode 100644 index 000000000..9479021e3 --- /dev/null +++ b/newlib/libc/sys/linux/getpwent.c @@ -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; +} + diff --git a/newlib/libc/sys/linux/getpwnam.c b/newlib/libc/sys/linux/getpwnam.c deleted file mode 100644 index c90562c5a..000000000 --- a/newlib/libc/sys/linux/getpwnam.c +++ /dev/null @@ -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; -} - diff --git a/newlib/libc/sys/linux/getpwuid.c b/newlib/libc/sys/linux/getpwuid.c deleted file mode 100644 index 4e9fcb220..000000000 --- a/newlib/libc/sys/linux/getpwuid.c +++ /dev/null @@ -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; -} - |