Home
last modified time | relevance | path

Searched refs:sem_perm (Results 1 – 25 of 31) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/
Dsemctl07.c47 if (arg.buf->sem_perm.uid != getuid()) { in verify_semctl()
49 arg.buf->sem_perm.uid, getuid()); in verify_semctl()
51 tst_res(TPASS, "sem_perm.uid = %d", arg.buf->sem_perm.uid); in verify_semctl()
54 if (arg.buf->sem_perm.gid != getgid()) { in verify_semctl()
56 arg.buf->sem_perm.gid, getgid()); in verify_semctl()
58 tst_res(TPASS, "sem_perm.gid = %d", arg.buf->sem_perm.gid); in verify_semctl()
61 if (arg.buf->sem_perm.cuid != getuid()) { in verify_semctl()
63 arg.buf->sem_perm.cuid, getuid()); in verify_semctl()
65 tst_res(TPASS, "sem_perm.cuid = %d", arg.buf->sem_perm.cuid); in verify_semctl()
68 if (arg.buf->sem_perm.cgid != getgid()) { in verify_semctl()
[all …]
Dsemctl04.c39 perm.sem_perm.uid = getuid() + 1; in do_child()
40 perm.sem_perm.gid = getgid() + 1; in do_child()
41 perm.sem_perm.mode = 0666; in do_child()
Dsemctl01.c44 if (buf.sem_nsems == PSEMS && buf.sem_perm.mode == (SEM_RA)) in func_stat()
52 buf.sem_perm.mode = SEM_RA | NEWMODE; in set_setup()
59 if (buf.sem_perm.mode == (SEM_RA | NEWMODE)) in func_set()
/third_party/ltp/include/lapi/
Dsembuf.h29 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ member
39 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ member
60 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ member
89 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ member
118 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ member
149 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ member
173 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ member
215 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ member
/third_party/toybox/toys/pending/
Dipcs.c88 #define ipcperm buf.sem_perm in show_sem_id()
308 pw = getpwuid(buf.sem_perm.uid); in sem_array()
311 else printf("%-8d %-10d", semid, buf.sem_perm.uid); in sem_array()
318 printf("%-10d %-10o", semid, buf.sem_perm.mode & 0777); in sem_array()
319 if ((pw = getpwuid(buf.sem_perm.cuid))) printf(" %-10s", pw->pw_name); in sem_array()
320 else printf(" %-10d", buf.sem_perm.cuid); in sem_array()
321 if ((gr = getgrgid(buf.sem_perm.cgid))) printf(" %-10s", gr->gr_name); in sem_array()
322 else printf(" %-10d", buf.sem_perm.cgid); in sem_array()
323 if ((pw = getpwuid(buf.sem_perm.uid))) printf(" %-10s", pw->pw_name); in sem_array()
324 else printf(" %-10d", buf.sem_perm.uid); in sem_array()
[all …]
/third_party/musl/libc-test/src/functional/
Dipc_sem.c59 EQ(semid_ds.sem_perm.cuid, geteuid(), "got %d, want %d"); in inc()
60 EQ(semid_ds.sem_perm.uid, geteuid(), "got %d, want %d"); in inc()
61 EQ(semid_ds.sem_perm.cgid, getegid(), "got %d, want %d"); in inc()
62 EQ(semid_ds.sem_perm.gid, getegid(), "got %d, want %d"); in inc()
63 EQ(semid_ds.sem_perm.mode & 0x1ff, 0666, "got %o, want %o"); in inc()
/third_party/musl/src/ipc/
Dsemctl.c43 tmp.sem_perm.mode *= 0x10000U; in semctl()
57 arg.buf->sem_perm.mode >>= 16; in semctl()
/third_party/musl/porting/liteos_a/user/src/ipc/
Dsemctl.c46 tmp.sem_perm.mode *= 0x10000U; in semctl()
60 arg.buf->sem_perm.mode >>= 16; in semctl()
/third_party/musl/arch/x86_64/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/arch/x32/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/arch/m68k/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/arch/or1k/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/arch/i386/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/arch/powerpc/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/arch/generic/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/arch/mips/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/arch/mipsn32/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/arch/sh/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/porting/liteos_m_iccarm/kernel/include/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/porting/uniproton/kernel/include/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/arch/arm/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/porting/liteos_m/kernel/include/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/musl/arch/microblaze/bits/
Dsem.h2 struct ipc_perm sem_perm; member
/third_party/ltp/testcases/kernel/syscalls/ipc/semget/
Dsemget01.c132 if (un_arg.buf->sem_perm.cuid != geteuid()) { in check_functionality()
/third_party/musl/libc-test/src/api/
Dsys_sem.c20 F(struct ipc_perm,sem_perm) in f()

12