Searched refs:linebuf (Results 1 - 25 of 84) sorted by relevance

1234

/illumos-gate/usr/src/cmd/vi/port/
H A Dex_vops3.c85 strcpy(save, linebuf);
113 if (linebuf[0] == 0) {
117 while (linebuf[0] == 0);
120 linebuf[0] = 0;
121 wcursor = linebuf;
165 if (!pastatom || wcursor == linebuf && endPS())
168 if (linebuf[0] == 0) {
172 while (linebuf[0] == 0);
182 if (dir < 0 && (wdot != llimit || wcursor != linebuf)) {
190 if (linebuf[
[all...]
H A Dex_vops.c74 CP(vutmp, linebuf);
75 vUD1 = linebuf; vUD2 = strend(linebuf);
78 vUA1 = linebuf; vUA2 = strend(linebuf);
90 cursor = linebuf;
168 strcpy(vutmp, linebuf);
189 temp[vUA2 - linebuf] = 0;
190 for (cp = &temp[vUA1 - linebuf]; *cp;) {
211 if (cursor > linebuf
[all...]
H A Dex_voper.c433 wcursor = linebuf;
485 wcursor = lastchr(linebuf, wcursor);
509 wcursor = vskipwh(linebuf);
527 wcursor = linebuf;
532 if (linebuf[0]) {
533 wcursor = strend(linebuf);
534 wcursor = lastchr(linebuf, wcursor);
537 wcursor = linebuf;
559 wcursor = lastchr(linebuf, wcursor);
562 if (margin() && opf == vmove || wcursor < linebuf) {
[all...]
H A Dex_vwind.c62 * context or save linebuf as current line.
480 if(curs >= strend(linebuf)) {
481 if(!*linebuf)
482 wcursor = linebuf;
484 wcursor = strend(linebuf);
485 wcursor = lastchr(linebuf, wcursor);
489 j = wcursor - linebuf;
490 for(wcursor = linebuf; wcursor - linebuf < j; ) {
494 if(wcursor - linebuf >
[all...]
H A Dex_subr.c98 cp = &linebuf[LBSIZE - 2];
111 cp = &linebuf[LBSIZE - 2];
112 return (nqcolumn(lastchr(linebuf, cp), (unsigned char *)0));
184 if (*cp == 0 && i == indent && linebuf[0] == 0) {
394 unsigned char *cp = linebuf;
418 strcpy(linebuf, seekpt);
573 if(lim == linebuf - 1 || lim == &linebuf[LBSIZE-2])
619 if(lim == linebuf - 1 || lim == &linebuf[LBSIZ
[all...]
H A Dex_get.c236 cp = linebuf;
245 if (linebuf[0] == '.' && linebuf[1] == 0)
300 getaline(*addr), lastin = smunch(0, linebuf);
/illumos-gate/usr/src/tools/ctf/dwarf/common/
H A Ddwarf_line2.c67 Dwarf_Line *linebuf; local
69 res = _dwarf_internal_srclines(die, &linebuf, &lcount, /* addrlist=
78 dwarf_srclines_dealloc(dbg, linebuf, lcount);
85 dwarf_srclines_dealloc(dbg, linebuf, lcount);
95 laddrs[i] = linebuf[i]->li_address;
96 loffsets[i] = linebuf[i]->li_addr_line.li_offset;
98 dwarf_srclines_dealloc(dbg, linebuf, lcount);
/illumos-gate/usr/src/cmd/sgs/rtld.4.x/
H A Drtsubrs.c124 char linebuf[128]; local
126 doprf(fd, fmt, adx, linebuf);
130 doprf(fd, fmt, adx, linebuf)
134 char *linebuf;
143 if (lbp >= &linebuf[128]) { \
144 _write(fd, linebuf, lbp - &linebuf[0]); \
145 lbp = &linebuf[0]; \
150 lbp = &linebuf[0];
154 _write(fd, linebuf, lb
[all...]
/illumos-gate/usr/src/cmd/mailx/
H A Daux.c147 char linebuf[LINESIZE]; local
154 if (readline(ibuf, linebuf) < 0)
157 while ((lc = gethfield(ibuf, linebuf, lc)) >= 0)
158 if (ishfield(linebuf, field))
159 r = (*add)(r, hcontents(linebuf));
172 char linebuf[],
182 if (readline(f, linebuf) < 0)
185 if (strlen(linebuf) == 0)
187 if (isspace(linebuf[0]))
189 if (!headerp(linebuf))
170 gethfield( register FILE *f, char linebuf[], register long rem) argument
239 ishfield(char linebuf[], char field[]) argument
413 blankline(const char linebuf[]) argument
596 char linebuf[LINESIZE]; local
[all...]
H A Dcollect.c62 static int stripnulls(register char *linebuf, register int nread);
100 char linebuf[LINESIZE+1], *cp; local
243 if ((nread = getaline(linebuf,LINESIZE,stdin,&hasnulls)) == NULL) {
255 if (intty && equal(".\n", linebuf) &&
266 if (write(fileno(obuf),linebuf,nread) != nread)
270 if (linebuf[0] == '\n') {
275 if (!headerp(linebuf)) {
281 nread = stripnulls(linebuf, nread);
294 if (strlen(linebuf) + strlen(cp2) >=
297 cp = &linebuf[strle
1273 register char *cp, *cp2, *linebuf; local
1309 register char *linebuf; local
1373 stripnulls(register char *linebuf, register int nread) argument
[all...]
H A Dfio.c67 char linebuf[LINESIZE]; local
103 while ((n = getln(linebuf, sizeof (linebuf), ibuf)) > 0) {
108 hdr = inhead && (headerp(linebuf) ||
109 (linebuf[0] == ' ' || linebuf[0] == '\t'));
117 if (fwrite(linebuf, 1, (int)clen, otf) !=
122 l += linecount(linebuf, clen);
128 memcpy(linebuf, linebuf
398 readline(FILE *ibuf, char *linebuf) argument
[all...]
H A Dhead.c64 is_headline(const char *linebuf) argument
69 if (strncmp("From ", linebuf, 5) != 0) {
73 if (headline_alloc(&hl) != 0 || parse_headline(linebuf, hl) != 0) {
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_printer.c121 getprinterentry(char *linebuf, int linelen, char *ns) argument
127 NSS_XbyY_INIT(&arg, linebuf, linebuf, linelen, str2printer);
137 getprinterbyname(char *name, char *linebuf, int linelen, char *ns) argument
143 NSS_XbyY_INIT(&arg, linebuf, linebuf, linelen, str2printer);
/illumos-gate/usr/src/cmd/msgfmt/
H A Dcheck_header.c89 char *linebuf; local
99 linebuf = NULL;
103 ln_size = get_one_line(&linebuf, &mbuf, &size);
108 p = linebuf;
111 ln_size = get_one_line(&linebuf, &mbuf, &size);
116 p = linebuf;
152 ln_size = get_one_line(&linebuf, &mbuf, &size);
157 p = linebuf;
295 ln_size = get_one_line(&linebuf, &mbuf, &size);
300 p = linebuf;
[all...]
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/
H A Dds_util.c58 char linebuf[LINEBUFLEN]; local
69 linep = linebuf;
136 linebuf[LINEBUFLEN - bufleft] = 0;
138 dprintf("%s\n", linebuf);
140 linep = linebuf;
/illumos-gate/usr/src/cmd/exstr/
H A Dexstr.c243 char linebuf[BUFSIZ]; local
262 inp = linebuf;
264 linebuf[0] = '\0';
349 } else if (*linebuf != '\0')
350 (void) fputs(linebuf, stdout);
352 inp = linebuf;
353 if (fgets(linebuf,
354 sizeof (linebuf), fi) == (char *)NULL) {
379 if (fgets(linebuf,
380 sizeof (linebuf), f
[all...]
/illumos-gate/usr/src/ucbcmd/sed/
H A Dsed1.c133 if((execp = gline(linebuf)) == 0) {
214 for(p1 = linebuf; p1 < spend; p1++)
237 p1 = linebuf;
274 lp = linebuf;
297 loc2 = sp - genbuf + linebuf;
305 lp = linebuf;
359 p1 = p2 = linebuf;
379 p1 = linebuf;
390 if (p1 == &linebuf[LBSIZE+1]) {
400 p2 = linebuf;
[all...]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dbootparams_getbyname.c48 char *linebuf, /* buffer to put the answer in */
49 int linelen /* max # of bytes to put into linebuf */
55 NSS_XbyY_INIT(&arg, linebuf, linebuf, linelen, str2bootent);
46 bootparams_getbyname( char *name, char *linebuf, int linelen ) argument
/illumos-gate/usr/src/psm/stand/bootlst/common/
H A Dbootlst.c139 char linebuf[MAX_CMDLINE]; local
154 while (fgets(linebuf, MAX_CMDLINE, file)) {
155 cp = trim_white_space(linebuf);
191 while (cons_gets(linebuf, MAX_CMDLINE)) {
193 cp = trim_white_space(linebuf);
/illumos-gate/usr/src/cmd/dumpcs/
H A Ddumpcs.c51 static char linebuf[SCRWID / 2 * (MB_LEN_MAX + 1)]; variable
165 (void) strcpy(linebuf, "");
168 (void) printf("\n%s", linebuf);
209 if (*linebuf) {
211 (void) printf("\n%s", linebuf);
219 (void) sprintf(linebuf, "%lx ",
224 (void) sprintf(linebuf, "%lx ", wc);
237 (void) strcat(linebuf, prep);
239 (void) strcat(linebuf, " ");
241 (void) strcat(linebuf, pre
[all...]
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/
H A Dfksmbd_shr.c66 char linebuf[1024]; local
77 while ((p = fgets(linebuf, sizeof (linebuf), fp)) != NULL) {
/illumos-gate/usr/src/lib/fm/libdiagcode/common/
H A Ddiagcode.c98 static const char *keymatch(const char *linebuf, const char *key[]);
150 char linebuf[DICTMAXLINE]; /* line read from dict */ local
236 while (fgets(linebuf, DICTMAXLINE, dhp->fp) != NULL) {
238 if (*linebuf == '\n' || *linebuf == '#')
242 if (strncmp(linebuf, Header, sizeof (Header) - 1)) {
257 startparse(&pstate, &linebuf[sizeof (Header) - 1]);
382 char linebuf[DICTMAXLINE]; /* line read from dict */ local
403 while (fgets(linebuf, DICTMAXLINE, dhp->fp) != NULL) {
405 if (*linebuf
442 char linebuf[DICTMAXLINE]; local
655 keymatch(const char *linebuf, const char *key[]) argument
[all...]
/illumos-gate/usr/src/cmd/vi/misc/
H A Dxstr.c141 char linebuf[BUFSIZ]; local
147 if (fgets(linebuf, sizeof (linebuf), stdin) == NULL) {
155 if (linebuf[0] == '#') {
156 if (linebuf[1] == ' ' && isdigit(linebuf[2]))
157 printf("#line%s", &linebuf[1]);
159 printf("%s", linebuf);
162 for (cp = linebuf; c = *cp++; ) {
/illumos-gate/usr/src/cmd/xstr/
H A Dxstr.c123 char linebuf[BUFSIZ]; variable
135 if (fgets(linebuf, sizeof (linebuf), stdin) == NULL) {
143 if (linebuf[0] == '#') {
144 if (linebuf[1] == ' ' && isdigit(linebuf[2]))
145 (void) printf("#line%s", &linebuf[1]);
147 (void) printf("%s", linebuf);
150 for (cp = linebuf; (c = *cp++) != 0; ) {
217 if (fgets(linebuf, sizeo
[all...]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dns_files.c85 char linebuf[LINESZ], lineqbuf[LINESZ]; local
119 rc = call_read_execout(key, &lp, fname, ml->linebuf, LINESZ);
126 if (strlen(ml->linebuf) == 0) {
131 unquote(ml->linebuf, ml->lineqbuf);
142 lp = get_line(fp, fname, linebuf, sizeof (linebuf));
196 (void) strcpy(ml->linebuf, lp);
219 char linebuf[LINESZ], lineqbuf[LINESZ]; local
264 lp = get_line(fp, fname, linebuf, sizeof (linebuf));
333 char linebuf[LINESZ]; local
424 char linebuf[LINESZ]; local
[all...]

Completed in 104 milliseconds

1234