Lines Matching refs:shmid_ds
32 struct shmid_ds shmid_ds;
52 T(shmctl(shmid, IPC_STAT, &shmid_ds));
53 EQ(shmid_ds.shm_perm.cuid, geteuid(), "got %d, want %d");
54 EQ(shmid_ds.shm_perm.uid, geteuid(), "got %d, want %d");
55 EQ(shmid_ds.shm_perm.cgid, getegid(), "got %d, want %d");
56 EQ(shmid_ds.shm_perm.gid, getegid(), "got %d, want %d");
57 EQ(shmid_ds.shm_perm.mode & 0x1ff, 0666, "got %o, want %o");
58 EQ(shmid_ds.shm_segsz, 100, "got %d, want %d");
59 EQ(shmid_ds.shm_lpid, 0, "got %d, want %d");
60 EQ(shmid_ds.shm_cpid, getpid(), "got %d, want %d");
61 EQ((int)shmid_ds.shm_nattch, 0, "got %d, want %d");
62 EQ((long long)shmid_ds.shm_atime, 0, "got %lld, want %d");
63 EQ((long long)shmid_ds.shm_dtime, 0, "got %lld, want %d");
64 if (shmid_ds.shm_ctime < t)
65 t_error("shmid_ds.shm_ctime >= t failed: got %lld, want >= %lld\n", (long long)shmid_ds.shm_ctime, (long long)t);
66 if (shmid_ds.shm_ctime > t+5)
67 t_error("shmid_ds.shm_ctime <= t+5 failed: got %lld, want <= %lld\n", (long long)shmid_ds.shm_ctime, (long long)t+5);
72 T(shmctl(shmid, IPC_STAT, &shmid_ds));
73 EQ((int)shmid_ds.shm_nattch, 1, "got %d, want %d");
74 EQ(shmid_ds.shm_lpid, getpid(), "got %d, want %d");
75 if (shmid_ds.shm_atime < t)
76 t_error("shm_atime is %lld want >= %lld\n", (long long)shmid_ds.shm_atime, (long long)t);
77 if (shmid_ds.shm_atime > t+5)
78 t_error("shm_atime is %lld want <= %lld\n", (long long)shmid_ds.shm_atime, (long long)t+5);