2007-08-28 04:20:25 +00:00
|
|
|
struct stat;
|
2014-09-12 21:18:57 +00:00
|
|
|
struct rtcdate;
|
2007-08-28 04:20:25 +00:00
|
|
|
|
2006-09-06 01:25:41 +00:00
|
|
|
// system calls
|
2006-07-16 15:36:31 +00:00
|
|
|
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 17:27:19 +00:00
|
|
|
int exec(char*, char**);
|
|
|
|
int open(char*, int);
|
2007-08-24 20:54:23 +00:00
|
|
|
int mknod(char*, short, short);
|
2006-09-06 17:27:19 +00:00
|
|
|
int unlink(char*);
|
|
|
|
int fstat(int fd, struct stat*);
|
|
|
|
int link(char*, char*);
|
|
|
|
int mkdir(char*);
|
|
|
|
int chdir(char*);
|
2006-08-20 03:08:54 +00:00
|
|
|
int dup(int);
|
2011-01-11 18:01:13 +00:00
|
|
|
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);
|
2011-01-11 18:01:13 +00:00
|
|
|
int uptime(void);
|
2006-08-12 11:38:57 +00:00
|
|
|
|
2006-09-06 01:25:41 +00:00
|
|
|
// ulib.c
|
2006-09-06 17:27:19 +00:00
|
|
|
int stat(char*, struct stat*);
|
2006-07-16 16:00:03 +00:00
|
|
|
char* strcpy(char*, char*);
|
2007-08-22 06:01:32 +00:00
|
|
|
void *memmove(void*, void*, int);
|
2006-09-06 17:27:19 +00:00
|
|
|
char* strchr(const char*, char c);
|
|
|
|
int strcmp(const char*, const char*);
|
|
|
|
void printf(int, char*, ...);
|
|
|
|
char* gets(char*, int max);
|
2007-08-08 09:30:48 +00:00
|
|
|
uint strlen(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*);
|