/third_party/ltp/include/ |
D | tst_safe_sysv_ipc.h | 18 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp, 20 #define SAFE_MSGSND(msqid, msgp, msgsz, msgflg) \ argument 21 safe_msgsnd(__FILE__, __LINE__, (msqid), (msgp), (msgsz), (msgflg)) 23 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp, 25 #define SAFE_MSGRCV(msqid, msgp, msgsz, msgtyp, msgflg) \ argument 26 safe_msgrcv(__FILE__, __LINE__, (msqid), (msgp), (msgsz), (msgtyp), (msgflg)) 28 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd, 30 #define SAFE_MSGCTL(msqid, cmd, buf) ({ \ argument 31 int tst_ret_ = safe_msgctl(__FILE__, __LINE__, (msqid), (cmd), (buf)); \ 32 (msqid) = ((cmd) == IPC_RMID ? -1 : (msqid)); \
|
/third_party/ltp/lib/ |
D | tst_safe_sysv_ipc.c | 82 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp, in safe_msgsnd() argument 87 rval = msgsnd(msqid, msgp, msgsz, msgflg); in safe_msgsnd() 91 "msgsnd(%i, %p, %zu, %x) failed", msqid, msgp, msgsz, in safe_msgsnd() 96 msqid, msgp, msgsz, msgflg, rval); in safe_msgsnd() 102 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp, in safe_msgrcv() argument 107 rval = msgrcv(msqid, msgp, msgsz, msgtyp, msgflg); in safe_msgrcv() 112 msqid, msgp, msgsz, msgtyp, msgflg); in safe_msgrcv() 116 msqid, msgp, msgsz, msgtyp, msgflg, rval); in safe_msgrcv() 122 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd, in safe_msgctl() argument 127 rval = msgctl(msqid, cmd, buf); in safe_msgctl() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
D | msgctl05.c | 23 int msqid; in run() local 28 msqid = SAFE_MSGGET(key, IPC_CREAT | IPC_EXCL | MSG_RW | 0600); in run() 30 TEST(msgctl(msqid, IPC_STAT, (struct msqid_ds *)&buf_ds)); in run() 39 SAFE_MSGCTL(msqid, IPC_RMID, NULL); in run()
|
D | msgctl04.c | 27 static int libc_msgctl(int msqid, int cmd, void *buf) in libc_msgctl() argument 29 return msgctl(msqid, cmd, buf); in libc_msgctl() 32 static int sys_msgctl(int msqid, int cmd, void *buf) in sys_msgctl() argument 34 return tst_syscall(__NR_msgctl, msqid, cmd, buf); in sys_msgctl() 60 int (*msgctl)(int msqid, int cmd, void *buf);
|
/third_party/toybox/toys/pending/ |
D | ipcs.c | 341 int max_nr, i, msqid; in msg_array() local 387 if ((msqid = msgctl(i, MSG_STAT, &buf)) < 0 ) continue; in msg_array() 390 if (pw) printf("%-8d %-10.10s", msqid, pw->pw_name); in msg_array() 391 else printf("%-8d %-10d", msqid, buf.msg_perm.uid); in msg_array() 399 if (pw) printf("%-8d %-10.10s", msqid, pw->pw_name); in msg_array() 400 else printf("%-8d %-10d", msqid, buf.msg_perm.uid); in msg_array() 403 printf("%-10d %-10o", msqid, buf.msg_perm.mode & 0777); in msg_array() 414 if (pw) printf("%-10d %-10.10s", msqid, pw->pw_name); in msg_array() 415 else printf("%-10d %-10d", msqid, buf.msg_perm.uid); in msg_array()
|