summaryrefslogtreecommitdiffstats
path: root/compat/unistd.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-07-25 13:57:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-07-25 13:57:37 (GMT)
commit62e24a0269129ae00a2ad1aab8ed9667af46f0b8 (patch)
treea7264261b939d148442518b57c59bbb3dbdd28d9 /compat/unistd.h
parent518ff0b0d9cbf5887984531c88f896be53454d2e (diff)
downloadtcl-62e24a0269129ae00a2ad1aab8ed9667af46f0b8.zip
tcl-62e24a0269129ae00a2ad1aab8ed9667af46f0b8.tar.gz
tcl-62e24a0269129ae00a2ad1aab8ed9667af46f0b8.tar.bz2
execvpw/seteuidw don't exist. Fix some other signatures in compat/unistd.h
Diffstat (limited to 'compat/unistd.h')
-rw-r--r--compat/unistd.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/compat/unistd.h b/compat/unistd.h
index a8f14f2..1725590 100644
--- a/compat/unistd.h
+++ b/compat/unistd.h
@@ -17,7 +17,7 @@
#include <sys/types.h>
#ifndef NULL
-#define NULL 0
+# define NULL 0
#endif
/*
@@ -35,9 +35,9 @@ extern int dup2(int oldfd, int newfd);
extern int execl(const char *path, ...);
extern int execle(const char *path, ...);
extern int execlp(const char *file, ...);
-extern int execv(const char *path, char **argv);
-extern int execve(const char *path, char **argv, char **envp);
-extern int execvpw(const char *file, char **argv);
+extern int execv(const char *path, char *const argv[]);
+extern int execve(const char *path, char *const argv[], char *const *envp);
+extern int execvp(const char *file, char *const argv[]);
extern pid_t fork(void);
extern char * getcwd(char *buf, size_t size);
extern gid_t getegid(void);
@@ -65,7 +65,7 @@ extern int ftruncate(int fd, unsigned long length);
extern int ioctl(int fd, int request, ...);
extern int readlink(const char *path, char *buf, int bufsize);
extern int setegid(gid_t group);
-extern int seteuidw(uid_t user);
+extern int seteuid(uid_t user);
extern int setreuid(int ruid, int euid);
extern int symlink(const char *, const char *);
extern int ttyslot(void);