-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathunistd.h
66 lines (64 loc) · 2.42 KB
/
unistd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
_cxgo_go_uintptr creat(const char *, mode_t);
_cxgo_go_uintptr open(const char *, _cxgo_sint32, ...);
_cxgo_sint32 fcntl(_cxgo_go_uintptr, _cxgo_sint32, ...);
_cxgo_sint32 access(const char *, _cxgo_sint32);
unsigned alarm(unsigned);
_cxgo_sint32 chdir(const char *);
_cxgo_sint32 fchdir(int fd);
int chown(const char *, uid_t, gid_t);
#define close(fd) _cxgo_fileByFD((_cxgo_go_uintptr)fd)->Close()
size_t confstr(int, char *, size_t);
int dup(int);
int dup2(int, int);
int execl(const char *, const char *, ...);
int execle(const char *, const char *, ...);
int execlp(const char *, const char *, ...);
int execv(const char *, char *const []);
int execve(const char *, char *const [], char *const []);
int execvp(const char *, char *const []);
#define _exit(v) _Exit(v)
int fchown(int, uid_t, gid_t);
pid_t fork(void);
long fpathconf(int, int);
int ftruncate(int, off_t);
char *getcwd(char *, _cxgo_go_int);
gid_t getegid(void);
uid_t geteuid(void);
gid_t getgid(void);
int getgroups(int, gid_t []);
_cxgo_go_int gethostname(char *, _cxgo_go_int);
char *getlogin(void);
int getlogin_r(char *, size_t);
int getopt(int, char * const [], const char *);
pid_t getpgrp(void);
pid_t getpid(void);
pid_t getppid(void);
uid_t getuid(void);
int isatty(int);
int link(const char *, const char *);
_cxgo_uint64 lseek(_cxgo_go_uintptr, _cxgo_uint64, _cxgo_sint32);
long pathconf(const char *, int);
int pause(void);
int pipe(int [2]);
#define read(fd, p, sz) _cxgo_fileByFD((_cxgo_go_uintptr)fd)->Read(p, sz)
#define write(fd, p, sz) _cxgo_fileByFD((_cxgo_go_uintptr)fd)->Write(p, sz)
ssize_t readlink(const char *restrict, char *restrict, size_t);
_cxgo_sint32 rmdir(const char *);
int setegid(gid_t);
int seteuid(uid_t);
int setgid(gid_t);
int setpgid(pid_t, pid_t);
pid_t setsid(void);
int setuid(uid_t);
unsigned sleep(unsigned);
int symlink(const char *, const char *);
long sysconf(int);
pid_t tcgetpgrp(int);
int tcsetpgrp(int, pid_t);
char *ttyname(int);
int ttyname_r(int, char *, size_t);
_cxgo_sint32 unlink(const char *);