Home
last modified time | relevance | path

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

123

/freebsd/sys/compat/linux/
H A Dlinux_stats.c218 struct l_old_stat lbuf; in old_stat_copyout() local
220 bzero(&lbuf, sizeof(lbuf)); in old_stat_copyout()
221 lbuf.st_dev = linux_old_encode_dev(buf->st_dev); in old_stat_copyout()
222 lbuf.st_ino = buf->st_ino; in old_stat_copyout()
223 lbuf.st_mode = buf->st_mode; in old_stat_copyout()
224 lbuf.st_nlink = buf->st_nlink; in old_stat_copyout()
225 lbuf.st_uid = buf->st_uid; in old_stat_copyout()
226 lbuf.st_gid = buf->st_gid; in old_stat_copyout()
227 lbuf.st_rdev = linux_old_encode_dev(buf->st_rdev); in old_stat_copyout()
228 lbuf.st_size = MIN(buf->st_size, INT32_MAX); in old_stat_copyout()
[all …]
/freebsd/lib/libc/tests/stdio/
H A Dperror_test.c48 char lbuf[512]; in ATF_TC_BODY() local
79 s = fgets(lbuf, sizeof(lbuf), stderr); in ATF_TC_BODY()
83 s = fgets(lbuf, sizeof(lbuf), stderr); in ATF_TC_BODY()
87 s = fgets(lbuf, sizeof(lbuf), stderr); in ATF_TC_BODY()
92 s = fgets(lbuf, sizeof(lbuf), stderr); in ATF_TC_BODY()
/freebsd/usr.bin/cut/
H A Dcut.c273 char *lbuf = NULL; in b_n_cut()
279 while ((lbuflen = getline(&lbuf, &bufsize, fp)) >= 0) { in b_n_cut()
281 if ((clen = mbrlen(lbuf, lbuflen, &mbs)) < 0) { in b_n_cut()
289 if (clen == 0 || *lbuf == '\n') in b_n_cut()
306 fwrite(lbuf, 1, clen, stdout); in b_n_cut()
320 fwrite(lbuf, 1, clen, stdout); in b_n_cut()
322 lbuf += clen; in b_n_cut()
328 free(lbuf); in b_n_cut()
387 char *lbuf = NULL; in f_cut()
391 while ((lbuflen = getline(&lbuf, in f_cut()
272 char *lbuf; b_n_cut() local
385 char *lbuf, *mlbuf; f_cut() local
[all...]
/freebsd/stand/common/
H A Dboot.c322 char lbuf[KENV_MVALLEN], *cp, *ep, *dev, *fstyp, *options; in getrootmount() local
329 snprintf(lbuf, sizeof(lbuf), "%s/etc/fstab", rootdev); in getrootmount()
330 if ((fd = open(lbuf, O_RDONLY)) < 0) in getrootmount()
336 while (fgetstr(lbuf, sizeof(lbuf), fd) >= 0) { in getrootmount()
337 if ((lbuf[0] == 0) || (lbuf[0] == '#')) in getrootmount()
341 for (cp = lbuf; (*cp != 0) && !isspace(*cp); cp++) in getrootmount()
348 dev = strdup(lbuf); in getrootmount()
383 snprintf(lbuf, sizeof(lbuf), "%s:%s", fstyp, dev); in getrootmount()
384 setenv("vfs.root.mountfrom", lbuf, 0); in getrootmount()
H A Dls.c62 char lbuf[128]; /* one line */ in command_ls() local
130 snprintf(lbuf, sizeof(lbuf), " %c %8d %s\n", in command_ls()
134 snprintf(lbuf, sizeof(lbuf), " %c %s\n", in command_ls()
137 if (pager_output(lbuf)) in command_ls()
/freebsd/contrib/sendmail/rmail/
H A Drmail.c103 char **args, buf[2048], lbuf[2048]; local
138 if (sm_io_fgets(smioin, SM_TIME_DEFAULT, lbuf,
139 sizeof(lbuf)) < 0)
141 if ((p = strchr(lbuf, '\n')) == NULL)
146 if (!strncmp(lbuf, "From ", 5))
147 addrp = lbuf + 5;
148 else if (!strncmp(lbuf, ">From ", 6))
149 addrp = lbuf + 6;
152 "missing or empty From line: %s", lbuf);
160 err(EX_DATAERR, "corrupted From line: %s", lbuf);
[all …]
/freebsd/usr.bin/ctags/
H A Dctags.c71 char lbuf[LINE_MAX]; variable
182 (void)strcpy(lbuf, "\t"); in main()
183 (void)strlcat(lbuf, argv[step], LINE_MAX); in main()
184 (void)strlcat(lbuf, "\t", LINE_MAX); in main()
185 if (regcomp(regx + step, lbuf, in main()
190 while (fgets(lbuf, LINE_MAX, oldf)) { in main()
193 lbuf, 0, NULL, 0) == 0) in main()
195 fputs(lbuf, outf); in main()
308 (void)strcpy(lbuf, "%%$"); in find_entries()
319 (void)strcpy(lbuf, " in find_entries()
[all...]
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()
/freebsd/usr.bin/wall/
H A Dwall.c186 wchar_t *p, *tmp, lbuf[256], codebuf[13]; in makemsg() local
215 (void)swprintf(lbuf, sizeof(lbuf)/sizeof(wchar_t), in makemsg()
218 (void)fwprintf(fp, L"%-79.79S\007\007\r\n", lbuf); in makemsg()
219 (void)swprintf(lbuf, sizeof(lbuf)/sizeof(wchar_t), in makemsg()
222 (void)fwprintf(fp, L"%-79.79S\r\n", lbuf); in makemsg()
235 while (fgetws(lbuf, sizeof(lbuf)/sizeof(wchar_t), stdin)) { in makemsg()
236 for (p = lbuf; (ch = *p) != L'\0'; ++p, ++cnt) { in makemsg()
/freebsd/crypto/heimdal/appl/telnet/libtelnet/
H A Denc_des.c447 char lbuf[32]; in fb64_printsub() local
456 snprintf(lbuf, sizeof(lbuf), "%s_IV", type); in fb64_printsub()
457 cp = lbuf; in fb64_printsub()
461 snprintf(lbuf, sizeof(lbuf), "%s_IV_OK", type); in fb64_printsub()
462 cp = lbuf; in fb64_printsub()
466 snprintf(lbuf, sizeof(lbuf), "%s_IV_BAD", type); in fb64_printsub()
467 cp = lbuf; in fb64_printsub()
471 snprintf(lbuf, sizeof(lbuf), " %d (unknown)", data[2]); in fb64_printsub()
472 cp = lbuf; in fb64_printsub()
477 snprintf(lbuf, sizeof(lbuf), " %d", data[i]); in fb64_printsub()
[all …]
/freebsd/lib/libc/locale/
H A Dldpart.c56 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()
/freebsd/stand/libofw/
H A Dofw_memory.c58 char lbuf[80]; in ofw_memmap() local
80 sprintf(lbuf, "%08jx-%08jx\t%08jx-%08jx\t%8d\t%6x\n", in ofw_memmap()
87 if (pager_output(lbuf)) in ofw_memmap()
98 sprintf(lbuf, "%08jx-%08jx\t%08jx-%08jx\t%8d\t%6x\n", in ofw_memmap()
105 if (pager_output(lbuf)) in ofw_memmap()
/freebsd/contrib/telnet/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 …]
/freebsd/usr.bin/rwall/
H A Drwall.c123 char *tty, hostname[MAXHOSTNAMELEN], lbuf[256], tmpname[64]; in makemsg() local
159 while (fgets(lbuf, sizeof(lbuf), stdin)) in makemsg()
160 fputs(lbuf, fp); in makemsg()
/freebsd/libexec/atrun/
H A Datrun.c132 struct stat buf, lbuf; in run_file() local
207 if (lstat(filename, &lbuf) == -1) in run_file()
210 if (S_ISLNK(lbuf.st_mode)) in run_file()
213 if ((lbuf.st_dev != buf.st_dev) || (lbuf.st_ino != buf.st_ino) || in run_file()
214 (lbuf.st_uid != buf.st_uid) || (lbuf.st_gid != buf.st_gid) || in run_file()
215 (lbuf.st_size!=buf.st_size)) in run_file()
/freebsd/stand/libsa/
H A Dhexdump.c40 #define emit(fmt, args...) {sprintf(lbuf, fmt , ## args); pager_output(lbuf);} in hexdump()
41 char lbuf[80]; in hexdump() local
/freebsd/lib/libc/db/test/btree.tests/
H A Dmain.c188 char *lbuf, *argv[4], buf[512]; local
198 if ((lbuf = fgets(&buf[0], 512, ifp)) == NULL)
200 if (lbuf[0] == '\n') {
204 lbuf[strlen(lbuf) - 1] = '\0';
206 if (lbuf[0] == 'q')
209 argc = parse(lbuf, &argv[0], 3);
220 "%s: command unknown ('help' for help)\n", lbuf);
244 parse(lbuf, argv, maxargc) in parse() argument
245 char *lbuf, **argv; in parse()
251 c = lbuf;
/freebsd/usr.bin/ul/
H A Dul.c357 wchar_t lbuf[256]; in overstrike() local
358 wchar_t *cp = lbuf; in overstrike()
381 for (cp=lbuf; *cp; cp++) in overstrike()
385 for (cp=lbuf; *cp; cp++) in overstrike()
388 for (cp=lbuf; *cp; cp++) in overstrike()
397 wchar_t lbuf[256]; in iattr() local
398 wchar_t *cp = lbuf; in iattr()
412 for (cp=lbuf; *cp; cp++) in iattr()
/freebsd/sbin/fdisk/
H A Dfdisk.c57 static char lbuf[LBUF]; variable
909 if (fgets(lbuf, LBUF, stdin) == NULL) in ok()
911 lbuf[strlen(lbuf)-1] = 0; in ok()
913 if (*lbuf && in ok()
914 (!strcmp(lbuf, "yes") || !strcmp(lbuf, "YES") || in ok()
915 !strcmp(lbuf, "y") || !strcmp(lbuf, "Y"))) in ok()
932 if (fgets(lbuf, LBUF, stdin) == NULL) in decimal()
934 lbuf[strlen(lbuf)-1] = 0; in decimal()
936 if (!*lbuf) in decimal()
939 cp = lbuf; in decimal()
[all …]
/freebsd/contrib/tcp_wrappers/
H A Dfix_options.c42 char lbuf[BUFFER_SIZE], *lp; in fix_options() local
118 lp = lbuf; in fix_options()
123 eval_client(request), lbuf); in fix_options()
/freebsd/usr.bin/patch/
H A Dinp.c287 char *lbuf = NULL, *p; plan_b() local
/freebsd/usr.bin/sed/
H A Dcompile.c155 static char lbuf[_POSIX2_LINE_MAX + 1]; /* To save stack */ in compile_stream() local
163 if ((p = cu_fgets(lbuf, sizeof(lbuf), NULL)) == NULL) { in compile_stream()
561 static char lbuf[_POSIX2_LINE_MAX + 1]; in compile_subst() local
645 if (cu_fgets(lbuf, sizeof(lbuf), &more)) in compile_subst()
646 p = lbuf; in compile_subst()
666 } while (cu_fgets(p = lbuf, sizeof(lbuf), &more) != NULL); in compile_subst()
859 char lbuf[_POSIX2_LINE_MAX + 1]; in compile_text() local
865 while (cu_fgets(lbuf, sizeof(lbuf), NULL) != NULL) { in compile_text()
867 p = lbuf; in compile_text()
/freebsd/sys/contrib/openzfs/cmd/zfs/
H A Dzfs_iter.c350 char lbuf[ZFS_MAXPROPLEN], rbuf[ZFS_MAXPROPLEN]; in zfs_sort() local
383 (void) strlcpy(lbuf, zfs_get_name(l), sizeof (lbuf)); in zfs_sort()
386 lstr = lbuf; in zfs_sort()
389 lvalid = (zfs_prop_get(l, psc->sc_prop, lbuf, in zfs_sort()
390 sizeof (lbuf), NULL, NULL, 0, B_TRUE) == 0); in zfs_sort()
394 lstr = lbuf; in zfs_sort()
/freebsd/contrib/elftoolchain/libdwarf/
H A Dlibdwarf_loc.c41 _dwarf_loc_fill_loc(Dwarf_Debug dbg, Dwarf_Locdesc *lbuf, uint8_t pointer_size, in _dwarf_loc_fill_loc() argument
62 if (lbuf != NULL) { in _dwarf_loc_fill_loc()
63 lbuf->ld_s[count].lr_atom = *p; in _dwarf_loc_fill_loc()
64 lbuf->ld_s[count].lr_offset = p - ps; in _dwarf_loc_fill_loc()
357 if (lbuf != NULL) { in _dwarf_loc_fill_loc()
358 lbuf->ld_s[count].lr_number = operand1; in _dwarf_loc_fill_loc()
359 lbuf->ld_s[count].lr_number2 = operand2; in _dwarf_loc_fill_loc()

123