shm_open
__weak_reference(shm_open, _shm_open);
__weak_reference(shm_open, __sys_shm_open);
fd = shm_open(SHM_ANON, O_RDWR|O_CREAT, 0600);
{ compat12(AS(freebsd12_shm_open_args),shm_open), .sy_auevent = AUE_SHMOPEN, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 482 = freebsd12 shm_open */
{ compat12(AS(freebsd12_shm_open_args),shm_open), .sy_auevent = AUE_SHMOPEN, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 482 = freebsd12 shm_open */
int shm_open(const char *, int, mode_t);
ATF_REQUIRE(shm_open(SHM_ANON, O_CREAT | O_TRUNC | O_RDWR, 0600) != -1);
ATF_REQUIRE_EQ(-1, shm_open(path, O_TRUNC | O_RDWR, 0600));
ATF_REQUIRE(shm_open(dirpath, O_CREAT | O_TRUNC | O_RDWR, 0600) != -1);
files["SHM"] = shm_open(shm_name, (O_CREAT|O_RDWR), 0600);
CHILD_REQUIRE(shm_open("/ktrace_shm", O_RDWR | O_CREAT,
fd = shm_open(SHM_ANON, O_RDWR, 0777);
fd = shm_open(test_path, O_CREAT | O_RDWR, 0600);
fd = shm_open(test_path, O_CREAT | O_RDWR, 0600);
fd = shm_open(test_path, O_CREAT | O_RDWR, 0660);
fd = shm_open(test_path, O_CREAT | O_RDWR, 0666);
fd = shm_open(SHM_ANON, O_RDWR, 0666);
fd = shm_open("/testtest", O_RDWR | O_CREAT, 0666);
fd = shm_open("/testtest1", O_RDWR | O_CREAT, 0666);
fd = shm_open(test_path, O_RDONLY | O_CREAT, 0644);
fd = shm_open(path, O_CREAT|O_EXCL|O_RDWR, 0777);
fd = shm_open(test_path, O_CREAT | O_EXCL | O_RDWR, 0777);
fd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0);
fd = shm_open(path, O_RDONLY, 0777);
fd = shm_open(test_path, O_RDWR, 0);
fd = shm_open(test_path, O_RDONLY, 0777);
fd = shm_open(test_path, O_RDONLY | O_CREAT, 0777);
fd = shm_open(test_path, O_RDONLY | O_CREAT, 0777);
fd = shm_open(SHM_ANON, O_RDWR, 0777);
fd = shm_open(test_path, O_RDONLY|O_CREAT, 0777);
fd = shm_open(test_path, O_RDWR | O_CREAT, 0777);
fd = shm_open(test_path, O_RDWR | O_TRUNC, 0777);
fd = shm_open(SHM_ANON, O_CREAT|O_RDWR, 0777);
desc = shm_open(test_path, O_EXCL | O_CREAT | O_RDWR, 0600);
fd = shm_open(path, flags, mode);
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);
fd = shm_open(kif->kf_path, O_RDONLY, 0);
fd = shm_open(path, O_RDONLY, 0);
fd = shm_open(path, O_RDONLY, 0);
fd = shm_open(path, O_RDWR, 0);
fd = shm_open(path, O_RDWR | O_CREAT, mode);