Lines Matching defs:cmd
18 static int msg_ret_check(int cmd, int ret)
20 switch (cmd) {
33 static int shm_ret_check(int cmd, int ret)
35 switch (cmd) {
50 static int sem_ret_check(int cmd, int ret)
52 switch (cmd) {
122 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd,
127 rval = msgctl(msqid, cmd, buf);
131 "msgctl(%i, %i, %p) failed", msqid, cmd, buf);
132 } else if (msg_ret_check(cmd, rval)) {
135 cmd, buf, rval);
192 int safe_shmctl(const char *file, const int lineno, int shmid, int cmd,
197 rval = shmctl(shmid, cmd, buf);
201 "shmctl(%i, %i, %p) failed", shmid, cmd, buf);
202 } else if (shm_ret_check(cmd, rval)) {
205 cmd, buf, rval);
231 int cmd, ...)
237 switch (cmd) {
247 va_start(va, cmd);
252 rval = semctl(semid, semnum, cmd, un);
256 "semctl(%i, %i, %i,...) failed", semid, semnum, cmd);
257 } else if (sem_ret_check(cmd, rval)) {
260 semnum, cmd, rval);