Home
last modified time | relevance | path

Searched refs:shm_open (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/tools/test/stress2/misc/
H A Dshm_open.sh37 sed '1,/^EOF/d' < $odir/$0 > $dir/shm_open.c
38 mycc -o shm_open -Wall -Wextra -O2 -g shm_open.c || exit 1
39 rm -f shm_open.c
43 su $testuser -c /tmp/shm_open
48 rm -f /tmp/shm_open
72 if ((fd = shm_open(name, O_RDWR | O_CREAT, 0644)) == -1)
H A Dshm3.sh33 shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600);
H A Dshm_super.sh55 shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600);
H A Dlargepage.sh101 if ((fd = shm_open(path, O_RDWR, 0)) == -1)
H A Dradix.sh78 perhaps, using shm_open() + ftruncate(), and touches pages 0, 1, 8, 9, function
H A Dsendfile_shm.sh171 shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600);
/freebsd/lib/libc/sys/
H A Dshm_open.c42 __weak_reference(shm_open, _shm_open);
43 __weak_reference(shm_open, __sys_shm_open);
46 shm_open(const char *path, int flags, mode_t mode) in shm_open() function
H A DSymbol.map23 shm_open;
H A DMakefile.inc32 shm_open.c \
/freebsd/tests/sys/posixshm/
H A Dposixshm_test.c92 fd = shm_open(path, flags, mode); in shm_open_should_fail()
124 fd = shm_open(path, O_CREAT|O_EXCL|O_RDWR, 0777); in scribble_object()
128 fd = shm_open(test_path, O_CREAT | O_EXCL | O_RDWR, 0777); in scribble_object()
159 fd = shm_open(path, O_RDONLY, 0777); in verify_object()
544 fd = shm_open(test_path, O_RDONLY, 0777); in ATF_TC_BODY()
572 fd = shm_open(test_path, O_RDONLY | O_CREAT, 0777); in ATF_TC_BODY()
596 fd = shm_open(test_path, O_RDONLY | O_CREAT, 0777); in ATF_TC_BODY()
636 fd = shm_open(SHM_ANON, O_RDWR, 0777); in ATF_TC_BODY()
681 fd = shm_open(test_path, O_RDONLY|O_CREAT, 0777); in ATF_TC_BODY()
701 fd = shm_open(test_path, O_RDWR | O_CREAT, 0777); in ATF_TC_BODY()
[all …]
/freebsd/usr.bin/posixshmcontrol/
H A Dposixshmcontrol.c67 fd = shm_open(path, O_RDWR | O_CREAT, mode); in create_one_shm()
306 fd = shm_open(kif->kf_path, O_RDONLY, 0); in list_shm()
353 fd = shm_open(path, O_RDONLY, 0); in read_one_shm()
409 fd = shm_open(path, O_RDONLY, 0); in stat_one_shm()
503 fd = shm_open(path, O_RDWR, 0); in truncate_one_shm()
/freebsd/lib/libsys/
H A DMakefile.sys326 shm_open.2 \
510 MLINKS+=shm_open.2 memfd_create.3 \
511 shm_open.2 shm_create_largepage.3 \
512 shm_open.2 shm_unlink.2 \
513 shm_open.2 shm_rename.2
/freebsd/tests/sys/vm/
H A Dpage_fault_signal.c130 fd = shm_open(SHM_ANON, O_RDWR | O_CREAT, 0600); in ATF_TC_BODY()
153 fd = shm_open(SHM_ANON, O_RDWR | O_CREAT, 0600); in ATF_TC_BODY()
H A Dmmap_test.c140 ATF_REQUIRE((shmfd = shm_open(SHM_ANON, O_RDWR, 0644)) >= 0); in ATF_TC_BODY()
329 fd = shm_open(SHM_ANON, O_RDWR, 0644); in ATF_TC_BODY()
H A Dmlock_test.c203 shmfd = shm_open(SHM_ANON, O_RDWR | O_CREAT, 0600); in ATF_TC_BODY()
/freebsd/tools/regression/security/cap_test/
H A Dcap_test_fcntl.c72 { "SHM", shm_open(SHM_ANON, O_RDWR, 0600) }, in test_fcntl()
/freebsd/tools/tools/syscall_timing/
H A Dsyscall_timing.c698 shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600); in test_shmfd()
704 shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600); in test_shmfd()
719 shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600); in test_shmfd_dup()
743 shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600); in test_shmfd_fstat()
/freebsd/sys/sys/
H A Dmman.h347 int shm_open(const char *, int, mode_t);
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DExecutorSharedMemoryMapperService.cpp82 shm_open(SharedMemoryName.c_str(), O_RDWR | O_CREAT | O_EXCL, 0700); in reserve()
/freebsd/tests/sys/audit/
H A Dinter-process.c1413 ATF_REQUIRE(shm_open(SHM_ANON, O_CREAT | O_TRUNC | O_RDWR, 0600) != -1); in ATF_TC_BODY()
1435 ATF_REQUIRE_EQ(-1, shm_open(path, O_TRUNC | O_RDWR, 0600)); in ATF_TC_BODY()
1458 ATF_REQUIRE(shm_open(dirpath, O_CREAT | O_TRUNC | O_RDWR, 0600) != -1); in ATF_TC_BODY()
/freebsd/contrib/capsicum-test/
H A Dfcntl.cc36 files["SHM"] = shm_open(shm_name, (O_CREAT|O_RDWR), 0600); in FORK_TEST()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DMemoryMapper.cpp264 int SharedMemoryFile = shm_open(SharedMemoryName.c_str(), O_RDWR, 0700); in reserve()
/freebsd/tests/sys/kern/
H A Dktrace_test.c522 CHILD_REQUIRE(shm_open("/ktrace_shm", O_RDWR | O_CREAT, in ATF_TC_BODY()
/freebsd/contrib/openbsm/etc/
H A Daudit_event341 345:AUE_DARWIN_SHMOPEN:shm_open(2):ip
395 43035:AUE_SHMOPEN:shm_open(2):ip
/freebsd/lib/libc/tests/sys/
H A Dsendfile_test.c415 fd = shm_open(SHM_ANON, O_RDWR|O_CREAT, 0600); in fd_positive_shm_test()

12