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);
|
2019-09-10 16:30:10 +00:00
|
|
|
int exit(int) __attribute__((noreturn));
|
|
|
|
int wait(int*);
|
2006-07-16 15:36:31 +00:00
|
|
|
int pipe(int*);
|
2018-08-31 13:21:19 +00:00
|
|
|
int write(int, const void*, int);
|
2006-07-16 15:36:31 +00:00
|
|
|
int read(int, void*, int);
|
|
|
|
int close(int);
|
|
|
|
int kill(int);
|
2006-09-06 17:27:19 +00:00
|
|
|
int exec(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*);
|
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
|
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*);
|
2007-08-08 09:30:48 +00:00
|
|
|
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*);
|
2019-10-09 01:18:54 +00:00
|
|
|
int memcmp(const void *, const void *, uint);
|
|
|
|
void *memcpy(void *, const void *, uint);
|