Home
last modified time | relevance | path

Searched refs:nchars (Results 1 – 17 of 17) sorted by relevance

/titanic_41/usr/src/lib/libcmd/common/
H A Dwclib.c167 register Sfoff_t nchars; in wc_count() local
183 nlines = nwords = nchars = nbytes = 0; in wc_count()
205 if ((nchars - longest) > wp->longest) in wc_count()
206 wp->longest = nchars - longest; in wc_count()
220 nchars += (cp-side) - 1; in wc_count()
237 if ((nchars - longest) > wp->longest) in wc_count()
238 wp->longest = nchars - longest; in wc_count()
239 longest = nchars + 1; in wc_count()
250 nchars++; in wc_count()
253 nchars = nbytes; in wc_count()
[all …]
/titanic_41/usr/src/lib/libc/port/locale/
H A Dfputws.c42 int nchars; in _fputws_impl() local
54 nchars = wcslen(ws); in _fputws_impl()
61 while (nchars > 0) { in _fputws_impl()
64 while ((nbytes < (BUFSIZ - (MB_LEN_MAX * 2))) && nchars) { in _fputws_impl()
75 nchars--; in _fputws_impl()
/titanic_41/usr/src/cmd/sdiff/
H A Dsdiff.c91 static int nchars; /* Number of characters in left side - */ variable
379 putline(stdout, bp, nchars); in put1()
430 putline(stdout, bp, nchars); in put2()
435 putline(stdout, bp, nchars); in put2()
533 nchars = 0; in getlen()
544 nchars++; in getlen()
557 nchars++; in getlen()
569 nchars++; in getlen()
584 nchars += len; in getlen()
/titanic_41/usr/src/cmd/grep/
H A Dgrep.c439 int nchars; in succeed() local
474 nchars = ptrend - ptr + 1; in succeed()
477 nchars = ptrend - ptr; in succeed()
480 (void) fwrite(ptr, 1, nchars, stdout); in succeed()
/titanic_41/usr/src/cmd/picl/plugins/sun4v/lib/snmp/
H A Ddebug.c155 static void snmp_get_dumpchars(uchar_t *abuf, uchar_t *p, int nchars);
563 snmp_get_dumpchars(uchar_t *abuf, uchar_t *p, int nchars) in snmp_get_dumpchars() argument
567 if (nchars > SNMP_NCHARS_IN_A_ROW) in snmp_get_dumpchars()
568 nchars = SNMP_NCHARS_IN_A_ROW; in snmp_get_dumpchars()
570 abuf[nchars] = 0; in snmp_get_dumpchars()
571 for (i = 0; i < nchars; i++) in snmp_get_dumpchars()
/titanic_41/usr/src/test/libc-tests/tests/wctype/
H A Dwctype_test.c45 size_t nchars = (sizeof (x ## _should) / sizeof (*x ## _should)) - 1;\
46 for (wint_t *wc = x ## _should; wc < x ## _should + nchars; wc++) {\
/titanic_41/usr/src/uts/common/fs/pcfs/
H A Dpc_dir.c1379 int nchars; in pc_name_to_pcdir() local
1408 nchars = u16l + 1; in pc_name_to_pcdir()
1411 nchars = PCLFNCHUNKSIZE; in pc_name_to_pcdir()
1413 nchars *= sizeof (uint16_t); in pc_name_to_pcdir()
1425 nameend -= nchars; in pc_name_to_pcdir()
1427 set_long_fn_chunk(lep, nameend, nchars); in pc_name_to_pcdir()
1431 nchars = PCLFNCHUNKSIZE * sizeof (uint16_t); in pc_name_to_pcdir()
1443 int nchars; in generate_short_name() local
1513 nchars = PCFNAMESIZE; in generate_short_name()
1515 nchars--; /* ~ */ in generate_short_name()
[all …]
/titanic_41/usr/src/cmd/banner/
H A Dbanner.c38 #define nchars 128 /* number of chars in char set */ macro
50 static char ctbl[nchars][nlines] = {
/titanic_41/usr/src/cmd/users/
H A Dusers.c341 allocstr(unsigned int nchars) in allocstr() argument
343 if (nchars > ALLOCBLKSZ) { in allocstr()
347 if ((laststraddr -= nchars) < nextblkaddr) { in allocstr()
352 laststraddr = nextblkaddr + ALLOCBLKSZ - nchars; in allocstr()
/titanic_41/usr/src/lib/libnsl/nis/gen/
H A Dnis_subr.c345 size_t nchars; in nis_leaf_of_r() local
351 nchars = d - s; in nis_leaf_of_r()
352 if (bufsize < nchars + 1) { in nis_leaf_of_r()
355 (void) strncpy(buf, s, nchars); in nis_leaf_of_r()
356 buf[nchars] = '\0'; in nis_leaf_of_r()
/titanic_41/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_request.c2806 uint_t nchars; in create_device_ctd_spec() local
2848 nchars = strlen(s_ptr); in create_device_ctd_spec()
2850 (nscan != nchars)) { in create_device_ctd_spec()
2867 nchars = strlen(d_ptr); in create_device_ctd_spec()
2869 (nscan != nchars)) { in create_device_ctd_spec()
2888 nchars = strlen(t_ptr + 1) + 2; in create_device_ctd_spec()
2889 if ((target_str = (char *)malloc(nchars+1)) == NULL) { in create_device_ctd_spec()
2897 target_str[nchars] = '\0'; in create_device_ctd_spec()
2900 (nscan != nchars)) { in create_device_ctd_spec()
2923 nchars = strlen(device_str); in create_device_ctd_spec()
[all …]
/titanic_41/usr/src/cmd/lp/lib/filters/
H A Dinsfilter.c753 register size_t nchars; local
766 for (nchars = 0, pf = pipeline; pf; pf = pf->next)
768 nchars += n + 1; /* +1 for '|' or ending null */
770 if (!(ret = p = Malloc(nchars))) {
/titanic_41/usr/src/lib/libshell/common/edit/
H A Dvi.c1054 static void cdelete(Vi_t *vp,register int nchars, int mode) in cdelete() argument
1064 if( nchars > 0 ) in cdelete()
1068 if( (cur_virt-- + nchars) > last_virt ) in cdelete()
1071 nchars = last_virt - cur_virt; in cdelete()
1078 i = cp[nchars]; in cdelete()
1079 cp[nchars] = 0; in cdelete()
1081 cp[nchars] = i; in cdelete()
1088 gencpy(cp,cp+nchars); in cdelete()
1089 last_virt -= nchars; in cdelete()
1770 static void putstring(register Vi_t *vp,register int col, register int nchars) in putstring() argument
[all …]
/titanic_41/usr/src/cmd/egrep/
H A Degrep.y793 long nchars; in execute() local
931 nchars = blkno - (buf + count - ptrend) - 2; in execute()
933 nchars++; in execute()
934 printf("%lld:", nchars/BLKSIZE); in execute()
939 nchars = ptrend - ptr + 1; in execute()
941 nchars = ptrend - ptr; in execute()
942 fwrite(ptr, (size_t)1, (size_t)nchars, stdout); in execute()
/titanic_41/usr/src/cmd/man/
H A Dmakewhatis.c176 sbuf_need(struct sbuf *sbuf, int nchars) in sbuf_need() argument
182 while (grow < nchars) { in sbuf_need()
187 if (sbuf->end + nchars > sbuf->last) { in sbuf_need()
/titanic_41/usr/src/cmd/more/
H A Dmore.c499 register int nchars; in screen() local
505 if ((nchars = getaline (f, &length)) == EOF) in screen()
523 if (nchars < promptlen) in screen()
524 prmpt_erase (nchars); /* prmpt_erase () sets promptlen to 0 */ in screen()
530 if (nchars < Mcol || !fold_opt) in screen()
532 if (nchars == STOP) in screen()
/titanic_41/usr/src/cmd/pg/
H A Dpg.c161 static off_t nchars; /* return from getaline in find() */ variable
1371 while ((nchars = getaline(f)) != EOF) {
1377 if (nchars != EOF)
1398 nchars = getaline(f);