Searched defs:sa (Results 1 - 25 of 165) sorted by relevance

1234567

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dsigflag.c41 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 Dtst.raise2.c41 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 Dtst.raise3.c41 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 Dsocket-utils.h77 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/smbsrv/bind-helper/
H A Dbind-helper.c44 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/krb5/ss/
H A Dpager.c75 struct sigaction sa; local
84 sa.sa_handler = SIG_DFL;
85 sigemptyset(&sa.sa_mask);
86 sa.sa_flags = 0;
87 sigaction(SIGINT, &sa, NULL);
/illumos-gate/usr/src/lib/efcode/engine/
H A Dsignal.c74 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 Dsized_array.c57 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 Dsmb_tran.c62 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/libbc/libc/gen/common/
H A D_nlist.c38 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/libnsl/nss/
H A Dinet_matchaddr.c19 * 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/lib/libilb/common/
H A Dilb_comm.c58 struct sockaddr_un sa = {AF_UNIX, SOCKET_PATH}; local
83 connect(s, (struct sockaddr *)&sa, sizeof (sa.sun_path))
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dgetaddr.c85 dump_sockaddr(struct sockaddr *sa) argument
90 int af = sa->sa_family;
97 sin = (void *)sa;
102 sin6 = (void *)sa;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dinput.c140 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 Dcred.c251 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/ldap/common/
H A Dtmpltest.c237 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 Dnfs_cmd.c105 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/libresolv2/common/isc/
H A Dctl_p.c97 ctl_sa_ntop(const struct sockaddr *sa, argument
105 switch (sa->sa_family) {
108 (const struct sockaddr_in6 *) sa;
126 (const struct sockaddr_in *) sa;
146 (const struct sockaddr_un *) sa;
/illumos-gate/usr/src/cmd/mandoc/
H A Dtag.c59 struct sigaction sa; local
68 memset(&sa, 0, sizeof(sa));
69 sigfillset(&sa.sa_mask);
70 sa.sa_handler = tag_signal;
71 sigaction(SIGHUP, &sa, NULL);
72 sigaction(SIGINT, &sa, NULL);
73 sigaction(SIGTERM, &sa, NULL);
81 sa.sa_handler = SIG_IGN;
82 sigaction(SIGTTOU, &sa, NUL
267 struct sigaction sa; local
[all...]
/illumos-gate/usr/src/cmd/sendmail/util/
H A Dmconnect.c54 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/lib/libresolv2/common/irs/
H A Dgetnameinfo.c100 getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
101 const struct sockaddr *sa;
123 if (sa == NULL)
127 len = sa->sa_len;
131 family = sa->sa_family;
142 port = ((const struct sockinet *)sa)->si_port; /*%< network byte order */
143 addr = (const char *)sa + afd->a_off;
165 switch (sa->sa_family) {
171 sin6 = (const struct sockaddr_in6 *)sa;
217 if ((error = ip6_parsenumeric(sa, add
238 ip6_parsenumeric(const struct sockaddr *sa, const char *addr, char *host, size_t hostlen, int flags) argument
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dseq.c256 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 Dprompter.c133 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/libldap5/sources/ldap/common/
H A Dsrchpref.c190 struct ldap_searchattr *sa, *nextsa; local
191 for ( sa = so->so_salist; sa != NULL; sa = nextsa ) {
192 nextsa = sa->sa_next;
193 if ( sa->sa_attrlabel != NULL ) {
194 NSLDAPI_FREE( sa->sa_attrlabel );
196 if ( sa->sa_attr != NULL ) {
197 NSLDAPI_FREE( sa->sa_attr );
199 if ( sa
251 struct ldap_searchattr **sa; local
[all...]
/illumos-gate/usr/src/lib/libbc/libc/yp/
H A Dyp_bind.c175 struct sockaddr_in *sa; /* To get a port bound to socket */ local
191 sa = (struct sockaddr_in *)dom_binding->dom_binding->ypbind_svcaddr->buf;
192 pdomb->dom_server_addr.sin_family = sa->sin_family;
193 pdomb->dom_server_addr.sin_port = sa->sin_port;
194 pdomb->dom_server_addr.sin_addr.s_addr = sa->sin_addr.s_addr;
196 pdomb->dom_server_port = sa->sin_port;

Completed in 288 milliseconds

1234567