SHM_ANON
fd = __sys_shm_open2(SHM_ANON, oflags, 0, shmflags, memfd_name);
fd = shm_open(SHM_ANON, O_RDWR|O_CREAT, 0600);
return (kern_shm_open2(td, SHM_ANON, oflags, 0, shmflags, NULL,
if (userpath != SHM_ANON) {
if (userpath == SHM_ANON) {
if (uap->path_from == SHM_ANON || uap->path_to == SHM_ANON) {
ATF_REQUIRE(shm_open(SHM_ANON, O_CREAT | O_TRUNC | O_RDWR, 0600) != -1);
fd = shm_open(SHM_ANON, O_RDWR, 0777);
fd = shm_open(SHM_ANON, O_RDWR, 0666);
fd = shm_create_largepage(SHM_ANON, O_CREAT | O_RDWR, psind, policy, 0);
fd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0);
fd = __sys_shm_open2(SHM_ANON, O_CREAT | O_RDWR, 0, SHM_LARGEPAGE,
rc = shm_rename(SHM_ANON, test_path, 0);
rc = shm_rename(test_path, SHM_ANON, 0);
fd = shm_open(SHM_ANON, O_RDWR, 0777);
shm_open_should_fail(SHM_ANON, O_RDONLY, 0777, EINVAL);
fd = shm_open(SHM_ANON, O_CREAT|O_RDWR, 0777);
shmfd = shm_open(SHM_ANON, O_RDWR | O_CREAT, 0600);
ATF_REQUIRE((shmfd = shm_open(SHM_ANON, O_RDWR, 0644)) >= 0);
fd = shm_open(SHM_ANON, O_RDWR, 0644);
fd = shm_open(SHM_ANON, O_RDWR | O_CREAT, 0600);
fd = shm_open(SHM_ANON, O_RDWR | O_CREAT, 0600);
{ "SHM", shm_open(SHM_ANON, O_RDWR, 0600) },
shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600);
shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600);
shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600);
shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600);
if (ip[0] == (uintptr_t)SHM_ANON) {
if (ip[0] == (uintptr_t)SHM_ANON) {
if ((char *)(uintptr_t)args[sc->offset] == SHM_ANON) {