Searched refs:sa (Results 1 - 25 of 798) sorted by relevance

1234567891011>>

/freebsd-head/crypto/heimdal/lib/kadm5/
H A Dipropd_common.c50 struct sigaction sa; local
52 sa.sa_flags = 0;
53 sa.sa_handler = sigterm;
54 sigemptyset(&sa.sa_mask);
56 sigaction(SIGINT, &sa, NULL);
57 sigaction(SIGTERM, &sa, NULL);
58 sigaction(SIGXCPU, &sa, NULL);
60 sa.sa_handler = SIG_IGN;
61 sigaction(SIGPIPE, &sa, NULL);
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/raise/
H A Dtst.raise2.c42 struct sigaction sa; local
44 sa.sa_handler = handle;
45 sigemptyset(&sa.sa_mask);
46 sa.sa_flags = 0;
48 (void) sigaction(SIGUSR1, &sa, NULL);
H A Dtst.raise3.c42 struct sigaction sa; local
44 sa.sa_handler = handle;
45 sigemptyset(&sa.sa_mask);
46 sa.sa_flags = 0;
48 (void) sigaction(SIGUSR1, &sa, NULL);
/freebsd-head/lib/libc/gen/
H A Dsignal.c49 struct sigaction sa, osa; local
51 sa.sa_handler = a;
52 sigemptyset(&sa.sa_mask);
53 sa.sa_flags = 0;
55 sa.sa_flags |= SA_RESTART;
56 if (__libc_sigaction(s, &sa, &osa) < 0)
H A Dsiginterrupt.c49 struct sigaction sa; local
52 if ((ret = __libc_sigaction(sig, (struct sigaction *)0, &sa)) < 0)
56 sa.sa_flags &= ~SA_RESTART;
59 sa.sa_flags |= SA_RESTART;
61 return (__libc_sigaction(sig, &sa, (struct sigaction *)0));
H A Dposix_spawn.c88 process_spawnattr(const posix_spawnattr_t sa) argument
100 if (sa->sa_flags & POSIX_SPAWN_SETPGROUP) {
101 if (setpgid(0, sa->sa_pgroup) != 0)
106 if (sa->sa_flags & POSIX_SPAWN_SETSCHEDULER) {
107 if (sched_setscheduler(0, sa->sa_schedpolicy,
108 &sa->sa_schedparam) != 0)
110 } else if (sa->sa_flags & POSIX_SPAWN_SETSCHEDPARAM) {
111 if (sched_setparam(0, &sa->sa_schedparam) != 0)
116 if (sa->sa_flags & POSIX_SPAWN_RESETIDS) {
127 if (sa
200 const posix_spawnattr_t *sa; member in struct:posix_spawn_args
240 do_posix_spawn(pid_t *pid, const char *path, const posix_spawn_file_actions_t *fa, const posix_spawnattr_t *sa, char * const argv[], char * const envp[], int use_env_path) argument
309 posix_spawn(pid_t *pid, const char *path, const posix_spawn_file_actions_t *fa, const posix_spawnattr_t *sa, char * const argv[], char * const envp[]) argument
318 posix_spawnp(pid_t *pid, const char *path, const posix_spawn_file_actions_t *fa, const posix_spawnattr_t *sa, char * const argv[], char * const envp[]) argument
446 posix_spawnattr_t sa; local
458 posix_spawnattr_destroy(posix_spawnattr_t *sa) argument
465 posix_spawnattr_getflags(const posix_spawnattr_t * __restrict sa, short * __restrict flags) argument
473 posix_spawnattr_getpgroup(const posix_spawnattr_t * __restrict sa, pid_t * __restrict pgroup) argument
481 posix_spawnattr_getschedparam(const posix_spawnattr_t * __restrict sa, struct sched_param * __restrict schedparam) argument
489 posix_spawnattr_getschedpolicy(const posix_spawnattr_t * __restrict sa, int * __restrict schedpolicy) argument
497 posix_spawnattr_getsigdefault(const posix_spawnattr_t * __restrict sa, sigset_t * __restrict sigdefault) argument
505 posix_spawnattr_getsigmask(const posix_spawnattr_t * __restrict sa, sigset_t * __restrict sigmask) argument
513 posix_spawnattr_setflags(posix_spawnattr_t *sa, short flags) argument
520 posix_spawnattr_setpgroup(posix_spawnattr_t *sa, pid_t pgroup) argument
527 posix_spawnattr_setschedparam(posix_spawnattr_t * __restrict sa, const struct sched_param * __restrict schedparam) argument
535 posix_spawnattr_setschedpolicy(posix_spawnattr_t *sa, int schedpolicy) argument
542 posix_spawnattr_setsigdefault(posix_spawnattr_t * __restrict sa, const sigset_t * __restrict sigdefault) argument
550 posix_spawnattr_setsigmask(posix_spawnattr_t * __restrict sa, const sigset_t * __restrict sigmask) argument
[all...]
/freebsd-head/sys/arm/arm/
H A Dsyscall.c106 struct syscall_args *sa; local
109 sa = &td->td_sa;
110 sa->code = td->td_frame->tf_r7;
112 if (sa->code == SYS_syscall) {
113 sa->code = *ap++;
114 sa->nap--;
115 } else if (sa->code == SYS___syscall) {
116 sa->code = ap[_QUAD_LOWWORD];
117 sa->nap -= 2;
121 if (sa
[all...]
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dbsd-signal.c31 struct sigaction sa, osa; local
36 memset(&sa, 0, sizeof(sa));
37 sigemptyset(&sa.sa_mask);
38 sa.sa_flags = 0;
41 sa.sa_flags |= SA_INTERRUPT;
43 sa.sa_handler = act;
44 if (sigaction(sig, &sa, NULL) == -1)
H A Dbindresvport.c53 bindresvport_sa(int sd, struct sockaddr *sa) argument
64 if (sa == NULL) {
66 sa = (struct sockaddr *)&myaddr;
69 if (getsockname(sd, sa, &salen) == -1)
72 af = sa->sa_family;
75 af = sa->sa_family;
78 in = (struct sockaddr_in *)sa;
82 in6 = (struct sockaddr_in6 *)sa;
89 sa->sa_family = af;
101 error = bind(sd, sa, sale
[all...]
H A Drresvport.c61 struct sockaddr *sa; local
67 sa = (struct sockaddr *)&ss;
72 portp = &((struct sockaddr_in *)sa)->sin_port;
76 portp = &((struct sockaddr_in6 *)sa)->sin6_port;
82 sa->sa_family = af;
90 if (bind(s, sa, salen) >= 0)
99 sa->sa_family = af;
100 if (bindresvport_sa(s, sa) == -1) {
/freebsd-head/crypto/heimdal/kcm/
H A Dmain.c78 struct sigaction sa; local
80 sa.sa_flags = 0;
81 sa.sa_handler = sigterm;
82 sigemptyset(&sa.sa_mask);
84 sigaction(SIGINT, &sa, NULL);
85 sigaction(SIGTERM, &sa, NULL);
87 sa.sa_handler = sigusr1;
88 sigaction(SIGUSR1, &sa, NULL);
90 sa.sa_handler = sigusr2;
91 sigaction(SIGUSR2, &sa, NUL
[all...]
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/
H A Dtst.gcc.c53 struct sigaction sa; local
55 sa.sa_handler = intr;
56 sigfillset(&sa.sa_mask);
57 sa.sa_flags = 0;
59 (void) sigaction(SIGUSR1, &sa, NULL);
/freebsd-head/contrib/ofed/opensm/opensm/
H A Dosm_sa_vlarb_record.c70 osm_sa_t *sa; member in struct:osm_vl_arb_search_ctxt
74 static void sa_vl_arb_create(IN osm_sa_t * sa, IN osm_physp_t * p_physp, argument
81 OSM_LOG_ENTER(sa->p_log);
85 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2A02: "
95 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
111 OSM_LOG_EXIT(sa->p_log);
114 static void sa_vl_arb_check_physp(IN osm_sa_t * sa, IN osm_physp_t * p_physp, argument
120 OSM_LOG_ENTER(sa->p_log);
126 sa_vl_arb_create(sa, p_physp, p_ctxt, block);
129 OSM_LOG_EXIT(sa
132 sa_vl_arb_by_comp_mask(osm_sa_t * sa, IN const osm_port_t * p_port, osm_vl_arb_search_ctxt_t * p_ctxt) argument
208 osm_sa_t *sa = ctx; local
[all...]
H A Dosm_sa_service_record.c71 osm_sa_t *sa; member in struct:osm_sr_match_item
80 match_service_pkey_with_ports_pkey(IN osm_sa_t * sa, argument
91 p_req_physp = osm_get_physp_by_mad_addr(sa->p_log, sa->p_subn,
95 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2404: "
100 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
109 (sa->p_log, p_service_rec->service_pkey, p_req_physp)) {
120 osm_get_port_by_alias_guid(sa->p_subn, service_guid);
122 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2405: "
129 if (!osm_physp_has_pkey(sa
143 match_name_to_key_association(IN osm_sa_t * sa, ib_service_record_t * p_service_rec, ib_net64_t comp_mask) argument
161 validate_sr(IN osm_sa_t * sa, IN const osm_madw_t * p_madw) argument
197 sr_rcv_respond(IN osm_sa_t * sa, IN osm_madw_t * p_madw, IN cl_qlist_t * p_list) argument
444 sr_rcv_process_get_method(osm_sa_t * sa, IN osm_madw_t * p_madw) argument
509 sr_rcv_process_set_method(osm_sa_t * sa, IN osm_madw_t * p_madw) argument
607 sr_rcv_process_delete_method(osm_sa_t * sa, IN osm_madw_t * p_madw) argument
668 osm_sa_t *sa = context; local
726 osm_sa_t *sa = context; local
[all...]
H A Dosm_sa_informinfo.c77 osm_sa_t *sa; member in struct:osm_iir_search_ctxt
89 static boolean_t validate_ports_access_rights(IN osm_sa_t * sa, argument
98 OSM_LOG_ENTER(sa->p_log);
101 p_requester_physp = osm_get_physp_by_mad_addr(sa->p_log, sa->p_subn,
110 p_port = osm_get_port_by_guid(sa->p_subn, portguid);
112 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4301: "
122 (sa->p_log, p_port->p_physp, p_requester_physp,
123 sa->p_subn->opt.allow_both_pkeys)) {
124 OSM_LOG(sa
187 validate_infr(IN osm_sa_t * sa, IN osm_infr_t * p_infr_rec) argument
209 infr_rcv_respond(IN osm_sa_t * sa, IN osm_madw_t * p_madw) argument
239 sa_inform_info_rec_by_comp_mask(IN osm_sa_t * sa, IN const osm_infr_t * p_infr, osm_iir_search_ctxt_t * p_ctxt) argument
325 infr_rcv_process_get_method(osm_sa_t * sa, IN osm_madw_t * p_madw) argument
404 infr_rcv_process_set_method(osm_sa_t * sa, IN osm_madw_t * p_madw) argument
590 osm_sa_t *sa = context; local
618 osm_sa_t *sa = context; local
[all...]
H A Dosm_sa_sw_info_record.c66 osm_sa_t *sa; member in struct:osm_sir_search_ctxt
70 static ib_api_status_t sir_rcv_new_sir(IN osm_sa_t * sa, argument
78 OSM_LOG_ENTER(sa->p_log);
82 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 5308: "
88 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
99 OSM_LOG_EXIT(sa->p_log);
103 static void sir_rcv_create_sir(IN osm_sa_t * sa, IN const osm_switch_t * p_sw, argument
113 OSM_LOG_ENTER(sa->p_log);
115 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
121 osm_get_port_by_guid(sa
172 osm_sa_t *sa = p_ctxt->sa; local
195 osm_sa_t *sa = ctx; local
[all...]
H A Dosm_sa_sminfo_record.c75 osm_sa_t *sa; member in struct:osm_smir_search_ctxt
79 static ib_api_status_t smir_rcv_new_smir(IN osm_sa_t * sa, argument
90 OSM_LOG_ENTER(sa->p_log);
94 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2801: "
100 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
113 OSM_LOG_EXIT(sa->p_log);
117 static void sa_smir_by_comp_mask(IN osm_sa_t * sa, argument
126 OSM_LOG_ENTER(sa->p_log);
146 p_port = osm_get_port_by_guid(sa->p_subn, p_rem_sm->smi.guid);
149 OSM_LOG(sa
172 osm_sa_t *sa = ctx; local
[all...]
H A Dosm_sa_slvl_record.c70 osm_sa_t *sa; member in struct:osm_slvl_search_ctxt
74 static void sa_slvl_create(IN osm_sa_t * sa, IN const osm_physp_t * p_physp, argument
81 OSM_LOG_ENTER(sa->p_log);
85 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2602: "
95 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
114 OSM_LOG_EXIT(sa->p_log);
117 static void sa_slvl_by_comp_mask(IN osm_sa_t * sa, IN const osm_port_t * p_port, argument
129 OSM_LOG_ENTER(sa->p_log);
141 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
146 if (osm_physp_share_pkey(sa
201 osm_sa_t *sa = ctx; local
[all...]
H A Dosm_sa_pkey_record.c63 osm_sa_t *sa; member in struct:osm_pkey_search_ctxt
67 static void sa_pkey_create(IN osm_sa_t * sa, IN osm_physp_t * p_physp, argument
75 OSM_LOG_ENTER(sa->p_log);
79 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4602: "
89 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
113 OSM_LOG_EXIT(sa->p_log);
116 static void sa_pkey_check_physp(IN osm_sa_t * sa, IN osm_physp_t * p_physp, argument
122 OSM_LOG_ENTER(sa->p_log);
126 sa_pkey_create(sa, p_physp, p_ctxt, p_ctxt->block_num);
132 sa_pkey_create(sa, p_phys
138 sa_pkey_by_comp_mask(IN osm_sa_t * sa, IN const osm_port_t * p_port, osm_pkey_search_ctxt_t * p_ctxt) argument
214 osm_sa_t *sa = ctx; local
[all...]
H A Dosm_sa_lft_record.c66 osm_sa_t *sa; member in struct:osm_lftr_search_ctxt
70 static ib_api_status_t lftr_rcv_new_lftr(IN osm_sa_t * sa, argument
78 OSM_LOG_ENTER(sa->p_log);
82 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4402: "
88 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
105 OSM_LOG_EXIT(sa->p_log);
114 osm_sa_t *sa = p_ctxt->sa; local
123 p_port = osm_get_port_by_guid(sa->p_subn,
126 OSM_LOG(sa
178 osm_sa_t *sa = ctx; local
[all...]
H A Dosm_sa_mft_record.c66 osm_sa_t *sa; member in struct:osm_mftr_search_ctxt
70 static ib_api_status_t mftr_rcv_new_mftr(IN osm_sa_t * sa, argument
80 OSM_LOG_ENTER(sa->p_log);
84 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4A02: "
90 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
110 OSM_LOG_EXIT(sa->p_log);
119 osm_sa_t *sa = p_ctxt->sa; local
131 osm_get_port_by_guid(sa->p_subn, p_sw->p_node->node_info.port_guid);
133 OSM_LOG(sa
211 osm_sa_t *sa = ctx; local
[all...]
/freebsd-head/contrib/ofed/libibmad/
H A Dsa.c50 ib_portid_t * portid, ib_sa_call_t * sa, unsigned timeout)
55 DEBUG("attr 0x%x mod 0x%x route %s", sa->attrid, sa->mod,
64 rpc.method = sa->method;
65 rpc.attr.id = sa->attrid;
66 rpc.attr.mod = sa->mod;
67 rpc.mask = sa->mask;
71 rpc.trid = sa->trid;
77 p = mad_rpc_rmpp(ibmad_port, &rpc, portid, 0 /*&sa->rmpp */ , rcvbuf); /* TODO: RMPP */
79 sa
49 sa_rpc_call(const struct ibmad_port *ibmad_port, void *rcvbuf, ib_portid_t * portid, ib_sa_call_t * sa, unsigned timeout) argument
84 sa_call(void *rcvbuf, ib_portid_t * portid, ib_sa_call_t * sa, unsigned timeout) argument
119 ib_sa_call_t sa = { 0 }; local
172 ib_sa_call_t sa = { 0 }; local
[all...]
/freebsd-head/contrib/netbsd-tests/lib/libc/gen/
H A Dt_assert.c73 struct sigaction sa; local
84 (void)memset(&sa, 0, sizeof(struct sigaction));
86 sa.sa_flags = 0;
87 sa.sa_handler = handler;
89 (void)sigemptyset(&sa.sa_mask);
90 (void)sigaction(SIGABRT, &sa, 0);
111 struct sigaction sa; local
122 (void)memset(&sa, 0, sizeof(struct sigaction));
124 sa.sa_flags = 0;
125 sa
[all...]
H A Dt_raise.c107 struct sigaction sa; local
111 sa.sa_flags = 0;
112 sa.sa_handler = handler_ret;
118 ATF_REQUIRE(sigemptyset(&sa.sa_mask) == 0);
119 ATF_REQUIRE(sigaction(SIGUSR1, &sa, 0) == 0);
135 struct sigaction sa; local
140 (void)memset(&sa, 0, sizeof(struct sigaction));
147 sa.sa_flags = 0;
148 sa.sa_handler = handler_err;
150 ATF_REQUIRE(sigemptyset(&sa
170 struct sigaction sa; local
[all...]
/freebsd-head/crypto/heimdal/lib/gssapi/krb5/
H A Daddress_to_krb5addr.c46 struct sockaddr sa; local
47 krb5_socklen_t sa_size = sizeof(sa);
68 &sa,
74 problem = krb5_sockaddr2address (context, &sa, address);

Completed in 449 milliseconds

1234567891011>>