xv6-cs450/user.h

35 lines
782 B
C
Raw Normal View History

2006-09-06 03:25:41 +02:00
// system calls
int fork(void);
int exit(void) __attribute__((noreturn));
int wait(void);
int pipe(int*);
int write(int, void*, int);
int read(int, void*, int);
int close(int);
int kill(int);
2006-09-06 19:27:19 +02:00
int exec(char*, char**);
int open(char*, int);
int mknod(char*, short, short, short);
int unlink(char*);
int fstat(int fd, struct stat*);
int link(char*, char*);
int mkdir(char*);
int chdir(char*);
int dup(int);
int getpid();
2006-09-06 19:27:19 +02:00
char* sbrk(int);
2006-09-06 03:25:41 +02:00
// ulib.c
2006-09-06 19:27:19 +02:00
int stat(char*, struct stat*);
int puts(char*);
2006-07-16 18:00:03 +02:00
char* strcpy(char*, char*);
2006-09-06 19:27:19 +02:00
char* strchr(const char*, char c);
int strcmp(const char*, const char*);
void printf(int, char*, ...);
char* gets(char*, int max);
unsigned int strlen(char*);
void* memset(void*, int, unsigned int);
void* malloc(uint);
void free(void*);
2007-08-08 10:56:09 +02:00
int atoi(const char*);