xv6-65oo2/user/user.h

42 lines
1 KiB
C
Raw Permalink Normal View History

2007-08-28 04:20:25 +00:00
struct stat;
2006-09-06 01:25:41 +00:00
// system calls
int fork(void);
int exit(int) __attribute__((noreturn));
int wait(int*);
int pipe(int*);
2018-08-31 13:21:19 +00:00
int write(int, const void*, int);
int read(int, void*, int);
int close(int);
int kill(int);
2022-08-18 00:38:11 +00:00
int exec(const char*, char**);
2018-08-31 13:21:19 +00:00
int open(const char*, int);
int mknod(const char*, short, short);
int unlink(const char*);
2006-09-06 17:27:19 +00:00
int fstat(int fd, struct stat*);
2018-08-31 13:21:19 +00:00
int link(const char*, const char*);
int mkdir(const char*);
int chdir(const char*);
int dup(int);
int getpid(void);
2006-09-06 17:27:19 +00:00
char* sbrk(int);
2007-08-27 13:34:35 +00:00
int sleep(int);
int uptime(void);
2006-09-06 01:25:41 +00:00
// ulib.c
2018-08-31 13:21:19 +00:00
int stat(const char*, struct stat*);
char* strcpy(char*, const char*);
void *memmove(void*, const void*, int);
2006-09-06 17:27:19 +00:00
char* strchr(const char*, char c);
int strcmp(const char*, const char*);
2019-08-27 17:13:03 +00:00
void fprintf(int, const char*, ...);
void printf(const char*, ...);
2006-09-06 17:27:19 +00:00
char* gets(char*, int max);
2018-08-31 13:21:19 +00:00
uint strlen(const char*);
void* memset(void*, int, uint);
2006-09-06 17:27:19 +00:00
void* malloc(uint);
void free(void*);
2007-08-08 08:56:09 +00:00
int atoi(const char*);
int memcmp(const void *, const void *, uint);
void *memcpy(void *, const void *, uint);