summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/linux/getlogin.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-11-07 23:47:05 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-11-07 23:47:05 +0000
commitfe359733a40391e86514cb26cbe7a79416313881 (patch)
tree021953775edbc4d818fccce2955b8586cf7da8be /newlib/libc/sys/linux/getlogin.c
parent0a5ea9471bff6e0fb314b0a6361c6f57224f0505 (diff)
downloadcygnal-fe359733a40391e86514cb26cbe7a79416313881.tar.gz
cygnal-fe359733a40391e86514cb26cbe7a79416313881.tar.bz2
cygnal-fe359733a40391e86514cb26cbe7a79416313881.zip
2003-11-07 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux x86 build. * iconvdata/Makefile.am: Make dependent on newlib's configure.host and set up default flags to pass to aclocal. * iconvdata/Makefile.in: Regenerated. * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam, and getpwuid routines. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/getlogin.c: New stub file to allow x86-linux applications to link with newlib's shared libc library. * libc/sys/linux/getpwnam.c: Ditto. * libc/sys/linux/getpwuid.c: Ditto. * libc/sys/linux/sys/types.h: Include <features.h> and supply types that were formerly supplied by /usr/include/linux/types.h with kernel types. * testsuite/newlib.wctype/twctype.c: Fix testcase to properly test _ELIX_LEVEL macro.
Diffstat (limited to 'newlib/libc/sys/linux/getlogin.c')
-rw-r--r--newlib/libc/sys/linux/getlogin.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/getlogin.c b/newlib/libc/sys/linux/getlogin.c
new file mode 100644
index 000000000..3931e7731
--- /dev/null
+++ b/newlib/libc/sys/linux/getlogin.c
@@ -0,0 +1,11 @@
+/* FIXME: dummy stub for now. */
+#include <errno.h>
+#include <unistd.h>
+
+char *
+_DEFUN_VOID (getlogin)
+{
+ errno = ENOSYS;
+ return NULL;
+}
+