Searched refs:shmname (Results 1 – 2 of 2) sorted by relevance
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix_libcdep.cc | 245 char shmname[200]; in GetNamedMappingFd() local 246 CHECK(internal_strlen(name) < sizeof(shmname) - 10); in GetNamedMappingFd() 247 internal_snprintf(shmname, sizeof(shmname), "%zu [%s]", internal_getpid(), in GetNamedMappingFd() 249 int fd = shm_open(shmname, O_RDWR | O_CREAT | O_TRUNC, S_IRWXU); in GetNamedMappingFd() 253 res = shm_unlink(shmname); in GetNamedMappingFd()
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix.cpp | 348 char shmname[200]; in GetNamedMappingFd() local 349 CHECK(internal_strlen(name) < sizeof(shmname) - 10); in GetNamedMappingFd() 350 internal_snprintf(shmname, sizeof(shmname), "/dev/shm/%zu [%s]", in GetNamedMappingFd() 357 internal_open(shmname, O_RDWR | O_CREAT | O_TRUNC | o_cloexec, S_IRWXU)); in GetNamedMappingFd() 365 res = internal_unlink(shmname); in GetNamedMappingFd()
|