Home
last modified time | relevance | path

Searched refs:shmid_ds (Results 1 – 25 of 102) sorted by relevance

12345

/third_party/musl/libc-test/src/functional/
Dipc_shm.c32 struct shmid_ds shmid_ds; in set() local
52 T(shmctl(shmid, IPC_STAT, &shmid_ds)); in set()
53 EQ(shmid_ds.shm_perm.cuid, geteuid(), "got %d, want %d"); in set()
54 EQ(shmid_ds.shm_perm.uid, geteuid(), "got %d, want %d"); in set()
55 EQ(shmid_ds.shm_perm.cgid, getegid(), "got %d, want %d"); in set()
56 EQ(shmid_ds.shm_perm.gid, getegid(), "got %d, want %d"); in set()
57 EQ(shmid_ds.shm_perm.mode & 0x1ff, 0666, "got %o, want %o"); in set()
58 EQ(shmid_ds.shm_segsz, 100, "got %d, want %d"); in set()
59 EQ(shmid_ds.shm_lpid, 0, "got %d, want %d"); in set()
60 EQ(shmid_ds.shm_cpid, getpid(), "got %d, want %d"); in set()
[all …]
/third_party/musl/src/ipc/
Dshmctl.c10 int shmctl(int id, int cmd, struct shmid_ds *buf) in shmctl()
13 struct shmid_ds out, *orig; in shmctl()
15 out = (struct shmid_ds){0}; in shmctl()
21 struct shmid_ds tmp; in shmctl()
/third_party/ltp/testcases/kernel/syscalls/ipc/shmctl/
Dshmctl01.c103 struct shmid_ds ds1; in check_nattch()
104 struct shmid_ds ds2; in check_nattch()
167 static void check_ds(struct shmid_ds *ds, const char *desc) in check_ds()
196 struct shmid_ds ds; in shmstat_basic_check()
232 struct shmid_ds dummy_ds; in get_shm_idx_from_id()
Dshmctl02.c45 static struct shmid_ds buf;
60 struct shmid_ds *buf;
64 {&shm_id2, IPC_SET, (struct shmid_ds *)-1, EFAULT},
65 {&shm_id2, IPC_STAT, (struct shmid_ds *)-1, EFAULT},
Dshmctl08.c25 static int test_ipc_set(struct shmid_ds *ds) in test_ipc_set()
39 static void check_mode(struct shmid_ds *ds, short exp_mode) in check_mode()
52 struct shmid_ds ds; in verify_shmset()
Dshmctl04.c116 struct shmid_ds ds; in verify_shminfo()
123 TEST(shmctl(0, SHM_INFO, (struct shmid_ds *)&info)); in verify_shminfo()
158 struct shmid_ds temp_ds; in setup()
Dshmctl03.c22 TEST(shmctl(0, IPC_INFO, (struct shmid_ds *)&info)); in verify_ipcinfo()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl02.c36 static struct shmid_ds buf;
41 struct shmid_ds *sbuf;
45 {&shm_id_2, IPC_SET, (struct shmid_ds *)-1, EFAULT},
47 {&shm_id_2, IPC_STAT, (struct shmid_ds *)-1, EFAULT},
Dhugeshmctl03.c43 static struct shmid_ds buf;
50 struct shmid_ds *sbuf;
/third_party/musl/porting/liteos_a/kernel/include/bits/
Dshm.h3 #define shmid_ds shmid64_ds macro
5 struct shmid_ds { struct
/third_party/musl/porting/liteos_a_newlib/kernel/include/bits/
Dshm.h3 #define shmid_ds shmid64_ds macro
5 struct shmid_ds { struct
/third_party/musl/libc-test/src/api/
Dsys_shm.c15 struct shmid_ds x; in f()
26 {int(*p)(int,int,struct shmid_ds*) = shmctl;} in f()
/third_party/toybox/toys/pending/
Dipcs.c120 struct shmid_ds buf; in show_shm_id()
151 struct shmid_ds buf; in shm_array()
156 if ((max_nr = shmctl(0, SHM_INFO, (struct shmid_ds*)&shm_buf)) < 0) { in shm_array()
176 if ((shmctl(0, 3, (struct shmid_ds*)&ipc_buf)) < 0) return; //IPC_INFO in shm_array()
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/
D9-1-buildonly.c17 typedef int (*shmctl_test) (int, int, struct shmid_ds *);
D6-1-buildonly.c24 static struct shmid_ds this_type_should_exist, t;
/third_party/musl/arch/powerpc64/bits/
Dshm.h3 struct shmid_ds { struct
/third_party/musl/porting/linux/user/arch/generic/bits/
Dshm.h3 struct shmid_ds { struct
/third_party/musl/arch/generic/bits/
Dshm.h7 struct shmid_ds { struct
/third_party/musl/arch/mips/bits/
Dshm.h3 struct shmid_ds { struct
/third_party/musl/arch/mipsn32/bits/
Dshm.h3 struct shmid_ds { struct
/third_party/musl/arch/powerpc/bits/
Dshm.h3 struct shmid_ds { struct
/third_party/musl/arch/sh/bits/
Dshm.h3 struct shmid_ds { struct
/third_party/musl/porting/liteos_m_iccarm/kernel/include/bits/
Dshm.h3 struct shmid_ds { struct
/third_party/musl/arch/m68k/bits/
Dshm.h3 struct shmid_ds { struct
/third_party/musl/arch/i386/bits/
Dshm.h3 struct shmid_ds { struct

12345