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/libkogata | |
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/libkogata')
-rw-r--r-- | src/lib/libkogata/syscall.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libkogata/syscall.c b/src/lib/libkogata/syscall.c index b724e69..67f95fd 100644 --- a/src/lib/libkogata/syscall.c +++ b/src/lib/libkogata/syscall.c @@ -94,8 +94,8 @@ bool stat_open(fd_t file, stat_t *s) { int ioctl(fd_t file, int command, void* data) { return call(SC_IOCTL, file, command, (uint32_t)data, 0, 0); } -int get_mode(fd_t file) { - return call(SC_GET_MODE, file, 0, 0, 0, 0); +int fctl(fd_t file, int command, void *data) { + return call(SC_FCTL, file, command, (uint32_t)data, 0, 0); } bool select(sel_fd_t* fds, size_t nfds, int timeout) { return call(SC_SELECT, (uint32_t)fds, nfds, timeout, 0, 0); @@ -106,6 +106,9 @@ fd_pair_t make_channel(bool blocking) { call(SC_MK_CHANNEL, blocking, (uint32_t)&ret, 0, 0, 0); return ret; } +fd_t make_shm(size_t s) { + return call(SC_MK_SHM, s, 0, 0, 0, 0); +} bool gen_token(fd_t file, token_t *tok) { return call(SC_GEN_TOKEN, file, (uint32_t)tok, 0, 0, 0); } |