Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 25 of 248) sorted by relevance

12345678910

/illumos-gate/usr/src/uts/common/io/chxge/
H A Dpe.c130 pe_intr(ch_t *sa) in pe_intr() argument
135 sa->isr_intr++; in pe_intr()
152 ch_t *sa = NULL; in pe_init() local
170 link_start(sa, &sa->port[i]); in pe_init()
341 sa->oerr++; in pe_start()
618 sa->oerr++; in pe_start()
660 rm.chp = sa; in pe_set_promiscuous()
714 rm.chp = sa; in pe_set_mc()
1095 sa->config = sa->config_data.global_config; in pe_sa_init()
1107 if (t1_get_board_rev(sa, bi, &sa->params)) { in pe_sa_init()
[all …]
/illumos-gate/usr/src/lib/libidmap/common/
H A Dsized_array.c62 sa = malloc(total); in sized_array()
64 if (sa == NULL) in sized_array()
69 sa->n = n; in sized_array()
70 sa->sz = sz; in sized_array()
73 (void) memcpy(sa->cookie, COOKIE, sizeof (sa->cookie)); in sized_array()
90 assert(memcmp(sa->cookie, COOKIE, sizeof (sa->cookie)) == 0); in sized_array_free()
93 free(sa); in sized_array_free()
104 assert(memcmp(sa->cookie, COOKIE, sizeof (sa->cookie)) == 0); in sized_array_n()
107 return (sa->n); in sized_array_n()
118 assert(memcmp(sa->cookie, COOKIE, sizeof (sa->cookie)) == 0); in sized_array_sz()
[all …]
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dswap_rcm.c345 for (sa = sf->areas; sa != NULL; sa = sa->next) { in swap_delete()
379 sf->path, sa->start, sa->len); in swap_delete()
413 for (sa = sf->areas; sa != NULL; sa = sa->next) { in swap_add()
420 SWAP_ADD, sf->path, sa->start, sa->len); in swap_add()
458 for (sa = sf->areas; sa != NULL; sa = sa->next) { in update_cache()
514 sa = sa->next; in update_cache()
519 sa = sa->next; in update_cache()
524 sa = sa->next; in update_cache()
721 sa->next->prev = sa; in swap_area_add()
765 if ((sa = calloc(1, sizeof (*sa))) == NULL) { in swap_area_alloc()
[all …]
/illumos-gate/usr/src/uts/common/io/rtw/
H A Drtwphy.c252 if (sa->sa_digphy) in rtw_sa2400_pwrstate()
287 if (sa->sa_digphy) in rtw_sa2400_vcocal_start()
316 if (sa->sa_digphy) in rtw_sa2400_filter_calibration()
373 kmem_free(sa, sizeof (*sa)); in rtw_sa2400_destroy()
399 if (!sa->sa_digphy) in rtw_sa2400_calibrate()
444 struct rtw_sa2400 *sa; in rtw_sa2400_create() local
449 sa = (struct rtw_sa2400 *)kmem_zalloc(sizeof (*sa), KM_SLEEP); in rtw_sa2400_create()
450 if (sa == NULL) in rtw_sa2400_create()
455 rf = &sa->sa_rf; in rtw_sa2400_create()
456 bus = &sa->sa_bus; in rtw_sa2400_create()
[all …]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetnameinfo.c109 if (sa == NULL) in getnameinfo()
111 switch (sa->sa_family) { in getnameinfo()
113 addr = (char *)&sa2sin(sa)->sin_addr; in getnameinfo()
119 addr = (char *)&sa2sin6(sa)->sin6_addr; in getnameinfo()
137 if (inet_ntop(sa->sa_family, addr, in getnameinfo()
144 hp = getipnodebyaddr(addr, alen, sa->sa_family, in getnameinfo()
184 if (_inet_ntop_native(sa->sa_family, addr, in getnameinfo()
195 if ((sa->sa_family == AF_INET6) && in getnameinfo()
196 (sa2sin6(sa)->sin6_scope_id != 0)) { in getnameinfo()
208 if ((err = addzoneid(sa2sin6(sa), host, in getnameinfo()
[all …]
/illumos-gate/usr/src/cmd/sulogin/
H A Dsulogin.c111 static struct sigaction sa; variable
306 sa.sa_flags = 0; in main()
311 sa.sa_flags = SA_SIGINFO; in main()
315 sa.sa_handler = SIG_IGN; in main()
316 sa.sa_flags = 0; in main()
435 sa.sa_handler = noop; in setupsigs()
436 sa.sa_flags = 0; in setupsigs()
442 sa.sa_flags = 0; in setupsigs()
760 sa.sa_flags = 0; in parenthandler()
804 sa.sa_flags = 0; in termhandler()
[all …]
/illumos-gate/usr/src/lib/efcode/engine/
H A Dsignal.c72 struct sigaction sa; in install_handlers() local
78 (void) sigemptyset(&sa.sa_mask); in install_handlers()
79 sa.sa_flags = SA_SIGINFO|SA_NODEFER; in install_handlers()
80 sa.sa_handler = 0; in install_handlers()
81 sa.sa_sigaction = process_signal; in install_handlers()
83 (void) sigaction(SIGINT, &sa, NULL); in install_handlers()
84 (void) sigaction(SIGQUIT, &sa, NULL); in install_handlers()
85 (void) sigaction(SIGSEGV, &sa, NULL); in install_handlers()
86 (void) sigaction(SIGBUS, &sa, NULL); in install_handlers()
87 (void) sigaction(SIGUSR1, &sa, NULL); in install_handlers()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dsrchpref.c191 for ( sa = so->so_salist; sa != NULL; sa = nextsa ) { in free_searchobj()
192 nextsa = sa->sa_next; in free_searchobj()
196 if ( sa->sa_attr != NULL ) { in free_searchobj()
197 NSLDAPI_FREE( sa->sa_attr ); in free_searchobj()
205 NSLDAPI_FREE( sa ); in free_searchobj()
251 struct ldap_searchattr **sa; in read_next_searchobj() local
370 sa = &( so->so_salist ); in read_next_searchobj()
384 ( *sa )->sa_attr = toks[ 1 ]; in read_next_searchobj()
388 ( *sa )->sa_matchtypebitmap = 0; in read_next_searchobj()
396 sa = &(( *sa )->sa_next); in read_next_searchobj()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dsa.c406 sa_os_t *sa = os->os_sa; in sa_add_layout_entry() local
468 sa_os_t *sa = os->os_sa; in sa_find_layout() local
845 sa->sa_user_table = in sa_attr_table_setup()
986 sa_free_attr_table(sa); in sa_attr_table_setup()
996 sa_os_t *sa; in sa_setup() local
1015 os->os_sa = sa; in sa_setup()
1106 if (sa->sa_user_table) in sa_setup()
1107 kmem_free(sa->sa_user_table, sa->sa_user_table_sz); in sa_setup()
1123 kmem_free(sa->sa_user_table, sa->sa_user_table_sz); in sa_tear_down()
1758 if (!sa->sa_need_attr_registration || sa->sa_master_obj == 0) { in sa_attr_register_sync()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dterm_tag.c53 struct sigaction sa; in term_tag_init() local
63 memset(&sa, 0, sizeof(sa)); in term_tag_init()
64 sigfillset(&sa.sa_mask); in term_tag_init()
65 sa.sa_handler = tag_signal; in term_tag_init()
66 sigaction(SIGHUP, &sa, NULL); in term_tag_init()
67 sigaction(SIGINT, &sa, NULL); in term_tag_init()
76 sa.sa_handler = SIG_IGN; in term_tag_init()
217 struct sigaction sa; in tag_signal() local
220 memset(&sa, 0, sizeof(sa)); in tag_signal()
221 sigemptyset(&sa.sa_mask); in tag_signal()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_tran.c62 SA_LEN(struct sockaddr *sa) in SA_LEN() argument
66 switch (sa->sa_family) { in SA_LEN()
77 SMBSDEBUG("invalid address family %d\n", sa->sa_family); in SA_LEN()
107 smb_dup_sockaddr(struct sockaddr *sa) in smb_dup_sockaddr() argument
113 len = SA_LEN(sa); in smb_dup_sockaddr()
117 bcopy(sa, sa2, len); in smb_dup_sockaddr()
123 smb_free_sockaddr(struct sockaddr *sa) in smb_free_sockaddr() argument
128 len = SA_LEN(sa); in smb_free_sockaddr()
130 kmem_free(sa, len); in smb_free_sockaddr()
/illumos-gate/usr/src/cmd/smbsrv/bind-helper/
H A Dbind-helper.c44 struct sockaddr sa; in main() local
46 struct sockaddr_in *sin = (struct sockaddr_in *)&sa; in main()
48 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa; in main()
57 (void) memset(&sa, 0, sizeof (sa)); in main()
58 sa.sa_family = atoi(argv[1]); in main()
59 switch (sa.sa_family) { in main()
85 if (bind(0, &sa, sizeof (sa)) < 0) { in main()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_qinfo_file.c242 smb_attr_t *sa = &qi->qi_attr; in smb2_qif_basic() local
249 &sa->sa_crtime, /* T */ in smb2_qif_basic()
253 sa->sa_dosattr, /* l */ in smb2_qif_basic()
270 smb_attr_t *sa = &qi->qi_attr; in smb2_qif_standard() local
277 sa->sa_allocsz, /* q */ in smb2_qif_standard()
297 smb_attr_t *sa = &qi->qi_attr; in smb2_qif_internal() local
566 smb_attr_t *sa = &qi->qi_attr; in smb2_qif_compr() local
588 smb_attr_t *sa = &qi->qi_attr; in smb2_qif_opens() local
593 &sa->sa_crtime, /* T */ in smb2_qif_opens()
597 sa->sa_allocsz, /* q */ in smb2_qif_opens()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetnameinfo.c101 const struct sockaddr *sa; in getnameinfo()
123 if (sa == NULL)
127 len = sa->sa_len;
131 family = sa->sa_family;
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, addr, host,
245 UNUSED(sa); in ip6_parsenumeric()
259 if (((const struct sockaddr_in6 *)sa)->sin6_scope_id) { in ip6_parsenumeric()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/
H A Drpc_bootstrap.c84 struct sockaddr_in6 *sa; local
101 sa = (struct sockaddr_in6 *)calloc(1, sizeof (*sa));
102 if (! sa) {
109 svc_taddr->buf = (char *)sa;
114 free(sa);
125 free(sa);
146 struct sockaddr_in *sa; local
239 address->len = sizeof (*sa);
245 sa->sin_family = AF_INET;
326 struct sockaddr_in *sa; local
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dev_connects.c39 #define GETXXXNAME(f, s, sa, len) ( \ argument
40 (f((s), (&sa), (&len)) >= 0) ? 0 : \
42 memset(&(sa), 0, sizeof (sa)), \
43 (len) = sizeof (sa), \
44 (sa).sa_family = AF_UNIX, \
278 struct sockaddr sa; in listener() member
289 new = accept(fd, &ra.sa, &ralen); in listener()
306 (*conn->func)(opaqueCtx, conn->uap, new, &la.sa, lalen, &ra.sa, ralen); in listener()
313 struct sockaddr sa; in connector() member
352 GETXXXNAME(getsockname, fd, la.sa, lalen) < 0 || in connector()
[all …]
/illumos-gate/usr/src/cmd/sa/
H A Dsvc-sar49 /usr/lib/sa/sadc /var/adm/sa/sa`date +%d`
61 0 * * * 0-6 /usr/lib/sa/sa1
62 20,40 8-17 * * 1-5 /usr/lib/sa/sa1
63 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dlistener.c156 addr.sa.sa_family = AF_UNIX;
161 addr.sa.sa_family = AF_INET;
166 addr.sa.sa_family = AF_INET6;
182 addr.sa.sa_family = AF_UNIX;
189 addr.sa.sa_family = AF_INET;
213 addr.sa.sa_family = AF_UNIX;
218 addr.sa.sa_family = AF_INET;
223 addr.sa.sa_family = AF_INET6;
287 switch (addr.sa.sa_family)
429 switch (addr.sa.sa_family)
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/raise/
H A Dtst.raise2.c41 struct sigaction sa; in main() local
43 sa.sa_handler = handle; in main()
44 sigemptyset(&sa.sa_mask); in main()
45 sa.sa_flags = 0; in main()
47 (void) sigaction(SIGINT, &sa, NULL); in main()
H A Dtst.raise3.c41 struct sigaction sa; in main() local
43 sa.sa_handler = handle; in main()
44 sigemptyset(&sa.sa_mask); in main()
45 sa.sa_flags = 0; in main()
47 (void) sigaction(SIGINT, &sa, NULL); in main()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dsigflag.c41 struct sigaction sa; in sigflag() local
44 if ((v = sigaction(sig, 0, &sa)) < 0) in sigflag()
47 sa.sa_flags |= flag; in sigflag()
49 sa.sa_flags &= ~flag; in sigflag()
50 return (sigaction(sig, &sa, 0)); in sigflag()
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dseq.c256 clear_all_bits(seq_array_t sa) in clear_all_bits() argument
261 sa->arr[i] = (seq_word_t)0; in clear_all_bits()
266 check_bit(seq_array_t sa, unsigned int bit) in check_bit() argument
271 return (sa->arr[bit/WBITS] & ((seq_word_t)1 << (bit % WBITS)) ? 1 : 0); in check_bit()
276 set_bit(seq_array_t sa, unsigned int bit) in set_bit() argument
279 sa->arr[bit/WBITS] |= ((seq_word_t)1 << (bit % WBITS)); in set_bit()
310 shift_bits(seq_array_t sa, unsigned int n) in shift_bits() argument
321 sa->arr[i] = sa->arr[i - m]; in shift_bits()
323 sa->arr[i] = (seq_word_t)0; in shift_bits()
337 out = (sa->arr[i] >> (WBITS - n)); in shift_bits()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dsigflag.c38 struct sigaction sa;
40 if (sigaction(sig, NiL, &sa))
43 sa.sa_flags |= flags;
45 sa.sa_flags &= ~flags;
46 return sigaction(sig, &sa, NiL);
/illumos-gate/usr/src/cmd/sendmail/src/
H A Ddaemon.c138 SOCKADDR sa; local
411 RealHostAddr.sa.sa_family != Daemons[idx].d_addr.sa.sa_family))
839 NULL), &sa.sa, &len) == 0)
852 if (!isloopback(sa))
860 "%d", sa.sa.sa_family);
2844 addr.sa.sa_family);
3313 addrcmp(hp, ha, sa) in addrcmp() argument
3316 SOCKADDR *sa;
3322 switch (sa->sa.sa_family)
4362 ap = sap->sa.sa_data;
[all …]
/illumos-gate/usr/src/cmd/consadm/
H A Dconsadm.c122 struct sigaction sa; in main() local
145 sa.sa_handler = SIG_IGN; in main()
146 sa.sa_flags = 0; in main()
147 (void) sigemptyset(&sa.sa_mask); in main()
156 sa.sa_handler = cleanup_on_exit; in main()
157 sa.sa_flags = 0; in main()
660 struct sigaction sa; in fallbackdaemon() local
668 sa.sa_handler = catch_term; in fallbackdaemon()
669 sa.sa_flags = 0; in fallbackdaemon()
676 sa.sa_handler = catch_hup; in fallbackdaemon()
[all …]

12345678910