Searched refs:lbuf (Results 1 - 25 of 53) sorted by relevance

123

/freebsd-current/lib/libc/tests/stdio/
H A Dperror_test.c48 char lbuf[512]; local
79 s = fgets(lbuf, sizeof(lbuf), stderr);
83 s = fgets(lbuf, sizeof(lbuf), stderr);
87 s = fgets(lbuf, sizeof(lbuf), stderr);
92 s = fgets(lbuf, sizeof(lbuf), stderr);
/freebsd-current/stand/libsa/
H A Dhexdump.c40 #define emit(fmt, args...) {sprintf(lbuf, fmt , ## args); pager_output(lbuf);}
41 char lbuf[80]; local
/freebsd-current/usr.bin/cut/
H A Dcut.c273 char *lbuf = NULL; local
279 while ((lbuflen = getline(&lbuf, &bufsize, fp)) >= 0) {
281 if ((clen = mbrlen(lbuf, lbuflen, &mbs)) < 0) {
289 if (clen == 0 || *lbuf == '\n')
306 fwrite(lbuf, 1, clen, stdout);
320 fwrite(lbuf, 1, clen, stdout);
322 lbuf += clen;
328 free(lbuf);
387 char *lbuf = NULL; local
391 while ((lbuflen = getline(&lbuf,
[all...]
/freebsd-current/stand/libofw/
H A Dofw_memory.c58 char lbuf[80]; local
80 sprintf(lbuf, "%08jx-%08jx\t%08jx-%08jx\t%8d\t%6x\n",
87 if (pager_output(lbuf))
98 sprintf(lbuf, "%08jx-%08jx\t%08jx-%08jx\t%8d\t%6x\n",
105 if (pager_output(lbuf))
/freebsd-current/lib/libc/locale/
H A Dldpart.c56 char *lbuf, *p; local
99 if ((lbuf = malloc(bufsize)) == NULL) {
103 (void)strcpy(lbuf, name);
104 p = lbuf + namesize;
130 *locale_buf = lbuf;
141 free(lbuf);
/freebsd-current/stand/common/
H A Dboot.c322 char lbuf[KENV_MVALLEN], *cp, *ep, *dev, *fstyp, *options; local
329 snprintf(lbuf, sizeof(lbuf), "%s/etc/fstab", rootdev);
330 if ((fd = open(lbuf, O_RDONLY)) < 0)
336 while (fgetstr(lbuf, sizeof(lbuf), fd) >= 0) {
337 if ((lbuf[0] == 0) || (lbuf[0] == '#'))
341 for (cp = lbuf; (*cp != 0) && !isspace(*cp); cp++)
348 dev = strdup(lbuf);
[all...]
H A Dls.c62 char lbuf[128]; /* one line */ local
130 snprintf(lbuf, sizeof(lbuf), " %c %8d %s\n",
134 snprintf(lbuf, sizeof(lbuf), " %c %s\n",
137 if (pager_output(lbuf))
/freebsd-current/usr.bin/ctags/
H A Dfortran.c53 if (!fgets(lbuf, sizeof(lbuf), inf))
56 lbp = lbuf;
H A Dlisp.c54 if (!fgets(lbuf, sizeof(lbuf), inf))
57 lbp = lbuf;
H A Dctags.c71 char lbuf[LINE_MAX]; variable
182 (void)strcpy(lbuf, "\t");
183 (void)strlcat(lbuf, argv[step], LINE_MAX);
184 (void)strlcat(lbuf, "\t", LINE_MAX);
185 if (regcomp(regx + step, lbuf,
190 while (fgets(lbuf, LINE_MAX, oldf)) {
193 lbuf, 0, NULL, 0) == 0)
195 fputs(lbuf, outf);
308 (void)strcpy(lbuf, "%%$");
319 (void)strcpy(lbuf, "
[all...]
H A Dprint.c55 for (cp = lbuf; GETC(!=, EOF) && c != '\n'; *cp++ = c)
62 else for (cnt = 0, cp = lbuf; GETC(!=, EOF) && cnt < ENDLINE; ++cnt) {
H A Dctags.h79 extern char lbuf[LINE_MAX];
/freebsd-current/sys/compat/linux/
H A Dlinux_stats.c218 struct l_old_stat lbuf; local
220 bzero(&lbuf, sizeof(lbuf));
221 lbuf.st_dev = linux_old_encode_dev(buf->st_dev);
222 lbuf.st_ino = buf->st_ino;
223 lbuf.st_mode = buf->st_mode;
224 lbuf.st_nlink = buf->st_nlink;
225 lbuf.st_uid = buf->st_uid;
226 lbuf.st_gid = buf->st_gid;
227 lbuf
493 struct l_stat64 lbuf; local
[all...]
/freebsd-current/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-current/usr.bin/wall/
H A Dwall.c186 wchar_t *p, *tmp, lbuf[256], codebuf[13]; local
215 (void)swprintf(lbuf, sizeof(lbuf)/sizeof(wchar_t),
218 (void)fwprintf(fp, L"%-79.79S\007\007\r\n", lbuf);
219 (void)swprintf(lbuf, sizeof(lbuf)/sizeof(wchar_t),
222 (void)fwprintf(fp, L"%-79.79S\r\n", lbuf);
235 while (fgetws(lbuf, sizeof(lbuf)/sizeof(wchar_t), stdin)) {
236 for (p = lbuf; (c
[all...]
/freebsd-current/contrib/tcp_wrappers/
H A Dfix_options.c42 char lbuf[BUFFER_SIZE], *lp; local
118 lp = lbuf;
123 eval_client(request), lbuf);
/freebsd-current/crypto/heimdal/appl/telnet/libtelnet/
H A Denc_des.c447 char lbuf[32]; local
456 snprintf(lbuf, sizeof(lbuf), "%s_IV", type);
457 cp = lbuf;
461 snprintf(lbuf, sizeof(lbuf), "%s_IV_OK", type);
462 cp = lbuf;
466 snprintf(lbuf, sizeof(lbuf), "%s_IV_BAD", type);
467 cp = lbuf;
[all...]
/freebsd-current/usr.bin/rwall/
H A Drwall.c123 char *tty, hostname[MAXHOSTNAMELEN], lbuf[256], tmpname[64]; local
159 while (fgets(lbuf, sizeof(lbuf), stdin))
160 fputs(lbuf, fp);
/freebsd-current/contrib/telnet/libtelnet/
H A Denc_des.c439 char lbuf[32]; local
448 sprintf(lbuf, "%s_IV", type);
449 cp = lbuf;
453 sprintf(lbuf, "%s_IV_OK", type);
454 cp = lbuf;
458 sprintf(lbuf, "%s_IV_BAD", type);
459 cp = lbuf;
463 sprintf(lbuf, " %d (unknown)", data[2]);
464 cp = lbuf;
469 sprintf(lbuf, "
[all...]
H A Dkrb4encpwd.c350 char lbuf[32]; local
387 sprintf(lbuf, " %d (unknown)", data[3]);
388 strncpy((char *)buf, lbuf, buflen);
392 sprintf(lbuf, " %d", data[i]);
393 strncpy((char *)buf, lbuf, buflen);
/freebsd-current/sys/arm64/linux/
H A Dlinux_vdso_gtod.c51 write(int lfd, const void *lbuf, size_t lsize) argument
55 register const char *buf asm("x1") = lbuf;
/freebsd-current/libexec/atrun/
H A Datrun.c132 struct stat buf, lbuf; local
207 if (lstat(filename, &lbuf) == -1)
210 if (S_ISLNK(lbuf.st_mode))
213 if ((lbuf.st_dev != buf.st_dev) || (lbuf.st_ino != buf.st_ino) ||
214 (lbuf.st_uid != buf.st_uid) || (lbuf.st_gid != buf.st_gid) ||
215 (lbuf.st_size!=buf.st_size))
/freebsd-current/usr.bin/ul/
H A Dul.c357 wchar_t lbuf[256]; local
358 wchar_t *cp = lbuf;
381 for (cp=lbuf; *cp; cp++)
385 for (cp=lbuf; *cp; cp++)
388 for (cp=lbuf; *cp; cp++)
397 wchar_t lbuf[256]; local
398 wchar_t *cp = lbuf;
412 for (cp=lbuf; *cp; cp++)
/freebsd-current/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)
245 char *lbuf, **arg
[all...]
/freebsd-current/sbin/fdisk/
H A Dfdisk.c57 static char lbuf[LBUF]; variable
902 if (fgets(lbuf, LBUF, stdin) == NULL)
904 lbuf[strlen(lbuf)-1] = 0;
906 if (*lbuf &&
907 (!strcmp(lbuf, "yes") || !strcmp(lbuf, "YES") ||
908 !strcmp(lbuf, "y") || !strcmp(lbuf, "Y")))
925 if (fgets(lbuf, LBU
[all...]

Completed in 210 milliseconds

123