Home
last modified time | relevance | path

Searched refs:shm_path (Results 1 – 2 of 2) sorted by relevance

/third_party/boost/libs/interprocess/test/
Dwindows_shared_dir_func.cpp50 std::string shm_path(shared_dir); in main() local
51 shm_path += "/"; in main()
52 shm_path += shm_name; in main()
61 … ret = ipcdetail::invalid_file() == ipcdetail::open_existing_file(shm_path.c_str(), read_only) ? in main()
/third_party/ltp/lib/
Dtst_test.c74 static char shm_path[1024]; variable
87 snprintf(shm_path, sizeof(shm_path), "/dev/shm/ltp_%s_%d", in setup_ipc()
96 snprintf(shm_path, sizeof(shm_path), "%s/ltp_%s_%d", in setup_ipc()
101 ipc_fd = open(shm_path, O_CREAT | O_EXCL | O_RDWR, 0600); in setup_ipc()
103 tst_brk(TBROK | TERRNO, "open(%s)", shm_path); in setup_ipc()
104 SAFE_CHMOD(shm_path, 0666); in setup_ipc()
112 sprintf(ipc_path, IPC_ENV_VAR "=%s", shm_path); in setup_ipc()
115 SAFE_UNLINK(shm_path); in setup_ipc()
133 if (shm_path[0] && !access(shm_path, F_OK) && unlink(shm_path)) in cleanup_ipc()
134 tst_res(TWARN | TERRNO, "unlink(%s) failed", shm_path); in cleanup_ipc()