| /freebsd-12-stable/sys/compat/linux/ |
| D | linux_stats.c | 257 struct l_stat lbuf; in stat_copyout() local 259 bzero(&lbuf, sizeof(lbuf)); in stat_copyout() 260 lbuf.st_dev = dev_to_ldev(buf->st_dev); in stat_copyout() 261 lbuf.st_ino = buf->st_ino; in stat_copyout() 262 lbuf.st_mode = buf->st_mode; in stat_copyout() 263 lbuf.st_nlink = buf->st_nlink; in stat_copyout() 264 lbuf.st_uid = buf->st_uid; in stat_copyout() 265 lbuf.st_gid = buf->st_gid; in stat_copyout() 266 lbuf.st_rdev = buf->st_rdev; in stat_copyout() 267 lbuf.st_size = MIN(buf->st_size, INT32_MAX); in stat_copyout() [all …]
|
| /freebsd-12-stable/lib/libc/tests/stdio/ |
| D | perror_test.c | 51 char lbuf[512]; in ATF_TC_BODY() local 82 s = fgets(lbuf, sizeof(lbuf), stderr); in ATF_TC_BODY() 86 s = fgets(lbuf, sizeof(lbuf), stderr); in ATF_TC_BODY() 90 s = fgets(lbuf, sizeof(lbuf), stderr); in ATF_TC_BODY() 95 s = fgets(lbuf, sizeof(lbuf), stderr); in ATF_TC_BODY()
|
| /freebsd-12-stable/usr.bin/cut/ |
| D | cut.c | 281 char *lbuf; in b_n_cut() local 287 while ((lbuf = fgetln(fp, &lbuflen)) != NULL) { in b_n_cut() 289 if ((clen = mbrlen(lbuf, lbuflen, &mbs)) < 0) { in b_n_cut() 297 if (clen == 0 || *lbuf == '\n') in b_n_cut() 314 fwrite(lbuf, 1, clen, stdout); in b_n_cut() 328 fwrite(lbuf, 1, clen, stdout); in b_n_cut() 330 lbuf += clen; in b_n_cut() 394 char *lbuf, *mlbuf; in f_cut() local 398 while ((lbuf = fgetln(fp, &lbuflen)) != NULL) { in f_cut() 401 if (*(lbuf + lbuflen - 1) != '\n') { in f_cut() [all …]
|
| /freebsd-12-stable/contrib/sendmail/rmail/ |
| D | rmail.c | 103 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-12-stable/usr.bin/ctags/ |
| D | ctags.c | 83 char lbuf[LINE_MAX]; variable 179 (void)strcpy(lbuf, "\t"); in main() 180 (void)strlcat(lbuf, argv[step], LINE_MAX); in main() 181 (void)strlcat(lbuf, "\t", LINE_MAX); in main() 182 if (regcomp(regx + step, lbuf, in main() 187 while (fgets(lbuf, LINE_MAX, oldf)) { in main() 190 lbuf, 0, NULL, 0) == 0) in main() 192 fputs(lbuf, outf); in main() 302 (void)strcpy(lbuf, "%%$"); in find_entries() 313 (void)strcpy(lbuf, "%%$"); in find_entries()
|
| D | lisp.c | 62 if (!fgets(lbuf, sizeof(lbuf), inf)) in l_entries() 65 lbp = lbuf; in l_entries()
|
| D | fortran.c | 61 if (!fgets(lbuf, sizeof(lbuf), inf)) in PF_funcs() 64 lbp = lbuf; in PF_funcs()
|
| /freebsd-12-stable/stand/common/ |
| D | boot.c | 321 char lbuf[128], *cp, *ep, *dev, *fstyp, *options; in getrootmount() local 328 sprintf(lbuf, "%s/etc/fstab", rootdev); in getrootmount() 329 if ((fd = open(lbuf, O_RDONLY)) < 0) in getrootmount() 335 while (fgetstr(lbuf, sizeof(lbuf), fd) >= 0) { in getrootmount() 336 if ((lbuf[0] == 0) || (lbuf[0] == '#')) in getrootmount() 340 for (cp = lbuf; (*cp != 0) && !isspace(*cp); cp++) in getrootmount() 347 dev = strdup(lbuf); in getrootmount() 382 sprintf(lbuf, "%s:%s", fstyp, dev); in getrootmount() 383 setenv("vfs.root.mountfrom", lbuf, 0); in getrootmount()
|
| D | ls.c | 65 char lbuf[128]; /* one line */ in command_ls() local 133 snprintf(lbuf, sizeof(lbuf), " %c %8d %s\n", in command_ls() 137 snprintf(lbuf, sizeof(lbuf), " %c %s\n", in command_ls() 140 if (pager_output(lbuf)) in command_ls()
|
| /freebsd-12-stable/usr.bin/wall/ |
| D | wall.c | 200 wchar_t *p, *tmp, lbuf[256], codebuf[13]; in makemsg() local 229 (void)swprintf(lbuf, sizeof(lbuf)/sizeof(wchar_t), in makemsg() 232 (void)fwprintf(fp, L"%-79.79S\007\007\r\n", lbuf); in makemsg() 233 (void)swprintf(lbuf, sizeof(lbuf)/sizeof(wchar_t), in makemsg() 236 (void)fwprintf(fp, L"%-79.79S\r\n", lbuf); in makemsg() 249 while (fgetws(lbuf, sizeof(lbuf)/sizeof(wchar_t), stdin)) { in makemsg() 250 for (p = lbuf; (ch = *p) != L'\0'; ++p, ++cnt) { in makemsg()
|
| /freebsd-12-stable/crypto/heimdal/appl/telnet/libtelnet/ |
| D | enc_des.c | 447 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-12-stable/lib/libc/locale/ |
| D | ldpart.c | 59 char *lbuf, *p; in __part_load_locale() local 102 if ((lbuf = malloc(bufsize)) == NULL) { in __part_load_locale() 106 (void)strcpy(lbuf, name); in __part_load_locale() 107 p = lbuf + namesize; in __part_load_locale() 133 *locale_buf = lbuf; in __part_load_locale() 144 free(lbuf); in __part_load_locale()
|
| /freebsd-12-stable/stand/libofw/ |
| D | ofw_memory.c | 61 char lbuf[80]; in ofw_memmap() local 83 sprintf(lbuf, "%08jx-%08jx\t%08jx-%08jx\t%8d\t%6x\n", in ofw_memmap() 90 if (pager_output(lbuf)) in ofw_memmap() 101 sprintf(lbuf, "%08jx-%08jx\t%08jx-%08jx\t%8d\t%6x\n", in ofw_memmap() 108 if (pager_output(lbuf)) in ofw_memmap()
|
| /freebsd-12-stable/contrib/telnet/libtelnet/ |
| D | enc_des.c | 441 char lbuf[32]; in fb64_printsub() local 450 sprintf(lbuf, "%s_IV", type); in fb64_printsub() 451 cp = lbuf; in fb64_printsub() 455 sprintf(lbuf, "%s_IV_OK", type); in fb64_printsub() 456 cp = lbuf; in fb64_printsub() 460 sprintf(lbuf, "%s_IV_BAD", type); in fb64_printsub() 461 cp = lbuf; in fb64_printsub() 465 sprintf(lbuf, " %d (unknown)", data[2]); in fb64_printsub() 466 cp = lbuf; in fb64_printsub() 471 sprintf(lbuf, " %d", data[i]); in fb64_printsub() [all …]
|
| /freebsd-12-stable/libexec/atrun/ |
| D | atrun.c | 137 struct stat buf, lbuf; in run_file() local 212 if (lstat(filename, &lbuf) == -1) in run_file() 215 if (S_ISLNK(lbuf.st_mode)) in run_file() 218 if ((lbuf.st_dev != buf.st_dev) || (lbuf.st_ino != buf.st_ino) || in run_file() 219 (lbuf.st_uid != buf.st_uid) || (lbuf.st_gid != buf.st_gid) || in run_file() 220 (lbuf.st_size!=buf.st_size)) in run_file()
|
| /freebsd-12-stable/usr.bin/rwall/ |
| D | rwall.c | 136 char *tty, hostname[MAXHOSTNAMELEN], lbuf[256], tmpname[64]; in makemsg() local 172 while (fgets(lbuf, sizeof(lbuf), stdin)) in makemsg() 173 fputs(lbuf, fp); in makemsg()
|
| /freebsd-12-stable/lib/libc/db/test/btree.tests/ |
| D | main.c | 194 char *lbuf, *argv[4], buf[512]; local 204 if ((lbuf = fgets(&buf[0], 512, ifp)) == NULL) 206 if (lbuf[0] == '\n') { 210 lbuf[strlen(lbuf) - 1] = '\0'; 212 if (lbuf[0] == 'q') 215 argc = parse(lbuf, &argv[0], 3); 226 "%s: command unknown ('help' for help)\n", lbuf); 250 parse(lbuf, argv, maxargc) in parse() argument 251 char *lbuf, **argv; in parse() 257 c = lbuf;
|
| /freebsd-12-stable/usr.bin/ul/ |
| D | ul.c | 371 wchar_t lbuf[256]; in overstrike() local 372 wchar_t *cp = lbuf; in overstrike() 395 for (cp=lbuf; *cp; cp++) in overstrike() 399 for (cp=lbuf; *cp; cp++) in overstrike() 402 for (cp=lbuf; *cp; cp++) in overstrike() 411 wchar_t lbuf[256]; in iattr() local 412 wchar_t *cp = lbuf; in iattr() 426 for (cp=lbuf; *cp; cp++) in iattr()
|
| /freebsd-12-stable/usr.bin/patch/ |
| D | inp.c | 288 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()
|
| /freebsd-12-stable/sbin/fdisk/ |
| D | fdisk.c | 57 static char lbuf[LBUF]; variable 931 if (fgets(lbuf, LBUF, stdin) == NULL) in ok() 933 lbuf[strlen(lbuf)-1] = 0; in ok() 935 if (*lbuf && in ok() 936 (!strcmp(lbuf, "yes") || !strcmp(lbuf, "YES") || in ok() 937 !strcmp(lbuf, "y") || !strcmp(lbuf, "Y"))) in ok() 954 if (fgets(lbuf, LBUF, stdin) == NULL) in decimal() 956 lbuf[strlen(lbuf)-1] = 0; in decimal() 958 if (!*lbuf) in decimal() 961 cp = lbuf; in decimal() [all …]
|
| /freebsd-12-stable/usr.bin/sed/ |
| D | compile.c | 160 static char lbuf[_POSIX2_LINE_MAX + 1]; /* To save stack */ in compile_stream() local 168 if ((p = cu_fgets(lbuf, sizeof(lbuf), NULL)) == NULL) { in compile_stream() 558 static char lbuf[_POSIX2_LINE_MAX + 1]; in compile_subst() local 642 if (cu_fgets(lbuf, sizeof(lbuf), &more)) in compile_subst() 643 p = lbuf; in compile_subst() 663 } while (cu_fgets(p = lbuf, sizeof(lbuf), &more) != NULL); in compile_subst() 856 char lbuf[_POSIX2_LINE_MAX + 1]; in compile_text() local 862 while (cu_fgets(lbuf, sizeof(lbuf), NULL) != NULL) { in compile_text() 864 p = lbuf; in compile_text()
|
| /freebsd-12-stable/contrib/tcp_wrappers/ |
| D | fix_options.c | 43 char lbuf[BUFFER_SIZE], *lp; local 119 lp = lbuf; 124 eval_client(request), lbuf);
|
| /freebsd-12-stable/cddl/contrib/opensolaris/cmd/zfs/ |
| D | zfs_iter.c | 289 char lbuf[ZFS_MAXPROPLEN], rbuf[ZFS_MAXPROPLEN]; in zfs_sort() local 322 (void) strlcpy(lbuf, zfs_get_name(l), sizeof (lbuf)); in zfs_sort() 325 lstr = lbuf; in zfs_sort() 328 lvalid = (zfs_prop_get(l, psc->sc_prop, lbuf, in zfs_sort() 329 sizeof (lbuf), NULL, NULL, 0, B_TRUE) == 0); in zfs_sort() 333 lstr = lbuf; in zfs_sort()
|
| /freebsd-12-stable/contrib/elftoolchain/libdwarf/ |
| D | libdwarf_loc.c | 41 _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()
|
| /freebsd-12-stable/sbin/ipf/ipsend/ |
| D | ip.c | 245 u_32_t lbuf[20]; in send_tcp() local 251 ip2 = (struct ip *)lbuf; in send_tcp() 270 (lbuf[i] != htonl(0x020405b4))) { in send_tcp() 271 lbuf[i] = htonl(0x020405b4); in send_tcp() 295 u_long lbuf[20]; in send_udp() local 297 ti = (struct tcpiphdr *)lbuf; in send_udp()
|