Home
last modified time | relevance | path

Searched refs:sun_path (Results 1 – 25 of 59) sorted by relevance

123

/external/chromium_org/chrome/common/
Dmulti_process_lock_linux.cc32 const size_t max_len = sizeof(address.sun_path) - 2; in TryLock()
46 int print_length = snprintf(&address.sun_path[1], in TryLock()
58 address.sun_path[0] = '@'; in TryLock()
63 address.sun_path[0] = 0; in TryLock()
79 << &(address.sun_path[1]) in TryLock()
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface_unix.c88 (u8 *) from->sun_path, in wpa_supplicant_ctrl_iface_attach()
89 fromlen - offsetof(struct sockaddr_un, sun_path)); in wpa_supplicant_ctrl_iface_attach()
103 os_memcmp(from->sun_path, dst->addr.sun_path, in wpa_supplicant_ctrl_iface_detach()
104 fromlen - offsetof(struct sockaddr_un, sun_path)) in wpa_supplicant_ctrl_iface_detach()
108 (u8 *) from->sun_path, in wpa_supplicant_ctrl_iface_detach()
110 offsetof(struct sockaddr_un, sun_path)); in wpa_supplicant_ctrl_iface_detach()
133 os_memcmp(from->sun_path, dst->addr.sun_path, in wpa_supplicant_ctrl_iface_level()
134 fromlen - offsetof(struct sockaddr_un, sun_path)) in wpa_supplicant_ctrl_iface_level()
139 (u8 *) from->sun_path, fromlen - in wpa_supplicant_ctrl_iface_level()
140 offsetof(struct sockaddr_un, sun_path)); in wpa_supplicant_ctrl_iface_level()
[all …]
/external/wpa_supplicant_8/src/common/
Dwpa_ctrl.c111 ret = os_snprintf(ctrl->local.sun_path, sizeof(ctrl->local.sun_path), in wpa_ctrl_open()
115 if (ret < 0 || (size_t) ret >= sizeof(ctrl->local.sun_path)) { in wpa_ctrl_open()
130 unlink(ctrl->local.sun_path); in wpa_ctrl_open()
139 chmod(ctrl->local.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); in wpa_ctrl_open()
140 chown(ctrl->local.sun_path, AID_SYSTEM, AID_WIFI); in wpa_ctrl_open()
148 unlink(ctrl->local.sun_path); in wpa_ctrl_open()
169 unlink(ctrl->local.sun_path); in wpa_ctrl_open()
179 ctrl->dest.sun_path[0] = '\0'; in wpa_ctrl_open()
180 os_strlcpy(ctrl->dest.sun_path + 1, ctrl_path + 10, in wpa_ctrl_open()
181 sizeof(ctrl->dest.sun_path) - 1); in wpa_ctrl_open()
[all …]
/external/openssl/crypto/rand/
Drand_egd.c126 char sun_path[108]; /* path name (gag) */ member
147 if (strlen(path) >= sizeof(addr.sun_path)) in RAND_query_egd_bytes()
149 BUF_strlcpy(addr.sun_path,path,sizeof addr.sun_path); in RAND_query_egd_bytes()
150 len = offsetof(struct sockaddr_un, sun_path) + strlen(path); in RAND_query_egd_bytes()
/external/chromium_org/third_party/openssl/openssl/crypto/rand/
Drand_egd.c126 char sun_path[108]; /* path name (gag) */ member
147 if (strlen(path) >= sizeof(addr.sun_path)) in RAND_query_egd_bytes()
149 BUF_strlcpy(addr.sun_path,path,sizeof addr.sun_path); in RAND_query_egd_bytes()
150 len = offsetof(struct sockaddr_un, sun_path) + strlen(path); in RAND_query_egd_bytes()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_privsep.c114 os_strncmp(from.sun_path, l2->priv_addr.sun_path, in l2_packet_receive()
115 sizeof(from.sun_path)) != 0) { in l2_packet_receive()
160 os_snprintf(l2->priv_addr.sun_path, sizeof(l2->priv_addr.sun_path), in l2_packet_init()
174 os_strlcpy(addr.sun_path, l2->own_socket_path, sizeof(addr.sun_path)); in l2_packet_init()
/external/ipsec-tools/src/racoon/
Dadmin.c571 snprintf(sunaddr.sun_path, sizeof(sunaddr.sun_path), in admin_init()
581 unlink(sunaddr.sun_path); in admin_init()
586 sunaddr.sun_path, strerror(errno)); in admin_init()
591 if (chown(sunaddr.sun_path, adminsock_owner, adminsock_group) != 0) { in admin_init()
594 sunaddr.sun_path, adminsock_owner, in admin_init()
600 if (chmod(sunaddr.sun_path, adminsock_mode) != 0) { in admin_init()
603 sunaddr.sun_path, adminsock_mode, strerror(errno)); in admin_init()
611 sunaddr.sun_path, strerror(errno)); in admin_init()
616 "open %s as racoon management.\n", sunaddr.sun_path); in admin_init()
Dkmpstat.c105 snprintf(name.sun_path, sizeof(name.sun_path), in com_init()
/external/qemu/util/
Dqemu-sockets.c556 snprintf(un.sun_path, sizeof(un.sun_path), "%s", path); in unix_listen_opts()
559 snprintf(un.sun_path, sizeof(un.sun_path), "%s/qemu-socket-XXXXXX", in unix_listen_opts()
568 fd = mkstemp(un.sun_path); close(fd); in unix_listen_opts()
569 qemu_opt_set(opts, "path", un.sun_path); in unix_listen_opts()
572 unlink(un.sun_path); in unix_listen_opts()
574 fprintf(stderr, "bind(unix:%s): %s\n", un.sun_path, strerror(errno)); in unix_listen_opts()
578 fprintf(stderr, "listen(unix:%s): %s\n", un.sun_path, strerror(errno)); in unix_listen_opts()
583 fprintf(stderr, "bind(unix:%s): OK\n", un.sun_path); in unix_listen_opts()
610 snprintf(un.sun_path, sizeof(un.sun_path), "%s", path); in unix_connect_opts()
/external/clang/test/CodeGen/
Doffsetof.c6 char sun_path[104]; member
10 return __builtin_offsetof(struct sockaddr_un, sun_path[len+1]); in test()
/external/netperf/
Dnettest_unix.c419 strcpy(server.sun_path,stream_stream_response->unix_path); in send_stream_stream()
432 printf(" path: %s\n",server.sun_path); in send_stream_stream()
814 strcpy(myaddr_un.sun_path,tempnam(path_prefix,"netperf.")); in recv_stream_stream()
816 fprintf(where,"selected a path of %s\n",myaddr_un.sun_path); in recv_stream_stream()
830 chmod(myaddr_un.sun_path, 0666); in recv_stream_stream()
891 strcpy(stream_stream_response->unix_path,myaddr_un.sun_path); in recv_stream_stream()
1021 unlink(myaddr_un.sun_path); in recv_stream_stream()
1221 strcpy(server.sun_path,stream_rr_response->unix_path); in send_stream_rr()
1685 strcpy(server.sun_path,dg_stream_response->unix_path); in send_dg_stream()
2039 strcpy(myaddr_un.sun_path,tempnam(path_prefix,"netperf.")); in recv_dg_stream()
[all …]
/external/e2fsprogs/misc/
Duuidd.c165 strncpy(srv_addr.sun_path, socket_path, sizeof(srv_addr.sun_path)); in call_daemon()
166 srv_addr.sun_path[sizeof(srv_addr.sun_path)-1] = '\0'; in call_daemon()
298 strncpy(my_addr.sun_path, socket_path, sizeof(my_addr.sun_path)); in server_loop()
299 my_addr.sun_path[sizeof(my_addr.sun_path)-1] = '\0'; in server_loop()
/external/chromium_org/net/socket/
Dunix_domain_socket_posix.cc108 static const size_t kPathMax = sizeof(addr.sun_path); in CreateAndBind()
123 memcpy(addr.sun_path + 1, path.c_str(), path.size()); in CreateAndBind()
124 addr_len = path.size() + offsetof(struct sockaddr_un, sun_path) + 1; in CreateAndBind()
126 memcpy(addr.sun_path, path.c_str(), path.size()); in CreateAndBind()
/external/lldb/tools/darwin-debug/
Ddarwin-debug.cpp290 ::strncpy(saddr_un.sun_path, unix_socket_name.c_str(), sizeof(saddr_un.sun_path) - 1); in main()
291 saddr_un.sun_path[sizeof(saddr_un.sun_path) - 1] = '\0'; in main()
/external/strace/tests/
Dnet-accept-connect.c14 .sun_path = SUN_PATH in main()
16 socklen_t len = offsetof(struct sockaddr_un, sun_path) + sizeof SUN_PATH; in main()
/external/wpa_supplicant_8/src/drivers/
Ddriver_test.c144 strncmp(cli->un.sun_path, from->sun_path, in test_driver_get_cli()
259 snprintf(addr.sun_path, sizeof(addr.sun_path), "%s/%s", in test_driver_send_ether()
262 if (strcmp(addr.sun_path, drv->own_socket_path) == 0) in test_driver_send_ether()
369 os_snprintf(addr.sun_path, sizeof(addr.sun_path), "%s/%s", in wpa_driver_test_send_mlme()
372 if (os_strcmp(addr.sun_path, drv->own_socket_path) == 0) in wpa_driver_test_send_mlme()
421 os_snprintf(addr.sun_path, sizeof(addr.sun_path), in wpa_driver_test_send_mlme()
437 os_snprintf(addr.sun_path, sizeof(addr.sun_path), in wpa_driver_test_send_mlme()
439 if (stat(addr.sun_path, &st) < 0) { in wpa_driver_test_send_mlme()
440 os_snprintf(addr.sun_path, sizeof(addr.sun_path), in wpa_driver_test_send_mlme()
613 (const u8 *) cli->un.sun_path, in test_driver_assoc()
[all …]
/external/dhcpcd/
Dcontrol.c126 strlcpy(sun.sun_path, CONTROLSOCKET, sizeof(sun.sun_path)); in make_sock()
127 return sizeof(sun.sun_family) + strlen(sun.sun_path) + 1; in make_sock()
/external/clang/test/Sema/
Doffsetof.c42 char sun_path[104]; member
45 int a[__builtin_offsetof(struct sockaddr_un, sun_path[len+1])]; in a()
/external/chromium_org/ipc/
Dunix_domain_socket_util.cc23 COMPILE_ASSERT(sizeof(((sockaddr_un*)0)->sun_path) >= kMaxSocketNameLength,
64 strncpy(unix_addr->sun_path, socket_name.c_str(), kMaxSocketNameLength); in MakeUnixAddrForPath()
66 offsetof(struct sockaddr_un, sun_path) + socket_name.length(); in MakeUnixAddrForPath()
/external/wpa_supplicant_8/hostapd/
Dctrl_iface.c70 (u8 *) from->sun_path, in hostapd_ctrl_iface_attach()
71 fromlen - offsetof(struct sockaddr_un, sun_path)); in hostapd_ctrl_iface_attach()
85 os_memcmp(from->sun_path, dst->addr.sun_path, in hostapd_ctrl_iface_detach()
86 fromlen - offsetof(struct sockaddr_un, sun_path)) in hostapd_ctrl_iface_detach()
89 (u8 *) from->sun_path, in hostapd_ctrl_iface_detach()
91 offsetof(struct sockaddr_un, sun_path)); in hostapd_ctrl_iface_detach()
118 os_memcmp(from->sun_path, dst->addr.sun_path, in hostapd_ctrl_iface_level()
119 fromlen - offsetof(struct sockaddr_un, sun_path)) in hostapd_ctrl_iface_level()
122 "level", (u8 *) from->sun_path, fromlen - in hostapd_ctrl_iface_level()
123 offsetof(struct sockaddr_un, sun_path)); in hostapd_ctrl_iface_level()
[all …]
/external/iproute2/misc/
Drtacct.c507 sun.sun_path[0] = 0; in main()
508 sprintf(sun.sun_path+1, "rtacct%d", getuid()); in main()
519 if (bind(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) < 0) { in main()
600 (connect(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) == 0 in main()
601 || (strcpy(sun.sun_path+1, "rtacct0"), in main()
602 connect(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) == 0)) in main()
Dnstat.c496 sun.sun_path[0] = 0; in main()
497 sprintf(sun.sun_path+1, "nstat%d", getuid()); in main()
508 if (bind(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) < 0) { in main()
582 (connect(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) == 0 in main()
583 || (strcpy(sun.sun_path+1, "nstat0"), in main()
584 connect(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) == 0)) in main()
/external/netcat/
Dnetcat.c60 (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
516 if (strlcpy(sun.sun_path, path, sizeof(sun.sun_path)) >= in unix_bind()
517 sizeof(sun.sun_path)) { in unix_bind()
552 if (strlcpy(sun.sun_path, path, sizeof(sun.sun_path)) >= in unix_connect()
553 sizeof(sun.sun_path)) { in unix_connect()
/external/fio/os/windows/posix/include/sys/
Dun.h10 char sun_path[260]; /* Socket pathname */ member
/external/kernel-headers/original/uapi/linux/
Dun.h10 char sun_path[UNIX_PATH_MAX]; /* pathname */ member

123