Home
last modified time | relevance | path

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

123

/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface_unix.c90 (u8 *) from->sun_path, in wpa_supplicant_ctrl_iface_attach()
91 fromlen - offsetof(struct sockaddr_un, sun_path)); in wpa_supplicant_ctrl_iface_attach()
106 os_memcmp(from->sun_path, dst->addr.sun_path, in wpa_supplicant_ctrl_iface_detach()
107 fromlen - offsetof(struct sockaddr_un, sun_path)) in wpa_supplicant_ctrl_iface_detach()
111 (u8 *) from->sun_path, in wpa_supplicant_ctrl_iface_detach()
113 offsetof(struct sockaddr_un, sun_path)); in wpa_supplicant_ctrl_iface_detach()
136 os_memcmp(from->sun_path, dst->addr.sun_path, in wpa_supplicant_ctrl_iface_level()
137 fromlen - offsetof(struct sockaddr_un, sun_path)) in wpa_supplicant_ctrl_iface_level()
142 (u8 *) from->sun_path, fromlen - in wpa_supplicant_ctrl_iface_level()
143 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 (os_snprintf_error(sizeof(ctrl->local.sun_path), ret)) { 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/strace/tests/
Dsun_path.expected1 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +bind\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="123…
2 …0-9]+:[0-9]+\.[0-9]+ +getsockname\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="1234567890123456…
3 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +connect\(1, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="…
Dnet-fd.expected1 …\.[0-9]+ +bind\(0<socket:\[[0-9]+\]>, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="net-fd-local-str…
3 …+ +getsockname\(0<socket:\[[0-9]+\]>, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="net-fd-local-str…
5 …0-9]+ +connect\(1<socket:\[[0-9]+\]>, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="net-fd-local-str…
Dnet.expected3 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +bind\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="net…
5 …0-9]+:[0-9]+\.[0-9]+ +getsockname\(0, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="net-local-stream…
7 [1-9][0-9]* +[0-9]+:[0-9]+:[0-9]+\.[0-9]+ +connect\(1, \{sa_family=AF_(LOCAL|UNIX|FILE), sun_path="…
Dnet-accept-connect.c28 strncpy(addr.sun_path, av[1], sizeof(addr.sun_path)); in main()
29 len = offsetof(struct sockaddr_un, sun_path) + strlen(av[1]) + 1; in main()
Dnetlink_unix_diag.c85 .sun_path = SUN_PATH in main()
87 socklen_t len = offsetof(struct sockaddr_un, sun_path) + sizeof(SUN_PATH); in main()
DMakefile.am84 sun_path.test \
124 sun_path.expected \
/external/openssh/
Dentropy.c91 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()
106 sizeof(addr_un->sun_path)); in get_random_bytes_prngd()
107 addr_len = offsetof(struct sockaddr_un, sun_path) + in get_random_bytes_prngd()
128 addr_un->sun_path, strerror(errno)); in get_random_bytes_prngd()
/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/wpa_supplicant_8/src/l2_packet/
Dl2_packet_privsep.c116 os_strncmp(from.sun_path, l2->priv_addr.sun_path, in l2_packet_receive()
117 sizeof(from.sun_path)) != 0) { in l2_packet_receive()
162 os_snprintf(l2->priv_addr.sun_path, sizeof(l2->priv_addr.sun_path), in l2_packet_init()
176 os_strlcpy(addr.sun_path, l2->own_socket_path, sizeof(addr.sun_path)); in l2_packet_init()
/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/clang/test/CodeGen/
Doffsetof.c6 char sun_path[104]; member
10 return __builtin_offsetof(struct sockaddr_un, sun_path[len+1]); in test()
/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/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/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/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()
Difstat.c642 sun.sun_path[0] = 0; in main()
643 sprintf(sun.sun_path+1, "ifstat%d", getuid()); in main()
654 if (bind(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) < 0) { in main()
730 (connect(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) == 0 in main()
731 || (strcpy(sun.sun_path+1, "ifstat0"), in main()
732 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/wpa_supplicant_8/hostapd/
Dctrl_iface.c78 (u8 *) from->sun_path, in hostapd_ctrl_iface_attach()
79 fromlen - offsetof(struct sockaddr_un, sun_path)); in hostapd_ctrl_iface_attach()
93 os_memcmp(from->sun_path, dst->addr.sun_path, in hostapd_ctrl_iface_detach()
94 fromlen - offsetof(struct sockaddr_un, sun_path)) in hostapd_ctrl_iface_detach()
97 (u8 *) from->sun_path, in hostapd_ctrl_iface_detach()
99 offsetof(struct sockaddr_un, sun_path)); in hostapd_ctrl_iface_detach()
126 os_memcmp(from->sun_path, dst->addr.sun_path, in hostapd_ctrl_iface_level()
127 fromlen - offsetof(struct sockaddr_un, sun_path)) in hostapd_ctrl_iface_level()
130 "level", (u8 *) from->sun_path, fromlen - in hostapd_ctrl_iface_level()
131 offsetof(struct sockaddr_un, sun_path)); in hostapd_ctrl_iface_level()
[all …]
/external/valgrind/none/tests/
Dfdleak_cmsg.c47 sprintf(addr.sun_path, "%s", sock); in server()
108 sprintf(addr.sun_path, "%s", sock); in client()
/external/wpa_supplicant_8/src/drivers/
Ddriver_privsep.c632 os_snprintf(drv->priv_addr.sun_path, sizeof(drv->priv_addr.sun_path), in wpa_driver_privsep_set_param()
646 os_strlcpy(addr.sun_path, drv->own_socket_path, sizeof(addr.sun_path)); in wpa_driver_privsep_set_param()
673 os_strlcpy(addr.sun_path, drv->own_cmd_path, sizeof(addr.sun_path)); in wpa_driver_privsep_set_param()

123