Home
last modified time | relevance | path

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

/freebsd/tools/regression/sockets/unix_bindconnect/
H A Dunix_bindconnect.c85 char socket_path[PATH_MAX]; in bind_test() local
95 if (snprintf(socket_path, sizeof(socket_path), "%s/%s", in bind_test()
105 if (snprintf(sun.sun_path, sizeof(sun.sun_path), "%s", socket_path) in bind_test()
118 push_path(socket_path); in bind_test()
177 unlink(socket_path); in bind_test()
196 char socket_path[PATH_MAX]; in connect_test() local
206 if (snprintf(socket_path, sizeof(socket_path), "%s/%s", in connect_test()
216 if (snprintf(sun.sun_path, sizeof(sun.sun_path), "%s", socket_path) in connect_test()
250 push_path(socket_path); in connect_test()
295 unlink(socket_path); in connect_test()
/freebsd/tools/regression/sockets/unix_sendtorace/
H A Dunix_sendtorace.c48 static char socket_path[] = "tmp.XXXXXX"; variable
77 strcpy(sun.sun_path, socket_path); in stream_client()
106 strcpy(sun.sun_path, socket_path); in stream_test()
126 (void)unlink(socket_path); in stream_test()
153 strcpy(sun.sun_path, socket_path); in datagram_client()
182 strcpy(sun.sun_path, socket_path); in datagram_test()
199 (void)unlink(socket_path); in datagram_test()
206 if (mkstemp(socket_path) == -1) in main()
208 (void)unlink(socket_path); in main()
/freebsd/tools/regression/sockets/unix_close_race/
H A Dunix_close_race.c55 static char socket_path[] = "tmp.XXXXXXXX"; variable
76 if (mkstemp(socket_path) == -1) in main()
78 unlink(socket_path); in main()
86 (void)unlink(socket_path); in main()
89 strcpy(servaddr.sun_path, socket_path); in main()
108 strcpy(servaddr.sun_path, socket_path); in main()
/freebsd/crypto/openssh/openbsd-compat/
H A Dport-prngd.c60 unsigned short tcp_port, char *socket_path) in get_random_bytes_prngd() argument
70 if (socket_path == NULL && tcp_port == 0) in get_random_bytes_prngd()
72 if (socket_path != NULL && in get_random_bytes_prngd()
73 strlen(socket_path) >= sizeof(addr_un->sun_path)) in get_random_bytes_prngd()
87 strlcpy(addr_un->sun_path, socket_path, in get_random_bytes_prngd()
90 strlen(socket_path) + 1; in get_random_bytes_prngd()
/freebsd/tools/regression/sockets/pr_atomic/
H A Dpr_atomic.c43 static char socket_path[] = "tmp.XXXXXX"; variable
59 if (mkstemp(socket_path) == -1) in main()
66 unlink(socket_path); in main()
67 strcpy(un.sun_path, socket_path); in main()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Platform/QemuUser/
H A DPlatformQemuUser.cpp179 llvm::SmallString<0> socket_model, socket_path; in DebugProcess()
183 llvm::sys::fs::createUniquePath(socket_model, socket_path, false); in DebugProcess()
184 } while (FileSystem::Instance().Exists(socket_path)); in DebugProcess()
186 Args args({qemu.GetPath(), "-g", socket_path}); in DebugProcess()
234 error = process_sp->ConnectRemote(("unix-connect://" + socket_path).str()); in DebugProcess()
170 llvm::SmallString<0> socket_model, socket_path; DebugProcess() local
/freebsd/lib/libc/net/
H A Dnscache.c71 params.socket_path = CACHED_SOCKET_PATH; in __nss_common_cache_read()
178 params.socket_path = CACHED_SOCKET_PATH; in __nss_common_cache_write()
243 params.socket_path = CACHED_SOCKET_PATH; in __nss_common_cache_write_negative()
282 params.socket_path = CACHED_SOCKET_PATH; in __nss_mp_cache_read()
347 params.socket_path = CACHED_SOCKET_PATH; in __nss_mp_cache_write()
H A Dnscachedcli.c201 strncpy(client_address.sun_path, params->socket_path, in __open_cached_connection()
/freebsd/usr.sbin/nscd/
H A Dconfig.c540 if (config->socket_path != NULL) in fill_configuration_defaults()
541 free(config->socket_path); in fill_configuration_defaults()
544 config->socket_path = calloc(1, len + 1); in fill_configuration_defaults()
545 assert(config->socket_path != NULL); in fill_configuration_defaults()
546 memcpy(config->socket_path, DEFAULT_SOCKET_PATH, len); in fill_configuration_defaults()
575 free(config->socket_path); in destroy_configuration()
H A Dnscd.c169 unlink(config->socket_path); in init_runtime_env()
173 strlcpy(serv_addr.sun_path, config->socket_path, in init_runtime_env()
184 "%s", config->socket_path); in init_runtime_env()
189 config->socket_path); in init_runtime_env()
195 chmod(config->socket_path, config->socket_mode); in init_runtime_env()
698 connection_params.socket_path = DEFAULT_SOCKET_PATH; in main()
H A Dnscdcli.h31 char *socket_path; member
H A Dconfig.h97 char *socket_path; member
H A Dnscdcli.c187 strlcpy(client_address.sun_path, params->socket_path, in open_nscd_connection__()
/freebsd/contrib/wpa/hostapd/
H A 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()
/freebsd/contrib/unbound/dnstap/
H A Ddtstream.c324 free(dtio->socket_path); in dt_io_thread_delete()
366 free(dtio->socket_path); in dt_io_thread_apply_cfg()
367 dtio->socket_path = strdup(nm); in dt_io_thread_apply_cfg()
368 if(!dtio->socket_path) { in dt_io_thread_apply_cfg()
741 char* to = dtio->socket_path; in dtio_check_nb_connect()
752 else if(dtio->socket_path) in dtio_check_nb_connect()
754 dtio->socket_path); in dtio_check_nb_connect()
965 char* to = dtio->socket_path; in receive_bytes()
1970 (void)strlcpy(s.sun_path, dtio->socket_path, sizeof(s.sun_path)); in dtio_open_output_local()
1974 char* to = dtio->socket_path; in dtio_open_output_local()
H A Ddtstream.h218 char* socket_path; member
H A Ddnstap.c145 check_socket_file(const char* socket_path) in check_socket_file() argument
149 if(stat(socket_path, &statbuf) < 0) { in check_socket_file()
151 socket_path, strerror(errno)); in check_socket_file()
/freebsd/crypto/heimdal/kcm/
H A Dconfig.c42 char *socket_path = NULL; variable
130 "socket-path", 's', arg_string, &socket_path,
H A Dkcm_locl.h167 extern char *socket_path;
/freebsd/lib/libc/include/
H A Dnscachedcli.h58 char *socket_path; member
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationServerPlatform.cpp585 llvm::SmallString<128> socket_path; in GetDomainSocketPath() local
593 socket_path); in GetDomainSocketPath()
594 return FileSpec(socket_path.c_str()); in GetDomainSocketPath()