Home
last modified time | relevance | path

Searched refs:lastc (Results 1 – 23 of 23) sorted by relevance

/illumos-gate/usr/src/cmd/plimit/
H A Dplimit.c242 char *lastc; in limit_value() local
256 value = strtoull(minutes, &lastc, 10); in limit_value()
262 sec = strtoull(seconds, &lastc, 10); in limit_value()
263 if (*lastc != '\0' || sec > 60) in limit_value()
273 switch (*(lastc = arg + strlen(arg) - 1)) { in limit_value()
276 *lastc = '\0'; in limit_value()
283 *lastc = '\0'; in limit_value()
290 *lastc = '\0'; in limit_value()
305 value = strtoull(arg, &lastc, 10); in limit_value()
319 char *lastc; in parse_limits() local
[all …]
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_get.c41 short lastc = '\n'; variable
113 return (lastc = EOF); in getach()
118 return (lastc = c); in getach()
125 return (lastc = EOF); in getach()
140 lastc = EOF; in getach()
142 lastc = inputline[0]; in getach()
146 return (lastc); in getach()
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/mail/
H A Dcopylet.c74 char buf[LSIZE], lastc; in xxxcopylet() local
113 lastc = buf[n-1]; in xxxcopylet()
115 pushrest = (lastc != '\n'); in xxxcopylet()
131 pushrest = (lastc != '\n'); in xxxcopylet()
151 if (lastc != '\n') { in xxxcopylet()
152 if (fwrite(&lastc,1,1,f) != 1) { in xxxcopylet()
288 lastc = buf[n-1]; in xxxcopylet()
291 pushrest = (lastc != '\n'); in xxxcopylet()
331 pushrest = (lastc != '\n'); in xxxcopylet()
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dlink_addr.c71 char lastc = ':'; in _link_aton() local
86 if (lastc == ':') in _link_aton()
99 lastc = cval; in _link_aton()
101 if ((lastc == ':') || (cval != '\0' && !isspace(cval)) || in _link_aton()
/illumos-gate/usr/src/cmd/pwck/
H A Dpwck.c76 char *str, *lastc; in main() local
174 uid = strtol(str, &lastc, 10); in main()
175 if (lastc != str + (delim[2] - delim[1]) - 1 || in main()
183 gid = strtol(str, &lastc, 10); in main()
184 if (lastc != str + (delim[3] - delim[2]) - 1 || in main()
/illumos-gate/usr/src/cmd/fold/
H A Dfold.c62 static int lastc = 0; variable
192 lastc = c; in main()
245 (!bflg && (lastc != '\b') && (c != '\b') && in putch()
246 (lastc != '\n') && (c != '\n')))) { in putch()
/illumos-gate/usr/src/cmd/mailx/
H A Dedit.c93 register int c, lastc = '\n'; in edit1() local
226 blank = lastc == '\n'; in edit1()
228 lastc = c; in edit1()
H A Dcmd4.c191 int c, lastc = '\n'; in loadmsg() local
238 blank = lastc == '\n'; in loadmsg()
240 lastc = c; in loadmsg()
/illumos-gate/usr/src/cmd/ed/
H A Ded.c180 static int lastc; variable
719 lastc = '\n'; in commands()
1211 lastc = '\n'; in onintr()
1298 lastc = '\n'; in error()
1300 peekc = lastc; in error()
1301 if (lastc) in error()
1323 return (lastc); in getchr()
1334 return (lastc); in getchr()
1410 lastc = '\n'; in getfile()
1500 lastc = '\n'; in append()
[all …]
/illumos-gate/usr/src/cmd/modload/
H A Dplcysubr.c116 int c, lastc, i; in fgetline() local
132 while (lastc = c, (c = getc(fp)) != EOF) { in fgetline()
145 if (off == -1 || lastc == '\\') in fgetline()
147 } else if (lastc == '\n' && off == -1) { in fgetline()
175 if (lastc != '\n' || off != -1) in fgetline()
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/
H A Ddpost.c392 int lastc = 0; /* and its name (or index) */ variable
2307 lastc = c; /* charlib() needs the name not the code */ in put1()
2696 if ( lastc < 128 ) { /* just a simple ASCII character */ in charlib()
2697 sprintf(tname, "%.3o", lastc); in charlib()
2699 } else name = &chname[chtab[lastc - 128]]; in charlib()
2701 if ( downloaded[lastc] == 0 ) { in charlib()
2704 downloaded[lastc] = 1; in charlib()
2709 if ( downloaded[lastc] == 1 ) { in charlib()
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dengine.c798 wint_t lastc; /* previous c */ in walk() local
824 lastc = c; in walk()
837 if ((lastc == '\n' && m->g->cflags&REG_NEWLINE) || in walk()
838 (lastc == OUT && !(m->eflags&REG_NOTBOL))) { in walk()
855 if ((flagch == BOL || (lastc != OUT && !ISWORD(lastc))) && in walk()
859 if ((lastc != OUT && ISWORD(lastc)) && in walk()
/illumos-gate/usr/src/tools/cscope-fast/
H A Dscanner.l822 int c, lastc;
826 lastc = '\0';
828 (c != '/' || lastc != '*')) { /* fewer '/'s */
832 lastc = c;
H A Dcgrep.c974 int lastc = -1; in ccl() local
986 lastc = *pat->loc1++; in ccl()
991 if (lastc < 0) CCL_SET(tab, pat->cmap['-']); in ccl()
996 for (i = *pat->loc1; i >= lastc; i--) { in ccl()
1006 lastc = *pat->loc1; in ccl()
1020 lastc = i; in ccl()
1025 *tab = (char)lastc; in ccl()
/illumos-gate/usr/src/cmd/tip/
H A Dcmds.c293 char *pc, lastc, rc; in transmit() local
324 lastc = '\0'; in transmit()
345 lastc = c; in transmit()
372 if (lastc != '\n' && !boolean(value(RAWFTP))) in transmit()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c1195 int lastc; in netfinger() local
1274 lastc = '\n'; in netfinger()
1277 if ((lastc == '\r') && (c != '\n')) in netfinger()
1280 lastc = c; in netfinger()
1286 if (lastc != '\n') in netfinger()
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dauthtok_check.c451 char lastc = '\0'; in check_composition() local
472 if (*w == lastc) { in check_composition()
478 lastc = *w; in check_composition()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dlex.c104 int lastc; member
122 ((lp->lexd.lex_match[lp->lexd.level++]=lp->lexd.lastc),\
123 lp->lexd.lastc=(((s)<<CHAR_BIT)|(c))))
124 #define oldmode(lp) (lp->lexd.lastc>>CHAR_BIT)
125 #define endchar(lp) (lp->lexd.lastc&0xff)
126 #define setchar(lp,c) (lp->lexd.lastc = ((lp->lexd.lastc&~0xff)|(c)))
127 #define poplevel(lp) (lp->lexd.lastc=lp->lexd.lex_match[--lp->lexd.level])
285 lp->lexd.lex_state = lp->lexd.lastc=0; in sh_lexopen()
H A Dmacro.c2039 char lastc=0, *savptr = stkfreeze(stkp,0); in comsubst() local
2222 else if(lastc) in comsubst()
2224 mac_copy(mp,&lastc,1); in comsubst()
2225 lastc = 0; in comsubst()
2236 lastc = str[c]; in comsubst()
2253 if(lastc) in comsubst()
2255 mac_copy(mp,&lastc,1); in comsubst()
2256 lastc = 0; in comsubst()
/illumos-gate/usr/src/cmd/rmvolmgr/
H A Drmm_common.c166 char lastc; in rmm_hal_volume_find() local
173 lastc = *p; in rmm_hal_volume_find()
204 *p = lastc; in rmm_hal_volume_find()
/illumos-gate/usr/src/cmd/init/
H A Dinit.c1531 int c, lastc, state; in getcmd() local
1618 for (proceed = TRUE, ptr = shcmd, state = ID, lastc = '\0'; in getcmd()
1620 lastc = c, c = fgetc(fp_inittab)) { in getcmd()
1637 lastc = ' '; in getcmd()
1759 if (c == '\n' && lastc != '\\') { in getcmd()
1778 if (c == '\\' && lastc == '\\') in getcmd()
/illumos-gate/usr/src/lib/libtecla/common/
H A Dhistory.c2758 char lastc = '\0'; /* The previous character in the pattern */ in glh_matches_range() local
2805 if(c >= lastc && c <= pstr->c) in glh_matches_range()
2817 lastc = pstr->c; in glh_matches_range()