Skip to content

Commit 93ccabd

Browse files
authored
Merge pull request #3735 from jschwe/ohos_41
ohos: Add `shm_open` and `shm_unlink`
2 parents ce363b7 + 9e248e2 commit 93ccabd

File tree

1 file changed

+3
-3
lines changed
  • src/unix/linux_like/linux

1 file changed

+3
-3
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5392,9 +5392,6 @@ cfg_if! {
53925392
spbufp: *mut *mut spwd,
53935393
) -> ::c_int;
53945394

5395-
pub fn shm_open(name: *const c_char, oflag: ::c_int, mode: mode_t) -> ::c_int;
5396-
pub fn shm_unlink(name: *const ::c_char) -> ::c_int;
5397-
53985395
pub fn mq_open(name: *const ::c_char, oflag: ::c_int, ...) -> ::mqd_t;
53995396
pub fn mq_close(mqd: ::mqd_t) -> ::c_int;
54005397
pub fn mq_unlink(name: *const ::c_char) -> ::c_int;
@@ -5481,6 +5478,9 @@ extern "C" {
54815478

54825479
pub fn getspnam(name: *const ::c_char) -> *mut spwd;
54835480

5481+
pub fn shm_open(name: *const c_char, oflag: ::c_int, mode: mode_t) -> ::c_int;
5482+
pub fn shm_unlink(name: *const ::c_char) -> ::c_int;
5483+
54845484
// System V IPC
54855485
pub fn shmget(key: ::key_t, size: ::size_t, shmflg: ::c_int) -> ::c_int;
54865486
pub fn shmat(shmid: ::c_int, shmaddr: *const ::c_void, shmflg: ::c_int) -> *mut ::c_void;

0 commit comments

Comments
 (0)