/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/ |
D | 10-1.c | 27 char *shm_name; in main() local 36 shm_name = malloc(name_max + 3); in main() 38 if (!shm_name) { in main() 43 shm_name[0] = '/'; in main() 45 shm_name[i] = 'a'; in main() 46 shm_name[name_max + 2] = 0; in main() 48 result = shm_unlink(shm_name); in main()
|
D | 10-2.c | 33 char *shm_name; in main() local 40 shm_name = malloc(path_max + 1); in main() 42 if (!shm_name) { in main() 48 shm_name[i] = (i + 1) % COMPONENT_SIZE ? 'a' : '/'; in main() 49 shm_name[path_max] = 0; in main() 51 result = shm_unlink(shm_name); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
D | 39-1.c | 28 char *shm_name; in main() local 35 shm_name = malloc(name_max + 3); in main() 37 shm_name[0] = '/'; in main() 39 shm_name[i] = 'a'; in main() 40 shm_name[name_max + 2] = 0; in main() 42 fd = shm_open(shm_name, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in main() 49 shm_unlink(shm_name); in main()
|
D | 39-2.c | 33 char *shm_name; in main() local 40 shm_name = malloc(path_max + 1); in main() 43 shm_name[i] = (i + 1) % COMPONENT_SIZE ? 'a' : '/'; in main() 44 shm_name[path_max] = 0; in main() 46 fd = shm_open(shm_name, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in main() 53 shm_unlink(shm_name); in main()
|
D | 37-1.c | 25 char *shm_name[] = { variable 44 while (shm_name[i]) { in main() 46 printf("Name: '%s'\n", shm_name[i]); in main() 49 fd = shm_open(shm_name[i], O_RDWR | O_CREAT, 0); in main() 60 shm_unlink(shm_name[i]); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/ |
D | 2-1.c | 52 char shm_name[] = "tmp_pthread_spinlock_getpshared"; in main() local 57 shm_unlink(shm_name); in main() 59 shm_open(shm_name, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); in main() 67 shm_unlink(shm_name); in main() 78 shm_unlink(shm_name); in main() 121 if ((shm_unlink(shm_name)) != 0) { in main()
|
D | 2-2.c | 59 char shm_name[] = "tmp_pthread_spinlock_init"; in main() local 65 shm_unlink(shm_name); in main() 67 shm_open(shm_name, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); in main() 75 shm_unlink(shm_name); in main() 86 shm_unlink(shm_name); in main() 127 if ((shm_unlink(shm_name)) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/ |
D | 2-1.c | 54 char shm_name[] = "tmp_pthread_rwlock_getpshared"; in main() local 82 shm_unlink(shm_name); in main() 84 shm_open(shm_name, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); in main() 92 shm_unlink(shm_name); in main() 103 shm_unlink(shm_name); in main() 146 if ((shm_unlink(shm_name)) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/ |
D | 2-1.c | 64 char shm_name[] = "tmp_pthread_barrierattr_getpshared"; in main() local 103 shm_unlink(shm_name); in main() 105 shm_open(shm_name, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); in main() 113 shm_unlink(shm_name); in main() 123 shm_unlink(shm_name); in main() 205 if ((shm_unlink(shm_name)) != 0) { in main()
|
/external/adhd/cras/src/fuzz/ |
D | rclient_message.cc | 28 char* shm_name; in LLVMFuzzerInitialize() local 29 if (asprintf(&shm_name, "/cras-%d", getpid()) < 0) in LLVMFuzzerInitialize() 37 cras_system_state_init("/tmp", shm_name, rw_shm_fd, ro_shm_fd, exp_state, in LLVMFuzzerInitialize() 39 free(shm_name); in LLVMFuzzerInitialize()
|
/external/adhd/cras/src/server/ |
D | cras.c | 123 char *shm_name; in main() local 124 if (asprintf(&shm_name, "/cras-%d", getpid()) < 0) in main() 130 shm_name, sizeof(*exp_state), &rw_shm_fd, &ro_shm_fd); in main() 133 cras_system_state_init(device_config_dir, shm_name, rw_shm_fd, in main() 135 free(shm_name); in main()
|
D | cras_system_state.c | 54 char shm_name[NAME_MAX]; member 80 void cras_system_state_init(const char *device_config_dir, const char *shm_name, in cras_system_state_init() argument 91 strncpy(state.shm_name, shm_name, sizeof(state.shm_name)); in cras_system_state_init() 92 state.shm_name[sizeof(state.shm_name) - 1] = '\0'; in cras_system_state_init() 168 cras_shm_close_unlink(state.shm_name, state.shm_fd); in cras_system_state_deinit()
|
D | cras_system_state.h | 41 void cras_system_state_init(const char *device_config_dir, const char *shm_name,
|
/external/u-boot/common/ |
D | avb_verify.c | 863 struct tee_shm *shm_name; in read_persistent_value() local 875 TEE_SHM_ALLOC, &shm_name); in read_persistent_value() 886 memcpy(shm_name->addr, name, name_size); in read_persistent_value() 890 param[0].u.memref.shm = shm_name; in read_persistent_value() 913 tee_shm_free(shm_name); in read_persistent_value() 924 struct tee_shm *shm_name; in write_persistent_value() local 939 TEE_SHM_ALLOC, &shm_name); in write_persistent_value() 950 memcpy(shm_name->addr, name, name_size); in write_persistent_value() 955 param[0].u.memref.shm = shm_name; in write_persistent_value() 969 tee_shm_free(shm_name); in write_persistent_value()
|
/external/adhd/cras/src/tests/ |
D | system_state_unittest.cc | 89 char* shm_name; in do_sys_init() local 90 ASSERT_GT(asprintf(&shm_name, "/cras-%d", getpid()), 0); in do_sys_init() 94 (struct cras_server_state*)cras_shm_setup(shm_name, sizeof(*exp_state), in do_sys_init() 98 cras_system_state_init(device_config_dir, shm_name, rw_shm_fd, ro_shm_fd, in do_sys_init() 100 free(shm_name); in do_sys_init()
|
/external/crosvm/sys_util/src/ |
D | syslog.rs | 608 let shm_name = CStr::from_bytes_with_nul(b"/crosvm_shm\0").unwrap(); in syslog_file() localVariable 610 shm_unlink(shm_name.as_ptr()); in syslog_file() 611 let fd = shm_open(shm_name.as_ptr(), O_RDWR | O_CREAT | O_EXCL, 0666); in syslog_file()
|
D | shm.rs | 107 let shm_name = name in new() localVariable 112 let fd = unsafe { memfd_create(shm_name, MFD_CLOEXEC | MFD_ALLOW_SEALING) }; in new()
|
/external/adhd/cras/src/common/ |
D | cras_shm.h | 98 int cras_shm_info_init(const char *shm_name, uint32_t length,
|