summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-08 15:04:23 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-08 15:04:23 +0000
commitafdecae49f81065952da43bb2629fcdb64aad535 (patch)
tree6812f3969a0dc88c8ef60bbbeb41e4a78c064cda /libc/unistd
parentceca97e8eaee5878711eb2c2047859e4ced79be0 (diff)
Use internal versions
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/daemon.c1
-rw-r--r--libc/unistd/exec.c2
-rw-r--r--libc/unistd/getpass.c1
-rw-r--r--libc/unistd/usershell.c1
4 files changed, 4 insertions, 1 deletions
diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c
index cd8a9de9c..233dbbac4 100644
--- a/libc/unistd/daemon.c
+++ b/libc/unistd/daemon.c
@@ -25,6 +25,7 @@
#define dup2 __dup2
#define setsid __setsid
+#define chdir __chdir
#include <stdio.h>
#include <features.h>
diff --git a/libc/unistd/exec.c b/libc/unistd/exec.c
index 9793d9ad4..052728d83 100644
--- a/libc/unistd/exec.c
+++ b/libc/unistd/exec.c
@@ -205,7 +205,7 @@ int execlp(const char *file, const char *arg, ...)
} while (--n);
va_end(args);
- n = execvp(file, (char *const *) argv);
+ n = __execvp(file, (char *const *) argv);
EXEC_FREE(argv, size);
diff --git a/libc/unistd/getpass.c b/libc/unistd/getpass.c
index 2b2d252c2..8a23c99bf 100644
--- a/libc/unistd/getpass.c
+++ b/libc/unistd/getpass.c
@@ -19,6 +19,7 @@
#define setvbuf __setvbuf
#define tcsetattr __tcsetattr
#define tcgetattr __tcgetattr
+#define fileno __fileno
#include <stdio.h>
#include <string.h>
diff --git a/libc/unistd/usershell.c b/libc/unistd/usershell.c
index 40c8b9e24..2e1f75d38 100644
--- a/libc/unistd/usershell.c
+++ b/libc/unistd/usershell.c
@@ -31,6 +31,7 @@
*/
#define __fsetlocking __fsetlocking_internal
+#define fileno __fileno
#define _GNU_SOURCE
#include <sys/param.h>