Home
last modified time | relevance | path

Searched refs:cs (Results 1 – 25 of 193) sorted by relevance

12345678

/illumos-gate/usr/src/cmd/vgrind/
H A Dregexp.c208 *cs = *cs | OPT; in expconv()
338 cs = SNEXT(cs); in expmatch()
342 cs = SNEXT(cs); in expmatch()
346 cs = SNEXT(cs); in expmatch()
364 cs = OPTR(cs); in expmatch()
368 cs = ONEXT(cs); in expmatch()
392 cs = OPTR(cs); in expmatch()
469 cs = MNEXT(cs); in expmatch()
481 cs = MNEXT(cs); in expmatch()
486 cs = MNEXT(cs); in expmatch()
[all …]
/illumos-gate/usr/src/cmd/eqn/
H A Dtext.c24 char cs[420]; variable
70 p = cs; in text()
147 cs[csp++] = c; cs[csp++] = c = p1[psp++]; cs[csp++] = p1[psp++]; in trans()
159 cs[csp++] = '\\'; cs[csp++] = 'f'; cs[csp++] = 'P'; in trans()
165 cs[csp++] = '\\'; cs[csp++] = '^'; in trans()
169 cs[csp++] = '\\'; cs[csp++] = '|'; in trans()
178 cs[csp++] = '\\'; cs[csp++] = '^'; in trans()
196 cs[csp++] = '\\'; cs[csp++] = '|'; in shim()
202 cs[csp++] = '\\'; cs[csp++] = 'f'; cs[csp++] = ROM; in roman()
203 cs[csp++] = c; in roman()
[all …]
/illumos-gate/usr/src/cmd/hal/probing/storage/
H A Dprobe-storage.c70 LibHalChangeSet *cs = (LibHalChangeSet *)arg; in get_cdrom_properties_walker() local
130 get_cdrom_properties (int fd, LibHalChangeSet *cs) in get_cdrom_properties() argument
157 walk_profiles(fd, get_cdrom_properties_walker, cs); in get_cdrom_properties()
218 get_disk_properties (int fd, LibHalChangeSet *cs) in get_disk_properties() argument
353 LibHalChangeSet *cs = NULL; in main() local
380 if ((cs = libhal_device_new_changeset (udi)) == NULL) { in main()
395 get_cdrom_properties (rfd, cs); in main()
397 get_disk_properties (rfd, cs); in main()
472 libhal_device_commit_changeset (ctx, cs, &error); in main()
475 if (cs != NULL) { in main()
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv.c658 bzero(cs, sizeof (*cs)); in rfs4_init_compound_state()
2415 sarg.cs = cs; in rfs4_op_getattr()
3516 cs->cr = crdup(cs->basecr); in rfs4_op_putpubfh()
3640 cs->cr = crdup(cs->basecr); in rfs4_op_putfh()
3684 cs->cr = crdup(cs->basecr); in rfs4_op_putrootfh()
4864 cs->vp = cs->saved_vp; in rfs4_op_restorefh()
4866 cs->exi = cs->saved_exi; in rfs4_op_restorefh()
4893 cs->saved_vp = cs->vp; in rfs4_op_savefh()
4895 cs->saved_exi = cs->exi; in rfs4_op_savefh()
5112 sargp->cs = cs; in do_rfs4_set_attrs()
[all …]
H A Dnfs4_srv_attr.c134 struct compound_state cs; in rfs4_attr_init() local
143 cs.vp = rootvp; in rfs4_attr_init()
144 cs.fh.nfs_fh4_val = NULL; in rfs4_attr_init()
145 cs.cr = kcred; in rfs4_attr_init()
151 sarg.cs = &cs; in rfs4_attr_init()
403 struct compound_state *cs = sarg->cs; in fattr4_get_change() local
404 vnode_t *vp = cs->vp; in fattr4_get_change()
831 fh = &sarg->cs->fh; in rfs4_fattr4_filehandle()
839 sarg->cs->exi)); in rfs4_fattr4_filehandle()
1308 vp = sarg->cs->vp; in rfs4_get_mntdfileid()
[all …]
H A Dnfs4_srv_readdir.c208 saveexi = cs->exi; in nfs4_readdir_getvp()
209 cs->exi = newexi; in nfs4_readdir_getvp()
212 scr = cs->cr; in nfs4_readdir_getvp()
213 cs->cr = crdup(cs->basecr); in nfs4_readdir_getvp()
217 crfree(cs->cr); in nfs4_readdir_getvp()
218 cs->cr = scr; in nfs4_readdir_getvp()
219 cs->exi = saveexi; in nfs4_readdir_getvp()
222 *cs->statusp = NFS4_OK; in nfs4_readdir_getvp()
374 vnode_t *dvp = cs->vp; in rfs4_op_readdir()
478 ! is_exported_sec(cs->nfsflavor, cs->exi) || in rfs4_op_readdir()
[all …]
/illumos-gate/usr/src/cmd/hal/utils/
H A Dacpi.c43 LibHalChangeSet *cs; in laptop_panel_update() local
71 libhal_device_free_changeset(cs); in laptop_panel_update()
81 LibHalChangeSet *cs; in lid_update() local
135 libhal_device_free_changeset(cs); in lid_update()
145 LibHalChangeSet *cs; in ac_adapter_present() local
165 libhal_device_free_changeset(cs); in ac_adapter_present()
293 LibHalChangeSet *cs; in battery_dynamic_update() local
417 battery_last_full(cs, fd); in battery_dynamic_update()
438 libhal_device_free_changeset(cs); in battery_dynamic_update()
456 LibHalChangeSet *cs; in battery_static_update() local
[all …]
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dregex2.h130 cs->invert); in CHIN1()
132 if (cs->icase) { in CHIN1()
135 return (!cs->invert); in CHIN1()
137 return (!cs->invert); in CHIN1()
140 if (cs->ranges[i].min <= ch && ch <= cs->ranges[i].max) in CHIN1()
141 return (!cs->invert); in CHIN1()
144 return (!cs->invert); in CHIN1()
145 return (cs->invert); in CHIN1()
155 cs->invert); in CHIN()
156 else if (cs->icase) in CHIN()
[all …]
H A Dregcomp.c833 cset *cs; in p_bracket() local
1096 cset *cs; in ordinary() local
1260 (void) memset(cs, 0, sizeof (*cs)); in allocset()
1276 (void) memset(cs, 0, sizeof (*cs)); in freeset()
1297 if (cs->nwides == 1 && cs->nranges == 0 && cs->ntypes == 0 && in singleton()
1315 newwides = realloc(cs->wides, (cs->nwides + 1) * in CHadd()
1322 cs->wides[cs->nwides++] = ch; in CHadd()
1351 cs->ranges[cs->nranges].min = min; in CHaddrange()
1352 cs->ranges[cs->nranges].max = max; in CHaddrange()
1368 newtypes = realloc(cs->types, (cs->ntypes + 1) * in CHaddtype()
[all …]
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dvjcompress.c206 *(int *)th != ((int *)&cs->cs_ip)[getip_hl(&cs->cs_ip)]) { in vj_compress_tcp()
224 lcs = cs; cs = cs->cs_next; in vj_compress_tcp()
231 &cs->cs_ip)[getip_hl(&cs->cs_ip)]) { in vj_compress_tcp()
256 if (cs == lastcs) { in vj_compress_tcp()
440 *cp++ = cs->cs_id; in vj_compress_tcp()
467 ip->ip_p = cs->cs_id; in vj_compress_tcp()
596 i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen; in vj_uncompress_tcp()
610 tmp = ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) - cs->cs_hlen; in vj_uncompress_tcp()
642 cs->cs_ip.ip_id = ntohs(cs->cs_ip.ip_id) + 1; in vj_uncompress_tcp()
643 cs->cs_ip.ip_id = htons(cs->cs_ip.ip_id); in vj_uncompress_tcp()
[all …]
/illumos-gate/usr/src/cmd/tr/
H A Dcset.c50 struct cset *cs; in cset_alloc() local
52 if ((cs = malloc(sizeof (*cs))) == NULL) in cset_alloc()
54 cs->cs_root = NULL; in cset_alloc()
55 cs->cs_classes = NULL; in cset_alloc()
58 return (cs); in cset_alloc()
82 cs->cs_root = csn; in cset_add()
90 csn = cs->cs_root = cset_splay(cs->cs_root, ch); in cset_add()
114 cs->cs_root = ncsn; in cset_add()
156 cs->cs_root = cset_splay(cs->cs_root, ch); in cset_in_hard()
157 return (cs->cs_invert ^ (cset_rangecmp(cs->cs_root, ch) == 0)); in cset_in_hard()
[all …]
/illumos-gate/usr/src/uts/common/pcmcia/cis/
H A Dcis_handlers.c308 (void) strcpy(cs->pi[cs->ns++], cis_getstr(tp)); in cistpl_vers_1_handler()
1297 cs->nid = nid;
1679 cs->data.fax.cf[cs->data.fax.ncf] =
1691 cs->data.voice.sr[cs->data.voice.nsr] =
1693 cs->data.voice.sr[cs->data.voice.nsr] +=
1699 cs->data.voice.ss[cs->data.voice.nss] =
1701 cs->data.voice.ss[cs->data.voice.nss] +=
1707 cs->data.voice.sc[cs->data.voice.nsc] =
1875 cs->length = tl;
1878 cs->tpltg_tag[cs->length] = '\0';
[all …]
H A Dcis.c852 if (!cs->nS) in cis_convert_devspeed()
861 if (cs->nS < 10) { in cis_convert_devspeed()
862 tmanv = cs->nS * 10; in cis_convert_devspeed()
868 if ((!(tnS = ((cs->nS)/10))) || in cis_convert_devspeed()
881 tmanv = cs->nS; in cis_convert_devspeed()
882 cs->nS = tnS; in cis_convert_devspeed()
919 cis_convert_devsize(convert_size_t *cs) in cis_convert_devsize() argument
932 cs->devsize = ((((cs->bytes/cistpl_device_size[i]) - 1) << 3) | in cis_convert_devsize()
936 if ((cs->devsize & 7) == 7) in cis_convert_devsize()
938 cs->bytes = in cis_convert_devsize()
[all …]
/illumos-gate/usr/src/cmd/iconv/
H A Diconv_list.c71 codeset_t tmp, *cs; in cs_insert() local
78 if (cs != NULL) in cs_insert()
81 cs = calloc(1, sizeof (*cs)); in cs_insert()
82 if (cs == NULL) { in cs_insert()
108 codeset_t *cs; in cs_dump() local
113 for (cs = avl_first(&cs_avl); cs != NULL; in cs_dump()
114 cs = AVL_NEXT(&cs_avl, cs)) { in cs_dump()
133 codeset_t *cs; in cs_destroy() local
140 free(cs->cs_name); in cs_destroy()
141 free(cs); in cs_destroy()
[all …]
/illumos-gate/usr/src/lib/fm/libfmd_adm/common/
H A Dfmd_adm.c236 enum clnt_stat cs; in fmd_adm_stats_read() local
302 enum clnt_stat cs; in fmd_adm_module_iter() local
354 enum clnt_stat cs; in fmd_adm_module_load() local
375 enum clnt_stat cs; in fmd_adm_module_unload() local
396 enum clnt_stat cs; in fmd_adm_module_reset() local
417 enum clnt_stat cs; in fmd_adm_module_gc() local
437 enum clnt_stat cs; in fmd_adm_module_stats() local
467 enum clnt_stat cs; in fmd_adm_rsrc_count() local
506 enum clnt_stat cs; in fmd_adm_rsrc_iter() local
602 enum clnt_stat cs; in fmd_adm_rsrc_flush() local
[all …]
/illumos-gate/usr/src/common/mc/mc-amd/
H A Dmcamd_patounum.c204 for (cs = mcamd_cs_next(hdl, mc, NULL); cs != NULL; in cs_sparedto()
205 cs = mcamd_cs_next(hdl, mc, cs)) { in cs_sparedto()
215 if (cs != NULL) { in cs_sparedto()
225 return (cs); in cs_sparedto()
534 for (cs = mcamd_cs_next(hdl, mc, NULL); cs != NULL; in mc_bkdg_patounum()
535 cs = mcamd_cs_next(hdl, mc, cs)) { in mc_bkdg_patounum()
577 cs = sparecs; in mc_bkdg_patounum()
635 for (cs = mcamd_cs_next(hdl, mc, NULL); cs != NULL; in mc_patounum()
636 cs = mcamd_cs_next(hdl, mc, cs)) { in mc_patounum()
641 if (cs == NULL) in mc_patounum()
[all …]
H A Dmcamd_rowcol.c90 cs, MCAMD_PROP_NUM, &csp->num, in getcsprops()
91 cs, MCAMD_PROP_BASE_ADDR, &csp->base, in getcsprops()
92 cs, MCAMD_PROP_MASK, &csp->mask, in getcsprops()
97 "props for cs 0x%p\n", caller, cs); in getcsprops()
482 mcamd_node_t *cs; in mc_offset_to_pa() local
516 for (cs = mcamd_cs_next(hdl, dimm, NULL); cs != NULL; in mc_offset_to_pa()
517 cs = mcamd_cs_next(hdl, dimm, cs)) { in mc_offset_to_pa()
525 if (cs == NULL) { in mc_offset_to_pa()
554 for (cs = mcamd_cs_next(hdl, mc, NULL); cs != NULL; in mc_offset_to_pa()
555 cs = mcamd_cs_next(hdl, mc, cs)) { in mc_offset_to_pa()
[all …]
/illumos-gate/usr/src/cmd/oawk/
H A Db.c434 wchar_t cs, ce; in cgotofn() local
511 cs = HAT + 1; in cgotofn()
526 cs = HAT; in cgotofn()
551 ns, cs, in cgotofn()
635 ns, cs, in cgotofn()
652 ns, cs, in cgotofn()
661 cs = HAT; in cgotofn()
706 if ((ns != hatcn || cs != HAT) && ! ccln_member(ns, cs, in cgotofn()
761 s, cs, ce); in cgotofn()
867 cs = tcs; in insert_table()
[all …]
/illumos-gate/usr/src/cmd/sh/
H A Dexpand.c64 unsigned char *s, *cs; in expand() local
73 s = cs = as; in expand()
86 wc = (unsigned char)*cs; in expand()
89 cs += len; in expand()
115 cs--; in expand()
119 cs++; in expand()
128 if (cs == s) { in expand()
132 *cs = 0; in expand()
133 if (s == cs) in expand()
155 if (*cs == 0) in expand()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dset_charset.c72 int cs, local
96 && 0 <= (cs = strtol(char_set + 2, &rest, 10)) && cs <= 63
99 char_set_nm = tparm(char_set_names, cs);
102 for (cs = 0; cs <= 63; cs++)
104 (char_set_nm = tparm(char_set_names, cs))
109 if (cs > 63)
113 if (cs == 0)
125 if ((p = tparm(select_char_set, cs)) && *p && (p = Strdup(p))) {
128 if ((q = tparm(start_char_set_def, cs)) && *q) {
137 || cat_charset((char *)0, cs, type, putout) != -1
[all …]
/illumos-gate/usr/src/cmd/dumpcs/
H A Ddumpcs.c68 int cs; local
121 for (cs = 0; cs <= 3; cs++) {
122 if (csflag[cs] && eucw[cs] && scrw[cs]) {
125 (void) printf(" CS:%d\n", cs);
127 (void) csprint(cs, (int) eucw[cs], (int) scrw[cs]);
135 csprint(cs, bytes, columns) in csprint() argument
136 int cs, bytes, columns; in csprint()
151 if (cs > 0) {
155 if (cs == 2) {
159 if (cs == 3) {
/illumos-gate/usr/src/cmd/hal/probing/volume/
H A Dprobe-volume.c83 LibHalChangeSet *cs; in set_fstyp_properties() local
87 if ((cs = libhal_device_new_changeset (udi)) == NULL) { in set_fstyp_properties()
106 libhal_changeset_set_property_string (cs, "volume.label", ""); in set_fstyp_properties()
108 libhal_changeset_set_property_string (cs, "info.product", buf); in set_fstyp_properties()
116 libhal_changeset_set_property_string (cs, "volume.uuid", ""); in set_fstyp_properties()
119 libhal_device_commit_changeset (ctx, cs, &error); in set_fstyp_properties()
120 libhal_device_free_changeset (cs); in set_fstyp_properties()
229 LibHalChangeSet *cs; in probe_disc() local
346 if ((cs = libhal_device_new_changeset (udi)) == NULL) { in probe_disc()
361 libhal_device_commit_changeset (ctx, cs, &error); in probe_disc()
[all …]
/illumos-gate/usr/src/cmd/cron/
H A Dparse.c204 custr_t *cs = NULL; in next_field() local
206 if (custr_alloc(&cs) != 0) { in next_field()
212 if (custr_len(cs) > 0) { in next_field()
213 if (custr_appendc(cs, ',') != 0) { in next_field()
214 custr_free(cs); in next_field()
219 if (custr_append_printf(cs, "%u", elements[i]) != 0) { in next_field()
220 custr_free(cs); in next_field()
226 if (custr_len(cs) != 0) in next_field()
227 *ret = xstrdup(custr_cstr(cs)); in next_field()
228 custr_free(cs); in next_field()
/illumos-gate/usr/src/cmd/lp/lib/printers/
H A Dchkprinter.c52 char * cs in chkprinter() argument
55 chkprinter (type, cpi, lpi, len, wid, cs) in chkprinter()
61 *cs; in chkprinter()
87 if (cs && *cs && set_charset(cs, 0, type) != E_SUCCESS)
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dglob.c209 cs = as; in expand()
212 cs++; in expand()
213 while (letter(*cs) || digit(*cs) || *cs == '-') in expand()
215 if (!*cs || *cs == '/') { in expand()
227 if (*cs == 0) { in expand()
236 addpath(*cs++); in expand()
238 oldcs = cs; in expand()
239 while (cs > as && *cs != '/') in expand()
240 cs--, gpathp--; in expand()
241 if (*cs == '/') in expand()
[all …]

12345678