Searched refs:lastc (Results 1 - 22 of 22) sorted by relevance

/illumos-gate/usr/src/lib/libsocket/inet/
H A Dlink_addr.c73 char lastc = ':'; local
88 if (lastc == ':')
101 lastc = cval;
103 if ((lastc == ':') || (cval != '\0' && !isspace(cval)) ||
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_get.c41 short lastc = '\n'; variable
113 return (lastc = EOF);
118 return (lastc = c);
125 return (lastc = EOF);
140 lastc = EOF;
142 lastc = inputline[0];
146 return (lastc);
H A Dex.h237 extern short lastc; /* Last character ret'd from cmd input */
291 #define lastchar() lastc
298 #define setlastchar(c) lastc = c
/illumos-gate/usr/src/cmd/plimit/
H A Dplimit.c242 char *lastc; local
250 char *minutes = strtok_r(arg, " \t:", &lastc);
251 char *seconds = strtok_r(NULL, " \t", &lastc);
254 if (seconds != NULL && strtok_r(NULL, " \t", &lastc) != NULL)
256 value = strtoull(minutes, &lastc, 10);
257 if (*lastc != '\0' || value > RLIM64_INFINITY / 60)
262 sec = strtoull(seconds, &lastc, 10);
263 if (*lastc != '\0' || sec > 60)
273 switch (*(lastc = arg + strlen(arg) - 1)) {
276 *lastc
319 char *lastc; local
[all...]
/illumos-gate/usr/src/cmd/pwck/
H A Dpwck.c76 char *str, *lastc; local
174 uid = strtol(str, &lastc, 10);
175 if (lastc != str + (delim[2] - delim[1]) - 1 ||
183 gid = strtol(str, &lastc, 10);
184 if (lastc != str + (delim[3] - delim[2]) - 1 ||
/illumos-gate/usr/src/cmd/mail/
H A Dcopylet.c75 char buf[LSIZE], lastc; local
115 lastc = buf[n-1];
117 pushrest = (lastc != '\n');
133 pushrest = (lastc != '\n');
153 if (lastc != '\n') {
154 if (fwrite(&lastc,1,1,f) != 1) {
290 lastc = buf[n-1];
293 pushrest = (lastc != '\n');
334 pushrest = (lastc != '\n');
/illumos-gate/usr/src/cmd/mailx/
H A Dedit.c95 register int c, lastc = '\n'; local
228 blank = lastc == '\n';
230 lastc = c;
H A Dcmd4.c193 register int c, lastc = '\n'; local
240 blank = lastc == '\n';
242 lastc = c;
/illumos-gate/usr/src/cmd/fold/
H A Dfold.c64 static int lastc = 0; variable
194 lastc = c;
247 (!bflg && (lastc != '\b') && (c != '\b') &&
248 (lastc != '\n') && (c != '\n')))) {
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dlex.c99 int lastc; member in struct:lexdata
117 ((lp->lexd.lex_match[lp->lexd.level++]=lp->lexd.lastc),\
118 lp->lexd.lastc=(((s)<<CHAR_BIT)|(c))))
119 #define oldmode(lp) (lp->lexd.lastc>>CHAR_BIT)
120 #define endchar(lp) (lp->lexd.lastc&0xff)
121 #define setchar(lp,c) (lp->lexd.lastc = ((lp->lexd.lastc&~0xff)|(c)))
122 #define poplevel(lp) (lp->lexd.lastc=lp->lexd.lex_match[--lp->lexd.level])
276 lp->lexd.lex_state = lp->lexd.lastc=0;
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dengine.c764 wint_t lastc; /* previous c */ local
789 lastc = c;
798 /* is there an EOL and/or BOL between lastc and c? */
801 if ((lastc == '\n' && m->g->cflags&REG_NEWLINE) ||
802 (lastc == OUT && !(m->eflags&REG_NOTBOL))) {
819 if ((flagch == BOL || (lastc != OUT && !ISWORD(lastc))) &&
823 if ((lastc != OUT && ISWORD(lastc)) &&
866 wint_t lastc; /* previou local
[all...]
/illumos-gate/usr/src/tools/cscope-fast/
H A Dscanner.l824 int c, lastc;
828 lastc = '\0';
830 (c != '/' || lastc != '*')) { /* fewer '/'s */
834 lastc = c;
H A Dcgrep.c978 int lastc = -1; local
990 lastc = *pat->loc1++;
996 if (lastc < 0) CCL_SET(tab, pat->cmap['-']);
1001 for (i = *pat->loc1; i >= lastc; i--) {
1011 lastc = *pat->loc1;
1025 lastc = i;
1030 *tab = (char)lastc;
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/
H A Ddpost.c394 int lastc = 0; /* and its name (or index) */ variable
2299 * need to tell the printer to have character c printed. lastc records the real
2309 lastc = c; /* charlib() needs the name not the code */
2698 if ( lastc < 128 ) { /* just a simple ASCII character */
2699 sprintf(tname, "%.3o", lastc);
2701 } else name = &chname[chtab[lastc - 128]];
2703 if ( downloaded[lastc] == 0 ) {
2706 downloaded[lastc] = 1;
2711 if ( downloaded[lastc] == 1 ) {
/illumos-gate/usr/src/cmd/modload/
H A Dplcysubr.c116 int c, lastc, i; local
132 while (lastc = c, (c = getc(fp)) != EOF) {
145 if (off == -1 || lastc == '\\')
147 } else if (lastc == '\n' && off == -1) {
175 if (lastc != '\n' || off != -1)
/illumos-gate/usr/src/cmd/tip/
H A Dcmds.c283 char *pc, lastc, rc; local
314 lastc = '\0';
335 lastc = c;
362 if (lastc != '\n' && !boolean(value(RAWFTP)))
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c1191 int lastc; local
1270 lastc = '\n';
1273 if ((lastc == '\r') && (c != '\n'))
1276 lastc = c;
1282 if (lastc != '\n')
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dauthtok_check.c450 char lastc = '\0'; local
471 if (*w == lastc) {
477 lastc = *w;
/illumos-gate/usr/src/cmd/rmvolmgr/
H A Drmm_common.c166 char lastc; local
173 lastc = *p;
204 *p = lastc;
/illumos-gate/usr/src/cmd/init/
H A Dinit.c1519 int c, lastc, state; local
1606 for (proceed = TRUE, ptr = shcmd, state = ID, lastc = '\0';
1608 lastc = c, c = fgetc(fp_inittab)) {
1625 lastc = ' ';
1747 if (c == '\n' && lastc != '\\') {
1766 if (c == '\\' && lastc == '\\')
/illumos-gate/usr/src/lib/libtecla/common/
H A Dhistory.c2759 char lastc = '\0'; /* The previous character in the pattern */ local
2806 if(c >= lastc && c <= pstr->c)
2818 lastc = pstr->c;
/illumos-gate/usr/src/cmd/ed/
H A Ded.c181 static int lastc; variable
716 lastc = '\n';
1199 lastc = '\n';
1286 lastc = '\n';
1288 peekc = lastc;
1289 if (lastc)
1308 if (lastc = peekc) {
1310 return (lastc);
1313 if ((lastc = (unsigned char)*globp++) != 0)
1314 return (lastc);
[all...]

Completed in 133 milliseconds