/freebsd-10.0-release/tools/regression/sockets/unix_seqpacket/ |
H A D | unix_seqpacket.c | 84 struct sockaddr_un sun; local 94 bzero(&sun, sizeof(sun)); 95 sun.sun_family = AF_LOCAL; 96 sun.sun_len = sizeof(sun); 97 strlcpy(sun.sun_path, path, sizeof(sun.sun_path)); 98 if (bind(s, (struct sockaddr *)&sun, sizeof(sun)) < 107 struct sockaddr_un sun; local [all...] |
/freebsd-10.0-release/tools/regression/sockets/unix_bindconnect/ |
H A D | unix_bindconnect.c | 88 struct sockaddr_un sun; local 104 bzero(&sun, sizeof(sun)); 105 sun.sun_len = sizeof(sun); 106 sun.sun_family = AF_UNIX; 107 if (snprintf(sun.sun_path, sizeof(sun.sun_path), "%s", socket_path) 108 >= sizeof(sun.sun_path)) { 109 warn("bind_test: snprintf(sun 199 struct sockaddr_un sun; local [all...] |
/freebsd-10.0-release/tools/regression/sockets/unix_sendtorace/ |
H A D | unix_sendtorace.c | 70 struct sockaddr_un sun; local 75 bzero(&sun, sizeof(sun)); 76 sun.sun_len = sizeof(sun); 77 sun.sun_family = AF_UNIX; 78 strcpy(sun.sun_path, PATH); 85 len = sendto(fd, &c, sizeof(c), 0, (struct sockaddr *)&sun, 86 sizeof(sun)); 96 struct sockaddr_un sun; local 146 struct sockaddr_un sun; local 172 struct sockaddr_un sun; local [all...] |
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/mdb/tools/common/ |
H A D | util.h | 43 #if defined(sun)
|
H A D | die.c | 43 #if !defined(sun) 68 #if !defined(sun)
|
/freebsd-10.0-release/tools/regression/netinet/udpzerobyte/ |
H A D | udpzerobyte.c | 111 struct sockaddr_un sun; local 135 bzero(&sun, sizeof(sun)); 136 sun.sun_len = sizeof(sun); 137 sun.sun_family = AF_LOCAL; 138 strlcpy(sun.sun_path, "/tmp/udpzerosize-socket", sizeof(sun.sun_path)); 139 if (unlink(sun.sun_path) < 0 && errno != ENOENT) 140 err(-1, "unlink: %s", sun [all...] |
/freebsd-10.0-release/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | barrier.c | 41 #if defined(sun) 52 #if defined(sun) 69 #if defined(sun) 83 #if defined(sun)
|
H A D | barrier.h | 36 #if defined(sun)
|
/freebsd-10.0-release/contrib/ntp/kernel/sys/ |
H A D | clkdefs.h | 5 #if defined(sun)
|
/freebsd-10.0-release/sys/i386/ibcs2/ |
H A D | ibcs2_other.c | 90 struct sockaddr_un sun; local 105 sun.sun_family = AF_UNIX; 106 strcpy(sun.sun_path, "/tmp/.X11-unix/X0"); 107 sun.sun_len = sizeof(struct sockaddr_un) - sizeof(sun.sun_path) + 108 strlen(sun.sun_path) + 1; 110 error = kern_connect(td, fd, (struct sockaddr *)&sun);
|
/freebsd-10.0-release/tools/regression/sockets/unix_seqpacket_exercise/ |
H A D | unix_seqpacket_exercise.c | 181 test_connect(struct sockaddr_un *sun) argument 187 if (connect(s, (struct sockaddr *)sun, sizeof(*sun)) < 0) 194 test_connect_send(struct sockaddr_un *sun) argument 202 if (connect(s, (struct sockaddr *)sun, sizeof(*sun)) < 0) 214 test_connect_shutdown_send(struct sockaddr_un *sun) argument 222 if (connect(s, (struct sockaddr *)sun, sizeof(*sun)) < 0) 236 test_connect_send_recv(struct sockaddr_un *sun, size_ argument 273 test_connect_send_recv_count(struct sockaddr_un *sun, int count, size_t size) argument 315 test_sendto(struct sockaddr_un *sun) argument 332 client(struct sockaddr_un *sun) argument 358 struct sockaddr_un sun; local [all...] |
/freebsd-10.0-release/tools/regression/sysvsem/ |
H A D | semtest.c | 85 union semun sun; local 132 sun.buf = &s_ds; 133 if (semctl(sender_semid, 0, IPC_STAT, sun) == -1) 140 sun.buf = &s_ds; 141 if (semctl(sender_semid, 0, IPC_SET, sun) == -1) 146 sun.buf = &s_ds; 147 if (semctl(sender_semid, 0, IPC_STAT, sun) == -1) 186 sun.val = 1; 187 if (semctl(sender_semid, 0, SETVAL, sun) == -1) 218 union semun sun; local [all...] |
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | drti.c | 58 #if defined(sun) 64 #if defined(sun) 92 #if !defined(sun) 122 #if defined(sun) 131 #if defined(sun) 143 #if defined(sun) 152 #if !defined(sun) 176 #if defined(sun) 188 #if !defined(sun) 250 #if defined(sun) [all...] |
H A D | dt_proc.c | 80 #if defined(sun) 92 #if !defined(sun) 146 #if defined(sun) 155 #if !defined(sun) 162 #if defined(sun) 173 #if defined(sun) 345 #if defined(sun) 360 #if defined(sun) 369 #if defined(sun) 375 #if defined(sun) [all...] |
/freebsd-10.0-release/sys/cddl/dev/dtrace/amd64/ |
H A D | instr_size.c | 33 #if defined(sun) 40 #if defined(sun) 107 #if defined(sun)
|
/freebsd-10.0-release/sys/cddl/dev/dtrace/i386/ |
H A D | instr_size.c | 33 #if defined(sun) 40 #if defined(sun) 107 #if defined(sun)
|
/freebsd-10.0-release/tools/regression/sockets/unix_gc/ |
H A D | unix_gc.c | 529 struct sockaddr_un sun; local 536 bzero(&sun, sizeof(sun)); 537 sun.sun_family = AF_LOCAL; 538 sun.sun_len = sizeof(sun); 539 snprintf(sun.sun_path, sizeof(sun.sun_path), "%s/%s", dpath, test); 542 my_bind(s, (struct sockaddr *)&sun, sizeof(sun)); 574 struct sockaddr_un sun; local [all...] |
/freebsd-10.0-release/contrib/ipfilter/ |
H A D | mls_rule.c | 26 #include <sun/autoconf.h> 27 #include <sun/vddrv.h> 29 # include <sun/openprom.h>
|
H A D | opts.h | 15 #define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4))) 60 #if defined(sun) && !SOLARIS
|
/freebsd-10.0-release/contrib/openbsm/bin/auditdistd/ |
H A D | proto_uds.c | 271 struct sockaddr_un sun; local 278 sunlen = sizeof(sun); 279 if (getsockname(uctx->uc_fd, (struct sockaddr *)&sun, &sunlen) < 0) { 283 PJDLOG_ASSERT(sun.sun_family == AF_UNIX); 284 if (sun.sun_path[0] == '\0') { 288 PJDLOG_VERIFY(snprintf(addr, size, "uds://%s", sun.sun_path) < (ssize_t)size); 295 struct sockaddr_un sun; local 302 sunlen = sizeof(sun); 303 if (getpeername(uctx->uc_fd, (struct sockaddr *)&sun, &sunlen) < 0) { 307 PJDLOG_ASSERT(sun [all...] |
/freebsd-10.0-release/sbin/hastd/ |
H A D | proto_uds.c | 269 struct sockaddr_un sun; local 276 sunlen = sizeof(sun); 277 if (getsockname(uctx->uc_fd, (struct sockaddr *)&sun, &sunlen) == -1) { 281 PJDLOG_ASSERT(sun.sun_family == AF_UNIX); 282 if (sun.sun_path[0] == '\0') { 286 PJDLOG_VERIFY(snprintf(addr, size, "uds://%s", sun.sun_path) < (ssize_t)size); 293 struct sockaddr_un sun; local 300 sunlen = sizeof(sun); 301 if (getpeername(uctx->uc_fd, (struct sockaddr *)&sun, &sunlen) == -1) { 305 PJDLOG_ASSERT(sun [all...] |
/freebsd-10.0-release/usr.sbin/rtadvd/ |
H A D | control.c | 227 struct sockaddr_un sun; local 231 sun.sun_len = sizeof(sun); 232 if ((fd = accept(s->si_fd, (struct sockaddr *)&sun, 233 (socklen_t *)&sun.sun_len)) == -1) { 282 struct sockaddr_un sun; local 297 memset(&sun, 0, sizeof(sun)); 298 sun.sun_family = AF_UNIX; 299 sun [all...] |
/freebsd-10.0-release/contrib/ntp/kernel/ |
H A D | chuinit.c | 13 #include <sun/openprom.h> 14 #include <sun/vddrv.h>
|
H A D | clkinit.c | 13 #include <sun/openprom.h> 14 #include <sun/vddrv.h>
|
/freebsd-10.0-release/contrib/opie/libopie/ |
H A D | generator.c | 64 struct sockaddr_un sun; variable in typeref:struct:sockaddr_un 76 memset(&sun, 0, sizeof(struct sockaddr_un)); 77 sun.sun_family = AF_UNIX; 86 if (strlen(c) > (sizeof(sun.sun_path) - strlen(c2) - 1)) { 93 strcpy(sun.sun_path, c); 94 strcat(sun.sun_path, c2); 106 if (stat(sun.sun_path, &st) < 0) { 113 if (connect(s, (struct sockaddr *)&sun, sizeof(struct sockaddr_un))) {
|