Lines Matching refs:id
45 unsigned long id;
53 id = bb_strtoul(argv[0], NULL, 10);
54 if (errno || id > INT_MAX) {
55 bb_error_msg("invalid id: %s", argv[0]);
59 ret = semctl(id, 0, IPC_RMID, arg);
61 ret = msgctl(id, IPC_RMID, NULL);
63 ret = shmctl(id, IPC_RMID, NULL);
66 bb_perror_msg("cannot remove id %s", argv[0]);
124 int id = 0;
154 /* convert key to id */
155 id = ((c == 'q') ? msgget(key, 0) :
158 if (id < 0) {
181 id = xatoul(optarg);
184 result = ((c == 'q') ? msgctl(id, IPC_RMID, NULL) :
185 (c == 'm') ? shmctl(id, IPC_RMID, NULL) :
186 semctl(id, 0, IPC_RMID, arg));
190 const char *const what = iskey ? "key" : "id";