root/user/user.h

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

INCLUDED FROM


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

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