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

/illumos-gate/usr/src/lib/libc/port/locale/
H A Dfputws.c42 int nchars; local
54 nchars = wcslen(ws);
61 while (nchars > 0) {
64 while ((nbytes < (BUFSIZ - (MB_LEN_MAX * 2))) && nchars) {
75 nchars--;
/illumos-gate/usr/src/lib/libcmd/common/
H A Dwclib.c167 register Sfoff_t nchars; local
183 nlines = nwords = nchars = nbytes = 0;
205 if ((nchars - longest) > wp->longest)
206 wp->longest = nchars - longest;
220 nchars += (cp-side) - 1;
237 if ((nchars - longest) > wp->longest)
238 wp->longest = nchars - longest;
239 longest = nchars + 1;
250 nchars++;
253 nchars
[all...]
/illumos-gate/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++) {\
/illumos-gate/usr/src/cmd/grep/
H A Dgrep.c439 int nchars; local
474 nchars = ptrend - ptr + 1;
477 nchars = ptrend - ptr;
480 (void) fwrite(ptr, 1, nchars, stdout);
/illumos-gate/usr/src/cmd/sdiff/
H A Dsdiff.c91 static int nchars; /* Number of characters in left side - */ variable
371 /* nchars = num of chars including tabs */
379 putline(stdout, bp, nchars);
430 putline(stdout, bp, nchars);
435 putline(stdout, bp, nchars);
533 nchars = 0;
544 nchars++;
557 nchars++;
569 nchars++;
584 nchars
[all...]
/illumos-gate/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) argument
567 if (nchars > SNMP_NCHARS_IN_A_ROW)
568 nchars = SNMP_NCHARS_IN_A_ROW;
570 abuf[nchars] = 0;
571 for (i = 0; i < nchars; i++)
/illumos-gate/usr/src/cmd/banner/
H A Dbanner.c38 #define nchars 128 /* number of chars in char set */ macro
50 static char ctbl[nchars][nlines] = {
/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_dir.c1384 int nchars; local
1413 nchars = u16l + 1;
1416 nchars = PCLFNCHUNKSIZE;
1418 nchars *= sizeof (uint16_t);
1430 nameend -= nchars;
1432 set_long_fn_chunk(lep, nameend, nchars);
1436 nchars = PCLFNCHUNKSIZE * sizeof (uint16_t);
1448 int nchars; local
1518 nchars = PCFNAMESIZE;
1520 nchars
[all...]
/illumos-gate/usr/src/cmd/users/
H A Dusers.c341 allocstr(unsigned int nchars) argument
343 if (nchars > ALLOCBLKSZ) {
347 if ((laststraddr -= nchars) < nextblkaddr) {
352 laststraddr = nextblkaddr + ALLOCBLKSZ - nchars;
/illumos-gate/usr/src/lib/libnsl/nis/gen/
H A Dnis_subr.c345 size_t nchars; local
351 nchars = d - s;
352 if (bufsize < nchars + 1) {
355 (void) strncpy(buf, s, nchars);
356 buf[nchars] = '\0';
/illumos-gate/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))) {
/illumos-gate/usr/src/lib/libshell/common/edit/
H A Dvi.c1043 /*{ DELETE( nchars, mode )
1045 * Delete nchars from the virtual space and leave cur_virt positioned
1054 static void cdelete(Vi_t *vp,register int nchars, int mode) argument
1064 if( nchars > 0 )
1068 if( (cur_virt-- + nchars) > last_virt )
1070 /*** set nchars to number actually deleted ***/
1071 nchars = last_virt - cur_virt;
1078 i = cp[nchars];
1079 cp[nchars] = 0;
1081 cp[nchars]
1770 putstring(register Vi_t *vp,register int col, register int nchars) argument
[all...]
/illumos-gate/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_request.c2806 uint_t nchars; local
2848 nchars = strlen(s_ptr);
2850 (nscan != nchars)) {
2867 nchars = strlen(d_ptr);
2869 (nscan != nchars)) {
2888 nchars = strlen(t_ptr + 1) + 2;
2889 if ((target_str = (char *)malloc(nchars+1)) == NULL) {
2897 target_str[nchars] = '\0';
2900 (nscan != nchars)) {
2923 nchars
[all...]
/illumos-gate/usr/src/cmd/more/
H A Dmore.c499 register int nchars; local
505 if ((nchars = getaline (f, &length)) == EOF)
523 if (nchars < promptlen)
524 prmpt_erase (nchars); /* prmpt_erase () sets promptlen to 0 */
530 if (nchars < Mcol || !fold_opt)
532 if (nchars == STOP)
/illumos-gate/usr/src/cmd/egrep/
H A Degrep.y793 long nchars;
931 nchars = blkno - (buf + count - ptrend) - 2;
933 nchars++;
934 printf("%lld:", nchars/BLKSIZE);
939 nchars = ptrend - ptr + 1;
941 nchars = ptrend - ptr;
942 fwrite(ptr, (size_t)1, (size_t)nchars, stdout);
/illumos-gate/usr/src/cmd/man/
H A Dmakewhatis.c173 * for nchars more characters.
176 sbuf_need(struct sbuf *sbuf, int nchars) argument
182 while (grow < nchars) {
187 if (sbuf->end + nchars > sbuf->last) {
/illumos-gate/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);

Completed in 164 milliseconds