Lines Matching defs:msgds
81 struct msqid_ds msgds;
85 (void)memset(&msgds, 0, sizeof(struct msqid_ds));
91 ATF_REQUIRE_ERRNO(EINVAL, msgctl(id, INT_MAX, &msgds) == -1);
98 ATF_REQUIRE_ERRNO(EINVAL, msgctl(-1, cmd[i], &msgds) == -1);
118 struct msqid_ds msgds;
124 (void)memset(&msgds, 0, sizeof(struct msqid_ds));
131 ATF_REQUIRE(msgctl(id, IPC_STAT, &msgds) == 0);
141 msgds.msg_perm.uid = getuid();
142 msgds.msg_perm.gid = getgid();
146 if (msgctl(id, IPC_SET, &msgds) == 0)
152 (void)memset(&msgds, 0, sizeof(struct msqid_ds));
154 if (msgctl(id, IPC_STAT, &msgds) != 0)
157 msgds.msg_qbytes = 1;
159 if (msgctl(id, IPC_SET, &msgds) == 0)
197 struct msqid_ds msgds;
216 (void)memset(&msgds, 0, sizeof(struct msqid_ds));
218 ATF_REQUIRE(msgctl(id, IPC_STAT, &msgds) == 0);
220 if (pid != msgds.msg_lspid)
236 (void)memset(&msgds, 0, sizeof(struct msqid_ds));
238 ATF_REQUIRE(msgctl(id, IPC_STAT, &msgds) == 0);
240 if (pid != msgds.msg_lrpid)
260 struct msqid_ds msgds;
264 (void)memset(&msgds, 0, sizeof(struct msqid_ds));
271 ATF_REQUIRE(msgctl(id, IPC_STAT, &msgds) == 0);
273 msgds.msg_perm.uid = pw->pw_uid;
275 if (msgctl(id, IPC_SET, &msgds) != 0)
278 msgds.msg_perm.uid = getuid();
279 msgds.msg_perm.gid = pw->pw_gid;
281 if (msgctl(id, IPC_SET, &msgds) != 0)
287 msgds.msg_qbytes = 1;
288 msgds.msg_perm.gid = getgid();
290 if (msgctl(id, IPC_SET, &msgds) != 0)
310 struct msqid_ds msgds;
319 (void)memset(&msgds, 0, sizeof(struct msqid_ds));
321 (void)msgctl(id, IPC_STAT, &msgds);
323 if (llabs(t - msgds.msg_stime) > 1)
326 if (msgds.msg_rtime != 0)
331 (void)memset(&msgds, 0, sizeof(struct msqid_ds));
333 (void)msgctl(id, IPC_STAT, &msgds);
335 if (llabs(t - msgds.msg_rtime) > 1)
341 if (msgds.msg_stime == 0)