Lines Matching refs:msqid
42 static int msqid = -1; variable
64 if (msqid != -1) { in cleanup()
65 int rc = msgctl(msqid, IPC_RMID, 0); in cleanup()
67 msqid, str_ipc_64, str_ipc_rmid); in cleanup()
68 msqid = -1; in cleanup()
77 sys_msgrcv(int msqid, void *msgp, size_t sz, kernel_long_t msgtyp, in sys_msgrcv() argument
81 return syscall(__NR_msgrcv, msqid, msgp, sz, msgtyp, msgflg); in sys_msgrcv()
83 return msgrcv(msqid, msgp, sz, msgtyp, msgflg); in sys_msgrcv()
99 msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRWXU); in main()
100 if (msqid == -1) in main()
103 str_ipc_private, str_ipc_creat, msqid); in main()
110 msqid, (long long) mtype); in main()
111 if (msgsnd(msqid, &msg, msgsz, 0) == -1) in main()
114 if (sys_msgrcv(msqid, &msg, msgsz, -mtype, 0) != msgsz) in main()
118 msqid, (long long) mtype, -(long long) mtype); in main()