summaryrefslogtreecommitdiff
path: root/include/user/user.h
blob: 7ab4923cc407dd29036e7b5157c99e0fc37d7a33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
typedef unsigned long long uint64;

extern "C" {
    int fork();
    int exit(int status);
    int wait(uint64 status_addr);
    int pipe(int p[]);
    int write(int fd, const void *buf, int n);
    int read(int fd, void *buf, int n);
    int close(int fd);
    int kill(int pid);
    int exec(char *, char **);
    int open(const char *, int);
    int mknod(const char *, short, short);
    int unlink(const char *);
    int fstat(int fd, void *st);
    int link(const char *, const char *);
    int mkdir(const char *);
    int chdir(const char *);
    int dup(int fd);
    int getpid();
    char *sbrk(int n);
    int sleep(int ticks);
    int uptime();

    
    void putc(char c);
}