std.c: add shm_open and shm_unlink

https://man7.org/linux/man-pages/man3/shm_open.3.html
This commit is contained in:
Meghan 2022-01-06 11:36:58 -08:00 committed by Veikka Tuominen
parent c71cf48cb5
commit 4a92f42ed7

View File

@ -244,6 +244,9 @@ pub extern "c" fn sem_trywait(sem: *c.sem_t) c_int;
pub extern "c" fn sem_timedwait(sem: *c.sem_t, abs_timeout: *const c.timespec) c_int;
pub extern "c" fn sem_getvalue(sem: *c.sem_t, sval: *c_int) c_int;
pub extern "c" fn shm_open(name: [*:0]const u8, flag: c_int, mode: c.mode_t) c_int;
pub extern "c" fn shm_unlink(name: [*:0]const u8) c_int;
pub extern "c" fn kqueue() c_int;
pub extern "c" fn kevent(
kq: c_int,