Home
last modified time | relevance | path

Searched refs:shm_open (Results 1 – 25 of 31) 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 DMakefile.inc32 shm_open.c \
H A DSymbol.map23 shm_open;
/freebsd/tests/sys/posixshm/
H A Dposixshm_test.c103 fd = shm_open(path, flags, mode); in shm_open_should_fail()
135 fd = shm_open(path, O_CREAT|O_EXCL|O_RDWR, 0777); in scribble_object()
139 fd = shm_open(test_path, O_CREAT | O_EXCL | O_RDWR, 0777); in scribble_object()
170 fd = shm_open(path, O_RDONLY, 0777); in verify_object()
555 fd = shm_open(test_path, O_RDONLY, 0777); in ATF_TC_BODY()
583 fd = shm_open(test_path, O_RDONLY | O_CREAT, 0777); in ATF_TC_BODY()
607 fd = shm_open(test_path, O_RDONLY | O_CREAT, 0777); in ATF_TC_BODY()
647 fd = shm_open(SHM_ANON, O_RDWR, 0777); in ATF_TC_BODY()
692 fd = shm_open(test_path, O_RDONLY|O_CREAT, 0777); in ATF_TC_BODY()
712 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.sys343 shm_open.2 \
539 MLINKS+=shm_open.2 memfd_create.3 \
540 shm_open.2 shm_create_largepage.3 \
541 shm_open.2 shm_unlink.2 \
542 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.c141 ATF_REQUIRE((shmfd = shm_open(SHM_ANON, O_RDWR, 0644)) >= 0); in ATF_TC_BODY()
330 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.h349 int shm_open(const char *, int, mode_t);
/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/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DExecutorSharedMemoryMapperService.cpp83 shm_open(SharedMemoryName.c_str(), O_RDWR | O_CREAT | O_EXCL, 0700); in reserve()
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/
H A Drtsan_interceptors_posix.cpp1068 INTERCEPTOR(int, shm_open, const char *name, int oflag, mode_t mode) { argument
1070 return REAL(shm_open)(name, oflag, mode);
1555 INTERCEPT_FUNCTION(shm_open);
/freebsd/tests/sys/capsicum/
H A Dfcntl.cc36 files["SHM"] = shm_open(shm_name, (O_CREAT|O_RDWR), 0600); in FORK_TEST()
/freebsd/tests/sys/kern/
H A Dktrace_test.c521 CHILD_REQUIRE(shm_open("/ktrace_shm", O_RDWR | O_CREAT, in ATF_TC_BODY()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DMemoryMapper.cpp274 int SharedMemoryFile = shm_open(SharedMemoryName.c_str(), O_RDWR, 0700); in reserve()
/freebsd/contrib/openbsm/etc/
H A Daudit_event341 345:AUE_DARWIN_SHMOPEN:shm_open(2):ip
395 43035:AUE_SHMOPEN:shm_open(2):ip

12