Home
last modified time | relevance | path

Searched refs:lbuf (Results 1 – 25 of 38) sorted by relevance

12

/dragonfly/usr.bin/cut/
H A Dcut.c268 char *lbuf; in b_n_cut() local
284 if (clen == 0 || *lbuf == '\n') in b_n_cut()
301 fwrite(lbuf, 1, clen, stdout); in b_n_cut()
315 fwrite(lbuf, 1, clen, stdout); in b_n_cut()
317 lbuf += clen; in b_n_cut()
381 char *lbuf, *mlbuf; in f_cut() local
388 if (*(lbuf + lbuflen - 1) != '\n') { in f_cut()
393 memcpy(mlbuf, lbuf, lbuflen); in f_cut()
395 lbuf = mlbuf; in f_cut()
399 for (isdelim = 0, p = lbuf;; p += clen) { in f_cut()
[all …]
/dragonfly/usr.bin/ctags/
H A Dctags.c70 char lbuf[LINE_MAX]; variable
167 strcpy(lbuf, "\t"); in main()
168 strlcat(lbuf, argv[step], LINE_MAX); in main()
169 strlcat(lbuf, "\t", LINE_MAX); in main()
170 if (regcomp(regx + step, lbuf, in main()
175 while (fgets(lbuf, LINE_MAX, oldf)) { in main()
178 lbuf, 0, NULL, 0) == 0) in main()
180 fputs(lbuf, outf); in main()
290 strcpy(lbuf, "%%$"); in find_entries()
301 strcpy(lbuf, "%%$"); in find_entries()
H A Dlisp.c54 if (!fgets(lbuf, sizeof(lbuf), inf)) in l_entries()
57 lbp = lbuf; in l_entries()
H A Dfortran.c53 if (!fgets(lbuf, sizeof(lbuf), inf)) in PF_funcs()
56 lbp = lbuf; in PF_funcs()
/dragonfly/stand/boot/common/
H A Dboot.c314 char lbuf[128], *cp, *ep, *dev, *fstyp; in getrootmount() local
320 sprintf(lbuf, "%s/etc/fstab", rootdev); in getrootmount()
321 if ((fd = open(lbuf, O_RDONLY)) < 0) in getrootmount()
326 while (fgetstr(lbuf, sizeof(lbuf), fd) >= 0) { in getrootmount()
327 if ((lbuf[0] == 0) || (lbuf[0] == '#')) in getrootmount()
331 for (cp = lbuf; (*cp != 0) && !isspace(*cp); cp++) in getrootmount()
337 dev = strdup(lbuf); in getrootmount()
359 sprintf(lbuf, "%s:%s", fstyp, dev); in getrootmount()
362 setenv("vfs.root.mountfrom", lbuf, 0); in getrootmount()
H A Dls.c60 char lbuf[128]; /* one line */ in command_ls() local
112 sprintf(lbuf, " %c %8d %s\n", typestr[d->d_type], in command_ls()
115 sprintf(lbuf, " %c %s\n", typestr[d->d_type], d->d_name); in command_ls()
117 if (pager_output(lbuf)) in command_ls()
H A Dmisc.c172 char lbuf[80]; in hexdump() local
173 #define emit(fmt, args...) {sprintf(lbuf, fmt , ## args); pager_output(lbuf);} in hexdump()
/dragonfly/usr.bin/wall/
H A Dwall.c174 char *p, hostname[MAXHOSTNAMELEN], lbuf[256], tmpname[MAXPATHLEN]; in makemsg() local
203 (void)snprintf(lbuf, sizeof(lbuf), in makemsg()
206 (void)fprintf(fp, "%-79.79s\007\007\r\n", lbuf); in makemsg()
207 (void)snprintf(lbuf, sizeof(lbuf), in makemsg()
210 (void)fprintf(fp, "%-79.79s\r\n", lbuf); in makemsg()
221 while (fgets(lbuf, sizeof(lbuf), stdin)) in makemsg()
222 for (cnt = 0, p = lbuf; (ch = *p) != '\0'; ++p, ++cnt) { in makemsg()
/dragonfly/lib/libc/locale/
H A Dldpart.c57 char *lbuf, *p; in __part_load_locale() local
99 if ((lbuf = malloc(bufsize)) == NULL) { in __part_load_locale()
103 (void)strcpy(lbuf, name); in __part_load_locale()
104 p = lbuf + namesize; in __part_load_locale()
130 *locale_buf = lbuf; in __part_load_locale()
141 free(lbuf); in __part_load_locale()
/dragonfly/lib/libtelnet/
H A Denc_des.c439 char lbuf[32]; in fb64_printsub() local
448 sprintf(lbuf, "%s_IV", type); in fb64_printsub()
449 cp = lbuf; in fb64_printsub()
453 sprintf(lbuf, "%s_IV_OK", type); in fb64_printsub()
454 cp = lbuf; in fb64_printsub()
458 sprintf(lbuf, "%s_IV_BAD", type); in fb64_printsub()
459 cp = lbuf; in fb64_printsub()
463 sprintf(lbuf, " %d (unknown)", data[2]); in fb64_printsub()
464 cp = lbuf; in fb64_printsub()
469 sprintf(lbuf, " %d", data[i]); in fb64_printsub()
[all …]
H A Dsra.c359 char lbuf[32], *buf = (char *)ubuf; in sra_printsub() local
401 snprintf(lbuf, sizeof(lbuf), " %d (unknown)", data[3]); in sra_printsub()
402 strncpy(buf, lbuf, buflen); in sra_printsub()
407 snprintf(lbuf, sizeof(lbuf), " %d", data[i]); in sra_printsub()
408 strncpy(buf, lbuf, buflen); in sra_printsub()
H A Dkrb4encpwd.c341 char lbuf[32]; local
378 sprintf(lbuf, " %d (unknown)", data[3]);
379 strncpy((char *)buf, lbuf, buflen);
383 sprintf(lbuf, " %d", data[i]);
384 strncpy((char *)buf, lbuf, buflen);
H A Drsaencpwd.c394 char lbuf[32]; local
427 sprintf(lbuf, " %d (unknown)", data[3]);
428 strncpy((char *)buf, lbuf, buflen);
432 sprintf(lbuf, " %d", data[i]);
433 strncpy((char *)buf, lbuf, buflen);
/dragonfly/libexec/atrun/
H A Datrun.c125 struct stat buf, lbuf; in run_file() local
200 if (lstat(filename, &lbuf) == -1) in run_file()
203 if (S_ISLNK(lbuf.st_mode)) in run_file()
206 if ((lbuf.st_dev != buf.st_dev) || (lbuf.st_ino != buf.st_ino) || in run_file()
207 (lbuf.st_uid != buf.st_uid) || (lbuf.st_gid != buf.st_gid) || in run_file()
208 (lbuf.st_size!=buf.st_size)) in run_file()
/dragonfly/usr.bin/rwall/
H A Drwall.c134 char hostname[MAXHOSTNAMELEN], lbuf[256], tmpname[MAXPATHLEN]; in makemsg() local
169 while (fgets(lbuf, sizeof(lbuf), stdin)) in makemsg()
170 fputs(lbuf, fp); in makemsg()
/dragonfly/usr.sbin/pw/
H A Dpw_conf.c433 char lbuf[64]; in write_userconfig() local
434 int l = snprintf(lbuf, sizeof lbuf, "%s\"%s\"", k ? "," : "", system_shells[j]); in write_userconfig()
438 strcpy(buf + k, lbuf); in write_userconfig()
453 char lbuf[64]; in write_userconfig() local
454 int l = snprintf(lbuf, sizeof lbuf, "%s\"%s\"", k ? "," : "", config.groups[j]); in write_userconfig()
458 strcpy(buf + k, lbuf); in write_userconfig()
/dragonfly/usr.bin/ul/
H A Dul.c338 wchar_t lbuf[256]; in overstrike() local
339 wchar_t *cp = lbuf; in overstrike()
362 for (cp=lbuf; *cp; cp++) in overstrike()
366 for (cp=lbuf; *cp; cp++) in overstrike()
369 for (cp=lbuf; *cp; cp++) in overstrike()
378 wchar_t lbuf[256]; in iattr() local
379 wchar_t *cp = lbuf; in iattr()
393 for (cp=lbuf; *cp; cp++) in iattr()
/dragonfly/lib/libc/db/test/btree.tests/
H A Dmain.c186 char *lbuf, *argv[4], buf[512]; in user() local
196 if ((lbuf = fgets(&buf[0], 512, ifp)) == NULL) in user()
198 if (lbuf[0] == '\n') { in user()
202 lbuf[strlen(lbuf) - 1] = '\0'; in user()
204 if (lbuf[0] == 'q') in user()
207 argc = parse(lbuf, &argv[0], 3); in user()
218 "%s: command unknown ('help' for help)\n", lbuf); in user()
242 parse(char *lbuf, char **argv, int maxargc) in parse() argument
247 c = lbuf; in parse()
/dragonfly/sbin/fdisk/
H A Dfdisk.c47 static char lbuf[LBUF]; variable
969 if (fgets(lbuf, LBUF, stdin) == NULL) in ok()
971 lbuf[strlen(lbuf)-1] = 0; in ok()
973 if (*lbuf && in ok()
974 (!strcmp(lbuf, "yes") || !strcmp(lbuf, "YES") || in ok()
975 !strcmp(lbuf, "y") || !strcmp(lbuf, "Y"))) in ok()
990 if (fgets(lbuf, LBUF, stdin) == NULL) in decimal()
992 lbuf[strlen(lbuf)-1] = 0; in decimal()
994 if (!*lbuf) in decimal()
997 cp = lbuf; in decimal()
[all …]
/dragonfly/usr.bin/sed/
H A Dcompile.c158 static char lbuf[_POSIX2_LINE_MAX + 1]; /* To save stack */ in compile_stream() local
166 if ((p = cu_fgets(lbuf, sizeof(lbuf), NULL)) == NULL) { in compile_stream()
556 static char lbuf[_POSIX2_LINE_MAX + 1]; in compile_subst() local
640 if (cu_fgets(lbuf, sizeof(lbuf), &more)) in compile_subst()
641 p = lbuf; in compile_subst()
661 } while (cu_fgets(p = lbuf, sizeof(lbuf), &more) != NULL); in compile_subst()
854 char lbuf[_POSIX2_LINE_MAX + 1]; in compile_text() local
860 while (cu_fgets(lbuf, sizeof(lbuf), NULL) != NULL) { in compile_text()
862 p = lbuf; in compile_text()
/dragonfly/usr.bin/patch/
H A Dinp.c288 char *lbuf = NULL, *p; in plan_b() local
302 if ((lbuf = malloc(len + 1)) == NULL) in plan_b()
304 memcpy(lbuf, p, len); in plan_b()
305 lbuf[len] = '\0'; in plan_b()
306 p = lbuf; in plan_b()
316 free(lbuf); in plan_b()
/dragonfly/contrib/tcp_wrappers/
H A Dfix_options.c39 char lbuf[BUFFER_SIZE], *lp; local
115 lp = lbuf;
120 eval_client(request), lbuf);
/dragonfly/usr.sbin/authpf/
H A Dauthpf.c442 char *buf, *lbuf; in allowed_luser() local
472 lbuf = NULL; in allowed_luser()
477 if ((lbuf = (char *)malloc(len + 1)) == NULL) in allowed_luser()
479 memcpy(lbuf, buf, len); in allowed_luser()
480 lbuf[len] = '\0'; in allowed_luser()
481 buf = lbuf; in allowed_luser()
486 if (lbuf != NULL) { in allowed_luser()
487 free(lbuf); in allowed_luser()
488 lbuf = NULL; in allowed_luser()
/dragonfly/usr.sbin/lpr/common_source/
H A Ddisplayq.c426 struct stat lbuf; in dump() local
475 if (*datafile && !stat(datafile, &lbuf)) in dump()
476 totsize += copies * lbuf.st_size; in dump()
486 struct stat lbuf; in ldump() local
493 if (*datafile && !stat(datafile, &lbuf)) in ldump()
494 printf(" %qd bytes", (long long) lbuf.st_size); in ldump()
/dragonfly/contrib/tcsh-6/
H A Dsh.dol.c1010 struct Strbuf lbuf = Strbuf_INIT, mbuf = Strbuf_INIT; in heredoc() local
1072 cleanup_push(&lbuf, Strbuf_cleanup); in heredoc()
1080 lbuf.len = 0; in heredoc()
1086 Strbuf_append1(&lbuf, (Char) c); in heredoc()
1088 Strbuf_terminate(&lbuf); in heredoc()
1091 if (c == CHAR_ERR && lbuf.len != 0) in heredoc()
1097 if (c == CHAR_ERR || eq(lbuf.s, term)) in heredoc()
1104 Strbuf_append1(&lbuf, '\n'); in heredoc()
1105 Strbuf_terminate(&lbuf); in heredoc()
1106 for (lbp = lbuf.s; (c = *lbp++) != 0;) { in heredoc()
[all …]

12