/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | sigflag.c | 41 struct sigaction sa; local 44 if ((v = sigaction(sig, 0, &sa)) < 0) 47 sa.sa_flags |= flag; 49 sa.sa_flags &= ~flag; 50 return (sigaction(sig, &sa, 0));
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/raise/ |
H A D | tst.raise2.c | 41 struct sigaction sa; local 43 sa.sa_handler = handle; 44 sigemptyset(&sa.sa_mask); 45 sa.sa_flags = 0; 47 (void) sigaction(SIGINT, &sa, NULL);
|
H A D | tst.raise3.c | 41 struct sigaction sa; local 43 sa.sa_handler = handle; 44 sigemptyset(&sa.sa_mask); 45 sa.sa_flags = 0; 47 (void) sigaction(SIGINT, &sa, NULL);
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/include/ |
H A D | socket-utils.h | 77 static __inline__ struct sockaddr_in *sa2sin (struct sockaddr *sa) argument 79 return (struct sockaddr_in *) (void *) sa; 82 static __inline__ struct sockaddr_in6 *sa2sin6 (struct sockaddr *sa) argument 84 return (struct sockaddr_in6 *) (void *) sa;
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pid/ |
H A D | tst.gcc.c | 50 struct sigaction sa; local 52 sa.sa_handler = intr; 53 sigfillset(&sa.sa_mask); 54 sa.sa_flags = 0; 56 (void) sigaction(SIGUSR1, &sa, NULL);
|
/illumos-gate/usr/src/lib/krb5/ss/ |
H A D | pager.c | 78 struct sigaction sa; local 87 sa.sa_handler = SIG_DFL; 88 sigemptyset(&sa.sa_mask); 89 sa.sa_flags = 0; 90 sigaction(SIGINT, &sa, (struct sigaction *)0);
|
/illumos-gate/usr/src/cmd/smbsrv/bind-helper/ |
H A D | bind-helper.c | 44 struct sockaddr sa; local 46 struct sockaddr_in *sin = (struct sockaddr_in *)&sa; 48 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa; 57 (void) memset(&sa, 0, sizeof (sa)); 58 sa.sa_family = atoi(argv[1]); 59 switch (sa.sa_family) { 85 if (bind(0, &sa, sizeof (sa)) < 0) {
|
/illumos-gate/usr/src/lib/efcode/engine/ |
H A D | signal.c | 74 struct sigaction sa; local 80 sigemptyset(&sa.sa_mask); 81 sa.sa_flags = SA_SIGINFO|SA_NODEFER; 82 sa.sa_handler = 0; 83 sa.sa_sigaction = process_signal; 85 sigaction(SIGINT, &sa, NULL); 86 sigaction(SIGQUIT, &sa, NULL); 87 sigaction(SIGSEGV, &sa, NULL); 88 sigaction(SIGBUS, &sa, NULL); 89 sigaction(SIGUSR1, &sa, NUL [all...] |
/illumos-gate/usr/src/lib/libidmap/common/ |
H A D | sized_array.c | 57 struct sized_array *sa; local 62 sa = malloc(total); 64 if (sa == NULL) 67 (void) memset(sa, 0, total); 69 sa->n = n; 70 sa->sz = sz; 73 (void) memcpy(sa->cookie, COOKIE, sizeof (sa->cookie)); 76 return ((void *)(sa + 1)); 82 struct sized_array *sa; local 99 struct sized_array *sa; local 113 struct sized_array *sa; local [all...] |
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_tran.c | 62 SA_LEN(struct sockaddr *sa) argument 66 switch (sa->sa_family) { 77 SMBSDEBUG("invalid address family %d\n", sa->sa_family); 107 smb_dup_sockaddr(struct sockaddr *sa) argument 113 len = SA_LEN(sa); 117 bcopy(sa, sa2, len); 123 smb_free_sockaddr(struct sockaddr *sa) argument 128 len = SA_LEN(sa); 130 kmem_free(sa, len);
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | getaddr.c | 82 dump_sockaddr(struct sockaddr *sa) argument 87 int af = sa->sa_family; 94 sin = (void *)sa; 99 sin6 = (void *)sa;
|
H A D | connect.c | 165 conn_tcp6(struct smb_ctx *ctx, const struct sockaddr *sa, int port) argument 173 if (sa->sa_family != AF_INET6) { 174 DPRINT("bad af %d", sa->sa_family); 177 bcopy(sa, &sin6, sizeof (sin6)); 226 conn_tcp4(struct smb_ctx *ctx, const struct sockaddr *sa, int port) argument 234 if (sa->sa_family != AF_INET) { 235 DPRINT("bad af %d", sa->sa_family); 238 bcopy(sa, &sin, sizeof (sin)); 296 struct sockaddr *sa; local 302 sa 380 struct sockaddr *sa; local [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | _nlist.c | 38 long sa; /* symbol address */ local 58 sa = N_SYMOFF(buf); 59 ss = sa + buf.a_syms; 63 lseek(fd, sa, 0); 66 sa += m;
|
/illumos-gate/usr/src/lib/libilb/common/ |
H A D | ilb_comm.c | 56 struct sockaddr_un sa = {AF_UNIX, SOCKET_PATH}; local 81 connect(s, (struct sockaddr *)&sa, sizeof (sa.sun_path))
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | inet_matchaddr.c | 19 * Match IPv4 or IPv6 address provided in sa (sockaddr_in/sockaddr_in6) 53 inet_matchaddr(const void *sa, const char *name) argument 69 switch (((struct sockaddr_in *)sa)->sin_family) { 75 &((struct sockaddr_in6 *)sa)->sin6_addr; 131 ((struct sockaddr_in *)sa)->sin_addr.s_addr);
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tag.c | 53 struct sigaction sa; local 62 memset(&sa, 0, sizeof(sa)); 63 sigfillset(&sa.sa_mask); 64 sa.sa_handler = tag_signal; 65 sigaction(SIGHUP, &sa, NULL); 66 sigaction(SIGINT, &sa, NULL); 67 sigaction(SIGTERM, &sa, NULL); 75 sa.sa_handler = SIG_IGN; 76 sigaction(SIGTTOU, &sa, NUL 194 struct sigaction sa; local [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | ctl_p.c | 101 ctl_sa_ntop(const struct sockaddr *sa, argument 109 switch (sa->sa_family) { 112 (const struct sockaddr_in6 *) sa; 130 (const struct sockaddr_in *) sa; 150 (const struct sockaddr_un *) sa;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | input.c | 140 struct sioc_addrreq sa; local 356 sin6 = (struct sockaddr_in6 *)&sa.sa_addr; 360 (char *)&sa) < 0) { 366 if (sa.sa_res != 0) {
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | cred.c | 251 uintptr_t da, sa; local 259 sa = (uintptr_t)kd.kd_name; 260 if (sa != 0) 261 (void) mdb_readstr(str, sizeof (str), sa);
|
/illumos-gate/usr/src/cmd/sendmail/aux/ |
H A D | mconnect.c | 54 struct sockaddr sa; /* general version */ member in union:bigsockaddr 140 SendmailAddress.sa.sa_family = AF_INET; 146 SendmailAddress.sa.sa_family = AF_INET6; 151 s = socket(SendmailAddress.sa.sa_family, SOCK_STREAM, 0); 159 if (SendmailAddress.sa.sa_family == AF_INET) 179 SendmailAddress.sa.sa_family = AF_INET; 186 SendmailAddress.sa.sa_family = AF_INET6;
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | tmpltest.c | 237 struct ldap_searchattr *sa; local 270 for ( sa = so->so_salist; sa != NULL; sa = sa->sa_next ) { 271 printf( " Label: %s\n", NULLSTRINGIFNULL( sa->sa_attrlabel )); 272 printf( " Attribute: %s\n", NULLSTRINGIFNULL( sa->sa_attr )); 273 printf( " Select attr: %s\n", NULLSTRINGIFNULL( sa->sa_selectattr )); 274 printf( " Select text: %s\n", NULLSTRINGIFNULL( sa->sa_selecttext )); 277 if (( sa [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | nfs_cmd.c | 105 struct sockaddr *sa; local 109 sa = (struct sockaddr *)nbuf->buf; 111 switch (sa->sa_family) { 170 struct sockaddr sa; local 182 nb.buf = (char *)&sa; 184 sa = args->arg.charmap.addr;
|
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/ |
H A D | seq.c | 256 clear_all_bits(seq_array_t sa) argument 261 sa->arr[i] = (seq_word_t)0; 266 check_bit(seq_array_t sa, unsigned int bit) argument 271 return (sa->arr[bit/WBITS] & ((seq_word_t)1 << (bit % WBITS)) ? 1 : 0); 276 set_bit(seq_array_t sa, unsigned int bit) argument 279 sa->arr[bit/WBITS] |= ((seq_word_t)1 << (bit % WBITS)); 287 * clear_bit(seq_array_t sa, unsigned int bit) 290 * sa->arr[bit/WBITS] &= ~((seq_word_t)1 << (bit % WBITS)); 307 * This bit corresponds to the last sequence number seen sa->seqno. 310 shift_bits(seq_array_t sa, unsigne argument [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | prompter.c | 133 struct sigaction sa; local 135 sigemptyset(&sa.sa_mask); 136 sa.sa_flags = 0; 137 sa.sa_handler = intrfunc; 138 sigaction(SIGINT, &sa, osigint);
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getnameinfo.c | 50 static int addzoneid(const struct sockaddr_in6 *sa, char *host, 52 static size_t getzonestr(const struct sockaddr_in6 *sa, char *zonestr, 66 * sa - points to either a sockaddr_in structure (for 95 getnameinfo(const struct sockaddr *sa, socklen_t salen, argument 111 if (sa == NULL) 113 switch (sa->sa_family) { 115 addr = (char *)&sa2sin(sa)->sin_addr; 118 port = (sa2sin(sa)->sin_port); /* network byte order */ 121 addr = (char *)&sa2sin6(sa)->sin6_addr; 124 port = (sa2sin6(sa) 278 addzoneid(const struct sockaddr_in6 *sa, char *host, size_t hostlen) argument 313 getzonestr(const struct sockaddr_in6 *sa, char *zonestr, size_t zonelen) argument [all...] |