Home
last modified time | relevance | path

Searched refs:sv (Results 1 – 25 of 97) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_server.c404 while (sv) { in smb_server_create()
410 sv = smb_llist_next(&smb_servers, sv); in smb_server_create()
508 cv_wait(&sv->sv_cv, &sv->sv_mutex); in smb_server_delete()
622 sv->sv_session = smb_session_create(NULL, 0, sv, 0); in smb_server_start()
632 sv->sv_rootuser = smb_user_new(sv->sv_session); in smb_server_start()
685 smb_server_listener_init(sv, &sv->sv_nbt_daemon, in smb_server_start()
689 smb_server_listener_init(sv, &sv->sv_tcp_daemon, in smb_server_start()
878 ioc->open_files = sv->sv_files + sv->sv_pipes; in smb_server_numopen()
1285 sv->sv_ksp->ks_private = sv; in smb_server_kstat_init()
1318 sv->sv_legacy_ksp->ks_lock = &sv->sv_legacy_ksmtx; in smb_server_kstat_init()
[all …]
H A Dsmb_kdoor.c51 sv->sv_kdoor_id = -1; in smb_kdoor_init()
59 smb_kdoor_close(sv); in smb_kdoor_fini()
60 cv_destroy(&sv->sv_kdoor_cv); in smb_kdoor_fini()
73 smb_kdoor_close(sv); in smb_kdoor_open()
76 sv->sv_kdoor_ncall = 0; in smb_kdoor_open()
79 sv->sv_kdoor_id = door_id; in smb_kdoor_open()
98 cv_wait(&sv->sv_kdoor_cv, &sv->sv_kdoor_mutex); in smb_kdoor_close()
101 sv->sv_kdoor_hd = NULL; in smb_kdoor_close()
102 sv->sv_kdoor_id = -1; in smb_kdoor_close()
145 if (smb_kdoor_open(sv, sv->sv_kdoor_id) != 0) { in smb_kdoor_upcall()
[all …]
H A Dsmb_kshare.c264 if (sv->sv_export.e_ready) { in smb_export_start()
269 sv->sv_export.e_ready = B_TRUE; in smb_export_start()
289 if (!sv->sv_export.e_ready) { in smb_export_stop()
362 smb_server_t *sv = NULL; in smb_kshare_export_list() local
373 if (!smb_export_isready(sv)) { in smb_kshare_export_list()
430 smb_server_release(sv); in smb_kshare_export_list()
453 smb_server_t *sv = NULL; in smb_kshare_unexport_list() local
500 smb_server_release(sv); in smb_kshare_unexport_list()
544 if (!smb_export_isready(sv)) { in smb_kshare_enum()
652 if (!smb_export_isready(sv)) in smb_kshare_lookup()
[all …]
/illumos-gate/usr/src/lib/libdemangle/common/
H A Dstrview.c24 *sv = *src; in sv_init_sv()
34 sv->sv_rem = len; in sv_init_sv_range()
46 sv->sv_rem = (size_t)(uintptr_t)(sv->sv_last - sv->sv_first); in sv_init_str()
58 if (sv->sv_rem < 1 || *sv->sv_first != c) in sv_consume_if_c()
61 sv->sv_first++; in sv_consume_if_c()
62 sv->sv_rem--; in sv_consume_if_c()
86 p = (n >= 0) ? sv->sv_first + n : sv->sv_last + n; in sv_peek()
87 return ((p >= sv->sv_first && p < sv->sv_last) ? *p : '\0'); in sv_peek()
95 if (sv->sv_first < sv->sv_last) { in sv_consume_c()
97 sv->sv_rem--; in sv_consume_c()
[all …]
H A Drust-v0.c152 return (rust_append_sv(st, sv_remaining(sv), sv)); in rust_demangle_v0()
178 if (!fn(st, sv, bval)) in rustv0_parse_opt_list()
201 sv_init_sv(&save, sv); in rustv0_parse_uint_type()
223 sv_init_sv(sv, &save); in rustv0_parse_uint_type()
244 sv_init_sv(&save, sv); in rustv0_parse_basic_type()
293 sv_init_sv(sv, &save); in rustv0_parse_basic_type()
319 sv_init_sv(&save, sv); in rustv0_parse_type()
450 sv_init_sv(&save, sv); in rustv0_parse_path()
575 sv_init_sv(&save, sv); in rustv0_has_name()
614 ns = sv_consume_c(sv); in rustv0_parse_nested_path()
[all …]
H A Drust.c169 sv_consume_n(sv, (size_t)n); in rust_append_sv()
173 if (n > sv_remaining(sv)) { in rust_append_sv()
191 sv_consume_n(sv, (size_t)n); in rust_append_sv()
228 c = sv_peek(sv, 0); in rust_parse_base10()
246 sv_consume_n(sv, 1); in rust_parse_base10()
259 while (sv_remaining(sv) > 0) { in rust_parse_base10()
262 c = sv_peek(sv, 0); in rust_parse_base10()
265 sv_consume_n(sv, 1); in rust_parse_base10()
339 sv_init_sv(&st->rs_orig, sv); in rust_parse_prefix()
381 strview_t sv = { 0 }; in rust_demangle() local
[all …]
H A Drust-legacy.c89 if (!rustleg_valid_sym(sv)) { in rust_demangle_legacy()
94 if (sv_peek(sv, -1) != 'E') { in rust_demangle_legacy()
100 if (!rustleg_parse_name(st, sv)) in rust_demangle_legacy()
103 if (sv_remaining(sv) != 0) { in rust_demangle_legacy()
321 strview_t sv; in rustleg_parse_special() local
325 sv_init_sv(&sv, svp); in rustleg_parse_special()
328 VERIFY(sv_consume_if_c(&sv, '$')); in rustleg_parse_special()
330 if (!sv_consume_if_c(&sv, 'u')) in rustleg_parse_special()
333 while (sv_remaining(&sv) > 0) { in rustleg_parse_special()
340 c = sv_consume_c(&sv); in rustleg_parse_special()
[all …]
H A Ddemangle.c80 strview_t sv; in is_mangled() local
82 sv_init_str(&sv, str, str + n); in is_mangled()
84 if (!sv_consume_if_c(&sv, '_')) in is_mangled()
86 (void) sv_consume_if_c(&sv, '_'); in is_mangled()
87 if (sv_consume_if_c(&sv, 'Z')) in is_mangled()
89 if (sv_consume_if_c(&sv, 'R')) in is_mangled()
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgen_sv.c74 memset(sv, 0x5e, sizeof *sv); in irs_gen_sv()
76 memput(sv, sizeof *sv); in irs_gen_sv()
112 sv = pvt->rule->inst->sv; in sv_next()
113 rval = (*sv->next)(sv); in sv_next()
120 sv = pvt->rule->inst->sv; in sv_next()
121 (*sv->rewind)(sv); in sv_next()
136 sv = rule->inst->sv; in sv_byname()
153 sv = rule->inst->sv; in sv_byport()
168 sv = pvt->rule->inst->sv; in sv_rewind()
169 (*sv->rewind)(sv); in sv_rewind()
[all …]
H A Dirp_sv.c80 if ((sv = memget(sizeof *sv)) == NULL) { in irs_irp_sv()
84 memset(sv, 0x0, sizeof *sv); in irs_irp_sv()
87 memput(sv, sizeof *sv); in irs_irp_sv()
102 return (sv); in irs_irp_sv()
155 sv = NULL; in sv_next()
158 sv = NULL; in sv_next()
165 return (sv); in sv_next()
206 sv = NULL; in sv_byname()
209 sv = NULL; in sv_byname()
216 return (sv); in sv_byname()
[all …]
H A Dlcl_sv.c122 if ((sv = memget(sizeof *sv)) == NULL) { in irs_lcl_sv()
126 memset(sv, 0x5e, sizeof *sv); in irs_lcl_sv()
128 memput(sv, sizeof *sv); in irs_lcl_sv()
145 return (sv); in irs_lcl_sv()
333 if ((p = fgets(sv->line, BUFSIZ, sv->fp)) == NULL) in irs_lclsv_fnxt()
353 q = sv->serv.s_aliases = sv->serv_aliases; in irs_lclsv_fnxt()
394 sv->serv.s_name = sv->line; in sv_db_rec()
395 if ((sv->serv.s_proto = strchr(sv->line, '/')) != NULL) in sv_db_rec()
406 sv->serv.s_name = sv->line; in sv_db_rec()
407 if ((sv->serv.s_proto = strchr(sv->line, '/')) != NULL) in sv_db_rec()
[all …]
H A Dgetservent.c87 if (!net_data || !(sv = net_data->sv)) in getservent_p()
89 net_data->sv_last = (*sv->next)(sv); in getservent_p()
99 if (!net_data || !(sv = net_data->sv)) in getservbyname_p()
110 net_data->sv_last = (*sv->byname)(sv, name, proto); in getservbyname_p()
120 if (!net_data || !(sv = net_data->sv)) in getservbyport_p()
127 net_data->sv_last = (*sv->byport)(sv, port, proto); in getservbyport_p()
135 if (!net_data || !(sv = net_data->sv)) in setservent_p()
137 (*sv->rewind)(sv); in setservent_p()
147 if ((net_data != NULL) && ((sv = net_data->sv) != NULL)) in endservent_p()
148 (*sv->minimize)(sv); in endservent_p()
[all …]
H A Ddns_sv.c80 struct irs_sv *sv; in irs_dns_sv() local
93 if (!(sv = memget(sizeof *sv))) { in irs_dns_sv()
98 memset(sv, 0x5e, sizeof *sv); in irs_dns_sv()
99 sv->private = pvt; in irs_dns_sv()
100 sv->byname = sv_byname; in irs_dns_sv()
101 sv->byport = sv_byport; in irs_dns_sv()
102 sv->next = sv_next; in irs_dns_sv()
103 sv->rewind = sv_rewind; in irs_dns_sv()
104 sv->close = sv_close; in irs_dns_sv()
107 sv->res_get = sv_res_get; in irs_dns_sv()
[all …]
/illumos-gate/usr/src/lib/libsocket/socket/
H A Dsocketpair.c57 _socketpair(int family, int type, int protocol, int sv[2]) in _socketpair()
59 return (_socketpair_create(family, type, protocol, sv, SOV_DEFAULT)); in _socketpair()
66 _socketpair_bsd(int family, int type, int protocol, int sv[2]) in _socketpair_bsd()
72 _socketpair_svr4(int family, int type, int protocol, int sv[2]) in _socketpair_svr4()
78 __xnet_socketpair(int family, int type, int protocol, int sv[2]) in __xnet_socketpair()
80 return (_socketpair_create(family, type, protocol, sv, SOV_XPG4_2)); in __xnet_socketpair()
104 sv[0] = fd1; in _socketpair_create()
105 sv[1] = fd2; in _socketpair_create()
106 res = _so_socketpair(sv); in _socketpair_create()
121 if (sv[0] != fd1) in _socketpair_create()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dportname.c16 struct servent *sv = NULL, *sv1 = NULL; local
20 if ((sv = getservbyport(htons(port), "tcp"))) {
21 strncpy(buf, sv->s_name, sizeof(buf)-1);
24 sv = strncasecmp(buf, sv->s_name, strlen(buf)) ?
27 if (sv)
30 if ((sv = getservbyport(htons(port), p->p_name))) {
31 strncpy(buf, sv->s_name, sizeof(buf)-1);
/illumos-gate/usr/src/cmd/csh/
H A Dsh.sem.c165 struct sv { struct
169 } sv; local
182 sv.child = child; sv.setintr = setintr;
183 sv.haderr = haderr; sv.didfds = didfds;
184 sv.SHIN = SHIN; sv.SHOUT = SHOUT;
185 sv.SHDIAG = SHDIAG; sv.OLDSTD = OLDSTD;
198 child = sv.child; setintr = sv.setintr;
199 haderr = sv.haderr; didfds = sv.didfds;
200 SHIN = sv.SHIN;
201 SHOUT = sv.SHOUT; SHDIAG = sv.SHDIAG;
[all …]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_kdoor.c46 smb_kdoor_init(smb_server_t *sv) in smb_kdoor_init() argument
48 sv->sv_kdoor_id = -1; in smb_kdoor_init()
54 smb_kdoor_fini(smb_server_t *sv) in smb_kdoor_fini() argument
56 smb_kdoor_close(sv); in smb_kdoor_fini()
57 cv_destroy(&sv->sv_kdoor_cv); in smb_kdoor_fini()
58 mutex_destroy(&sv->sv_kdoor_mutex); in smb_kdoor_fini()
68 fksmb_kdoor_open(smb_server_t *sv, void *varg) in fksmb_kdoor_open() argument
70 sv->sv_kdoor_hd = varg; in fksmb_kdoor_open()
74 smb_kdoor_close(smb_server_t *sv) in smb_kdoor_close() argument
76 sv->sv_kdoor_hd = NULL; in smb_kdoor_close()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_smb.c143 bzero(sv, sizeof (*sv)); in smb_smb_negotiate()
144 sv->sv_maxmux = 1; in smb_smb_negotiate()
145 sv->sv_maxvcs = 1; in smb_smb_negotiate()
146 sv->sv_maxtx = 1024; in smb_smb_negotiate()
218 sv->sv_proto = dp->d_id; in smb_smb_negotiate()
391 if (sv->sv_maxmux < 1) in smb_smb_negotiate()
392 sv->sv_maxmux = 1; in smb_smb_negotiate()
393 if (sv->sv_maxvcs < 1) in smb_smb_negotiate()
394 sv->sv_maxvcs = 1; in smb_smb_negotiate()
396 sv->sv_maxtx = 1024; in smb_smb_negotiate()
[all …]
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drup.c80 statsvar sv; in main() local
141 sv.cp_time.cp_time_val = (int *)NULL; in main()
142 sv.dk_xfer.dk_xfer_val = (int *)NULL; in main()
153 sv.cp_time.cp_time_len = 0; in main()
154 sv.cp_time.cp_time_val = (int *)NULL; in main()
155 sv.dk_xfer.dk_xfer_len = 0; in main()
156 sv.dk_xfer.dk_xfer_val = (int *)NULL; in main()
304 statsvar *sv; local
337 sv = (statsvar *)resultsp;
367 putline(sv->curtime.tv_sec, sv->boottime, sv->avenrun);
[all …]
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumpoptr.c76 struct sigvec sv; in query_once() local
163 sv.sv_handler = sigAbort; in query_once()
164 sv.sv_flags = SA_RESTART; in query_once()
165 (void) sigemptyset(&sv.sa_mask); in query_once()
166 (void) sigvec(SIGALRM, &sv, (struct sigvec *)0); in query_once()
182 struct sigvec sv; in alarmcatch() local
193 sv.sv_handler = alarmcatch; in alarmcatch()
194 sv.sv_flags = SA_RESTART; in alarmcatch()
195 (void) sigemptyset(&sv.sa_mask); in alarmcatch()
196 (void) sigvec(SIGALRM, &sv, (struct sigvec *)0); in alarmcatch()
H A Ddumptape.c1309 struct sigvec sv, osv; in otape() local
1311 sv.sv_flags = SA_RESTART; in otape()
1313 sv.sv_handler = SIG_IGN; in otape()
1326 sv.sv_handler = interrupt; in otape()
1347 sv.sv_handler = SIG_IGN; in otape()
1520 sv.sv_handler = alrm; in otape()
1706 struct sigvec sv; in enslave() local
1710 sv.sv_flags = SA_RESTART; in enslave()
1718 sv.sv_handler = tperror; in enslave()
1720 sv.sv_handler = proceed; in enslave()
[all …]
/illumos-gate/usr/src/cmd/backup/lib/
H A Dbyteorder.c161 u_offset_t sv; in normspcl() local
244 sv = sp->c_dinode.di_ic.ic_lsize; in normspcl()
245 sv = (sv << 32) | (sv >> 32); in normspcl()
246 sp->c_dinode.di_ic.ic_lsize = sv; in normspcl()
/illumos-gate/usr/src/uts/sparc/v9/syscall/
H A Dinstall_utrap.c40 utrap_handler_t *ov, *nv, *pv, *sv, *tmp; in install_utrap() local
86 pv = sv = kmem_zalloc((UT_PRECISE_MAXTRAPS+1) * in install_utrap()
88 tmp = atomic_cas_ptr(&p->p_utraps, NULL, sv); in install_utrap()
153 utrap_handler_t *ov, *nvp, *pv, *sv, *tmp; in sparc_utrap_install() local
230 pv = sv = kmem_zalloc((UT_PRECISE_MAXTRAPS+1) * in sparc_utrap_install()
232 tmp = atomic_cas_ptr(&p->p_utraps, NULL, sv); in sparc_utrap_install()
/illumos-gate/usr/src/cmd/mandoc/
H A Dmdoc.c313 int sv; in mdoc_pmacro() local
317 sv = offs; in mdoc_pmacro()
322 tok = roffhash_find(mdoc->mdocmac, buf + sv, sz); in mdoc_pmacro()
324 mandoc_msg(MANDOCERR_MACRO, ln, sv, "%s", buf + sv - 1); in mdoc_pmacro()
364 (*mdoc_macro(tok)->fp)(mdoc, tok, ln, sv, &offs, buf); in mdoc_pmacro()
380 (*mdoc_macro(MDOC_It)->fp)(mdoc, MDOC_It, ln, sv, &sv, buf); in mdoc_pmacro()
386 (*mdoc_macro(tok)->fp)(mdoc, tok, ln, sv, &offs, buf); in mdoc_pmacro()
/illumos-gate/usr/src/uts/common/syscall/
H A Dsigqueue.c202 union sigval sv; in sigqueue32() local
204 bzero(&sv, sizeof (sv)); in sigqueue32()
205 sv.sival_int = (int)value; in sigqueue32()
206 return (sigqueue(pid, sig, sv.sival_ptr, si_code, block)); in sigqueue32()

1234