root/user.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 struct stat;
   2 struct rtcdate;
   3 
   4 // system calls
   5 int fork(void);
   6 int exit(void) __attribute__((noreturn));
   7 int wait(void);
   8 int pipe(int*);
   9 int write(int, void*, int);
  10 int read(int, void*, int);
  11 int close(int);
  12 int kill(int);
  13 int exec(char*, char**);
  14 int open(char*, int);
  15 int mknod(char*, short, short);
  16 int unlink(char*);
  17 int fstat(int fd, struct stat*);
  18 int link(char*, char*);
  19 int mkdir(char*);
  20 int chdir(char*);
  21 int dup(int);
  22 int getpid(void);
  23 char* sbrk(int);
  24 int sleep(int);
  25 int uptime(void);
  26 
  27 // ulib.c
  28 int stat(char*, struct stat*);
  29 char* strcpy(char*, char*);
  30 void *memmove(void*, void*, int);
  31 char* strchr(const char*, char c);
  32 int strcmp(const char*, const char*);
  33 void printf(int, char*, ...);
  34 char* gets(char*, int max);
  35 uint strlen(char*);
  36 void* memset(void*, int, uint);
  37 void* malloc(uint);
  38 void free(void*);
  39 int atoi(const char*);

/* [<][>][^][v][top][bottom][index][help] */