Home
last modified time | relevance | path

Searched refs:socket_path (Results 1 – 12 of 12) sorted by relevance

/external/e2fsprogs/misc/
Duuidd.c143 static int call_daemon(const char *socket_path, int op, char *buf, in call_daemon() argument
167 strncpy(srv_addr.sun_path, socket_path, sizeof(srv_addr.sun_path)); in call_daemon()
230 static void server_loop(const char *socket_path, const char *pidfile_path, in server_loop() argument
268 ret = call_daemon(socket_path, 0, reply_buf, sizeof(reply_buf), 0, 0); in server_loop()
300 strncpy(my_addr.sun_path, socket_path, sizeof(my_addr.sun_path)); in server_loop()
302 (void) unlink(socket_path); in server_loop()
309 socket_path, strerror(errno)); in server_loop()
317 "socket %s: %s\n"), socket_path, in server_loop()
322 cleanup_socket = socket_path; in server_loop()
445 const char *socket_path = UUIDD_SOCKET_PATH; in main() local
[all …]
/external/openssh/
Dentropy.c78 unsigned short tcp_port, char *socket_path) in get_random_bytes_prngd() argument
88 if (socket_path == NULL && tcp_port == 0) in get_random_bytes_prngd()
90 if (socket_path != NULL && in get_random_bytes_prngd()
91 strlen(socket_path) >= sizeof(addr_un->sun_path)) in get_random_bytes_prngd()
105 strlcpy(addr_un->sun_path, socket_path, in get_random_bytes_prngd()
108 strlen(socket_path) + 1; in get_random_bytes_prngd()
/external/crosvm/sys_util/src/
Dnet.rs470 let mut socket_path = tmpdir(); in unix_seqpacket_listener_path() localVariable
471 socket_path.push("unix_seqpacket_listener_path"); in unix_seqpacket_listener_path()
473 UnixSeqpacketListener::bind(&socket_path) in unix_seqpacket_listener_path()
477 assert_eq!(socket_path, listener_path); in unix_seqpacket_listener_path()
482 let mut socket_path = tmpdir(); in unix_seqpacket_path_exists_pass() localVariable
483 socket_path.push("path_to_socket"); in unix_seqpacket_path_exists_pass()
485 UnixSeqpacketListener::bind(&socket_path) in unix_seqpacket_path_exists_pass()
489 UnixSeqpacket::connect(socket_path.as_path()).expect("UnixSeqpacket::connect failed"); in unix_seqpacket_path_exists_pass()
494 let mut socket_path = tmpdir(); in unix_seqpacket_path_listener_accept() localVariable
495 socket_path.push("path_listerner_accept"); in unix_seqpacket_path_listener_accept()
[all …]
/external/autotest/client/cros/crash/crasher/
Dcrasher.cc27 bool SendPid(const char *socket_path);
47 bool SendPid(const char *socket_path) { in SendPid() argument
60 strncpy(address.sun_path, socket_path, sizeof(address.sun_path) - 1); in SendPid()
/external/crosvm/src/
Dmain.rs100 socket_path: Option<PathBuf>, field
142 socket_path: None, in default()
528 if cfg.socket_path.is_some() { in set_argument()
533 let mut socket_path = PathBuf::from(value.unwrap()); in set_argument() localVariable
534 if socket_path.is_dir() { in set_argument()
535 socket_path.push(format!("crosvm-{}.sock", getpid())); in set_argument()
537 if socket_path.exists() { in set_argument()
539 value: socket_path.to_string_lossy().into_owned(), in set_argument()
543 cfg.socket_path = Some(socket_path); in set_argument()
953 for socket_path in args { in handle_request()
[all …]
Dlinux.rs616 socket_path: &Path, in create_wayland_device()
620 let wayland_socket_dir = socket_path.parent().ok_or(Error::InvalidWaylandPath)?; in create_wayland_device()
621 let wayland_socket_name = socket_path.file_name().ok_or(Error::InvalidWaylandPath)?; in create_wayland_device()
629 socket_path in create_wayland_device()
1264 let control_server_socket = match &cfg.socket_path { in run_config()
/external/autotest/client/site_tests/platform_CompressedSwapPerf/
Dplatform_CompressedSwapPerf.py296 socket_path = os.path.join(temp_dir, str(len(hogs)))
297 paths.append(socket_path)
299 launch_cmd.append(socket_path)
307 for socket_path in paths:
310 hog_sock.connect(socket_path)
/external/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_file_test.c72 static const char *socket_path = "/tmp/socket_test"; variable
185 strncpy(addr.sun_path, socket_path, sizeof(addr.sun_path) - 1); in stage_file_test()
226 unlink(socket_path); in creanup_files()
/external/wpa_supplicant_8/hostapd/
Dhlr_auc_gw.c62 static const char *socket_path; variable
953 if (socket_path) in cleanup()
954 unlink(socket_path); in cleanup()
1014 socket_path = default_socket_path; in main()
1046 socket_path = optarg; in main()
1074 serv_sock = open_socket(socket_path); in main()
1078 printf("Listening for requests on %s\n", socket_path); in main()
1088 socket_path = NULL; in main()
/external/crosvm/gpu_display/src/
Ddwl.rs69 socket_path: *const ::std::os::raw::c_char, in dwl_context_setup()
Ddisplay_wl.c378 bool dwl_context_setup(struct dwl_context *self, const char *socket_path) in dwl_context_setup() argument
380 struct wl_display *display = wl_display_connect(socket_path); in dwl_context_setup()
/external/crosvm/devices/src/virtio/gpu/
Dmod.rs748 let socket_path = self.wayland_socket_path.clone(); in activate() localVariable
771 let display = match GpuDisplay::new(socket_path) { in activate()