diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-10 17:18:13 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-10 17:18:13 +0100 |
commit | ef50c1c0de9e992db9144571e7f08e5badbb9720 (patch) | |
tree | 26c34719e0a93e6f1831aaf14efdb436bc4b9077 /src/lib/include/syscall.h | |
parent | 1b9ea946b8ec8c71a2bad9a7b2ce253145dcd97c (diff) | |
download | kogata-ef50c1c0de9e992db9144571e7f08e5badbb9720.tar.gz kogata-ef50c1c0de9e992db9144571e7f08e5badbb9720.zip |
Add mk_shm syscall ; replace get_mode by fctl.
Diffstat (limited to 'src/lib/include/syscall.h')
-rw-r--r-- | src/lib/include/syscall.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/include/syscall.h b/src/lib/include/syscall.h index f66b759..07defdb 100644 --- a/src/lib/include/syscall.h +++ b/src/lib/include/syscall.h @@ -37,10 +37,11 @@ size_t write(fd_t file, size_t offset, size_t len, const char* buf); bool readdir(fd_t file, size_t ent_no, dirent_t *d); bool stat_open(fd_t file, stat_t *s); int ioctl(fd_t file, int command, void* data); -int get_mode(fd_t file); +int fctl(fd_t file, int command, void* data); bool select(sel_fd_t* fds, size_t nfds, int timeout); fd_pair_t make_channel(bool blocking); +fd_t make_shm(size_t size); bool gen_token(fd_t file, token_t *tok); fd_t use_token(token_t *tok); |