Lines Matching refs:shmaddr
49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); in main() local
50 if (shmaddr == (void *)(-1)) in main()
52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr); in main()
57 rc = shmdt(shmaddr); in main()
58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc)); in main()
60 ++shmaddr; in main()
61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND); in main()
64 SHMAT, id, shmaddr, errno2name()); in main()
67 SHMAT, id, shmaddr, shmaddr2); in main()
72 shmaddr = shmat(id, NULL, SHM_RDONLY|SHM_EXEC); in main()
73 if (shmaddr == (void *)(-1)) in main()
78 SHMAT, id, shmaddr); in main()
79 rc = shmdt(shmaddr); in main()
80 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc)); in main()