Home
last modified time | relevance | path

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

123

/external/wpa_supplicant_8/src/common/
Dwpa_ctrl.c119 ret = os_snprintf(ctrl->local.sun_path, in wpa_ctrl_open2()
120 sizeof(ctrl->local.sun_path), in wpa_ctrl_open2()
124 ret = os_snprintf(ctrl->local.sun_path, in wpa_ctrl_open2()
125 sizeof(ctrl->local.sun_path), in wpa_ctrl_open2()
130 if (os_snprintf_error(sizeof(ctrl->local.sun_path), ret)) { in wpa_ctrl_open2()
145 unlink(ctrl->local.sun_path); in wpa_ctrl_open2()
154 chmod(ctrl->local.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); in wpa_ctrl_open2()
156 chown(ctrl->local.sun_path, -1, AID_WIFI); in wpa_ctrl_open2()
157 chown(ctrl->local.sun_path, AID_SYSTEM, AID_WIFI); in wpa_ctrl_open2()
165 unlink(ctrl->local.sun_path); in wpa_ctrl_open2()
[all …]
Dctrl_iface_common.c62 os_memcmp(u_a->sun_path, u_b->sun_path, in sockaddr_compare()
63 a_len - offsetof(struct sockaddr_un, sun_path)) in sockaddr_compare()
103 (u8 *) ((struct sockaddr_un *) sock)->sun_path, in sockaddr_print()
104 socklen - offsetof(struct sockaddr_un, sun_path)); in sockaddr_print()
/external/avahi/avahi-daemon/
Dsd-daemon.c315 return l == offsetof(struct sockaddr_un, sun_path); in sd_is_socket_unix()
320 (l >= offsetof(struct sockaddr_un, sun_path) + length + 1) && in sd_is_socket_unix()
321 memcmp(path, sockaddr.un.sun_path, length+1) == 0; in sd_is_socket_unix()
325 (l == offsetof(struct sockaddr_un, sun_path) + length) && in sd_is_socket_unix()
326 memcmp(path, sockaddr.un.sun_path, length) == 0; in sd_is_socket_unix()
363 strncpy(sockaddr.un.sun_path, e, sizeof(sockaddr.un.sun_path)); in sd_notify()
365 if (sockaddr.un.sun_path[0] == '@') in sd_notify()
366 sockaddr.un.sun_path[0] = 0; in sd_notify()
374 msghdr.msg_namelen = offsetof(struct sockaddr_un, sun_path) + strlen(e); in sd_notify()
/external/dhcpcd-6.8.2/
Dcontrol.c49 (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
235 strlcpy(sa->sun_path, UNPRIVSOCKET, sizeof(sa->sun_path)); in make_sock()
237 snprintf(sa->sun_path, sizeof(sa->sun_path), CONTROLSOCKET, in make_sock()
256 unlink(sa.sun_path); in control_start1()
258 chmod(sa.sun_path, fmode) == -1 || in control_start1()
260 chown(sa.sun_path, geteuid(), ctx->control_group) == -1) || in control_start1()
264 unlink(sa.sun_path); in control_start1()
269 strlcpy(ctx->control_sock, sa.sun_path, in control_start1()
/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.c55 strncpy(addr.sun_path, av[1], sizeof(addr.sun_path)); in main()
56 len = offsetof(struct sockaddr_un, sun_path) + strlen(av[1]) + 1; in main()
Dnetlink_unix_diag.c112 .sun_path = SUN_PATH in main()
114 socklen_t len = offsetof(struct sockaddr_un, sun_path) + sizeof(SUN_PATH); in main()
/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/src/
Dnettest_unix.c417 strcpy(server.sun_path,stream_stream_response->unix_path); in send_stream_stream()
430 printf(" path: %s\n",server.sun_path); in send_stream_stream()
813 strcpy(myaddr_un.sun_path,tempnam(path_prefix,"netperf.")); in recv_stream_stream()
815 fprintf(where,"selected a path of %s\n",myaddr_un.sun_path); in recv_stream_stream()
829 chmod(myaddr_un.sun_path, 0666); in recv_stream_stream()
890 strcpy(stream_stream_response->unix_path,myaddr_un.sun_path); in recv_stream_stream()
1020 unlink(myaddr_un.sun_path); in recv_stream_stream()
1220 strcpy(server.sun_path,stream_rr_response->unix_path); in send_stream_rr()
1687 strcpy(server.sun_path,dg_stream_response->unix_path); in send_dg_stream()
2042 strcpy(myaddr_un.sun_path,tempnam(path_prefix,"netperf.")); in recv_dg_stream()
[all …]
/external/dbus/dbus/
Dsd-daemon.c316 memcmp(path, sockaddr.un.sun_path, length+1) == 0; in sd_is_socket_unix()
321 memcmp(path, sockaddr.un.sun_path, length) == 0; in sd_is_socket_unix()
358 strncpy(sockaddr.un.sun_path, e, sizeof(sockaddr.un.sun_path)); in sd_notify()
360 if (sockaddr.un.sun_path[0] == '@') in sd_notify()
361 sockaddr.un.sun_path[0] = 0; in sd_notify()
/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/clang/test/CodeGen/
Doffsetof.c6 char sun_path[104]; member
10 return __builtin_offsetof(struct sockaddr_un, sun_path[len+1]); in test()
/external/dbus/cmake/modules/
DCheckForAbstractSockets.c22 strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test"); in main()
23 addr.sun_path[0] = '\0'; /* this is what makes it abstract */ in main()
/external/curl/packages/OS400/
Dos400sys.c1226 dstsize = sizeof *dstaddr - offsetof(struct sockaddr_un, sun_path); in convert_sockaddr()
1227 srclen -= offsetof(struct sockaddr_un, sun_path); in convert_sockaddr()
1228 i = QadrtConvertA2E(dstu->sun_path, srcu->sun_path, dstsize - 1, srclen); in convert_sockaddr()
1229 dstu->sun_path[i] = '\0'; in convert_sockaddr()
1230 i += offsetof(struct sockaddr_un, sun_path); in convert_sockaddr()
1315 i = *addrlen - offsetof(struct sockaddr_un, sun_path); in Curl_os400_recvfrom()
1316 laddrlen -= offsetof(struct sockaddr_un, sun_path); in Curl_os400_recvfrom()
1317 i = QadrtConvertE2A(dstu->sun_path, srcu->sun_path, i, laddrlen); in Curl_os400_recvfrom()
1318 laddrlen = i + offsetof(struct sockaddr_un, sun_path); in Curl_os400_recvfrom()
1321 dstu->sun_path[i] = '\0'; in Curl_os400_recvfrom()
/external/iproute2/misc/
Drtacct.c506 sun.sun_path[0] = 0; in main()
507 sprintf(sun.sun_path+1, "rtacct%d", getuid()); in main()
518 if (bind(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) < 0) { in main()
599 (connect(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) == 0 in main()
600 || (strcpy(sun.sun_path+1, "rtacct0"), in main()
601 connect(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) == 0)) in main()
Dnstat.c577 sun.sun_path[0] = 0; in main()
578 sprintf(sun.sun_path+1, "nstat%d", getuid()); in main()
589 if (bind(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) < 0) { in main()
664 (connect(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) == 0 in main()
665 || (strcpy(sun.sun_path+1, "nstat0"), in main()
666 connect(fd, (struct sockaddr*)&sun, 2+1+strlen(sun.sun_path+1)) == 0)) in main()
/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/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/wpa_supplicant/
Dctrl_iface_unix.c504 os_snprintf(addr.sun_path, sizeof(addr.sun_path), "wpa_%s", in wpas_ctrl_iface_open_sock()
506 priv->sock = android_get_control_socket(addr.sun_path); in wpas_ctrl_iface_open_sock()
588 sizeof(addr.sun_path)) { in wpas_ctrl_iface_open_sock()
607 os_strlcpy(addr.sun_path, fname, sizeof(addr.sun_path)); in wpas_ctrl_iface_open_sock()
1164 addr.sun_path[0] = '\0'; in wpas_global_ctrl_iface_open_sock()
1165 os_strlcpy(addr.sun_path + 1, ctrl + 10, in wpas_global_ctrl_iface_open_sock()
1166 sizeof(addr.sun_path) - 1); in wpas_global_ctrl_iface_open_sock()
1179 os_strlcpy(addr.sun_path, ctrl, sizeof(addr.sun_path)); in wpas_global_ctrl_iface_open_sock()
/external/dnsmasq/src/
Dlog.c215 logaddr.sun_len = sizeof(logaddr) - sizeof(logaddr.sun_path) + strlen(_PATH_LOG) + 1; in log_write()
218 strncpy(logaddr.sun_path, _PATH_LOG, sizeof(logaddr.sun_path)); in log_write()
/external/valgrind/none/tests/
Dfdleak_cmsg.c47 sprintf(addr.sun_path, "%s", sock); in server()
108 sprintf(addr.sun_path, "%s", sock); in client()

123