Home
last modified time | relevance | path

Searched refs:getline (Results 1 – 25 of 152) sorted by relevance

1234567

/freebsd/contrib/one-true-awk/testdir/
H A DT.getline1 echo T.getline: test getline function
8 while (getline)
13 cmp -s foo1 foo || echo 'BAD: T.getline (bare getline)'
18 while (getline xxx)
23 cmp -s foo1 foo || echo 'BAD: T.getline (getline xxx)'
27 while (getline <"/etc/passwd")
32 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <file)'
36 while (getline <"-") # stdin
41 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <"-")'
45 while (getline <ARGV[1])
[all …]
H A DT.errmsg9 while (getline x > 0 && x != "")
178 null file name in print or getline
202 $awk -safe 'BEGIN{"date" | getline}' >foo 2>foo2
203 grep 'cmd | getline is unsafe' foo2 >/dev/null || echo 'BAD: T.errmsg cmd|getline unsafe'
H A Dfunstack.awk636 "hostname" | getline HOSTNAME
637 "date" | getline DATE
638 ("ypcat passwd | grep '^" USER ":' | awk -F: '{print $5}'") | getline PERSONAL_NAME
640 ("grep '^" USER ":' /etc/passwd | awk -F: '{print $5}'") | getline PERSONAL_NAME
H A Dt.beginexit2 while (getline && n++ < 10)
H A Dt.beginnext2 while (getline && n++ < 10)
/freebsd/contrib/kyua/utils/logging/
H A Doperations_test.cpp112 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
115 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
118 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
121 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
143 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
163 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
217 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
220 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
223 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
226 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
[all …]
H A Dmacros_test.cpp56 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
72 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
88 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
104 ATF_REQUIRE(std::getline(input, line).good()); in ATF_TEST_CASE_BODY()
/freebsd/usr.sbin/autofs/autofs/
H A Dinclude_nis_nullfs64 "hostname -s" | getline;
67 "hostname -f" | getline;
72 "hostname -f" | getline;
76 while ("ifconfig" | getline) {
91 while ("ypcat -k " ARGV[1] | getline) {
97 while ("ypmatch " ARGV[2] " " ARGV[1] | getline) {
/freebsd/lib/libc/tests/stdio/
H A Dgetdelim_test.c97 ATF_REQUIRE(getline(&line, &linecap, fp) == sizeof(apothegm) - 1); in ATF_TC_BODY()
101 ATF_REQUIRE(getline(&line, &linecap, fp) == 1); in ATF_TC_BODY()
105 ATF_REQUIRE(getline(&line, &linecap, fp) == -1); in ATF_TC_BODY()
126 ATF_REQUIRE(getline(&line, &linecap, stdout) == -1); in ATF_TC_BODY()
143 ATF_REQUIRE(getline(NULL, &linecap, fp) == -1); in ATF_TC_BODY()
145 ATF_REQUIRE(getline(&line, NULL, fp) == -1); in ATF_TC_BODY()
166 ATF_REQUIRE(getline(&line, &linecap, fp) == -1); in ATF_TC_BODY()
215 ATF_REQUIRE(getline(&line, &linecap, fp) == sizeof(apothegm) - 1); in ATF_TC_BODY()
221 ATF_REQUIRE(getline(&line, &linecap, fp) == sizeof(apothegm) - 1); in ATF_TC_BODY()
/freebsd/contrib/kyua/utils/process/
H A Dchild_test.cpp333 ATF_REQUIRE(std::getline(output, line).good()); in child__fork_capture__ok()
339 ATF_REQUIRE(std::getline(output, line).good()); in child__fork_capture__ok()
373 ATF_REQUIRE(std::getline(output, message).good()); in ATF_TEST_CASE_BODY()
714 ATF_REQUIRE(std::getline(child->output(), line).good()); in ATF_TEST_CASE_BODY()
716 ATF_REQUIRE(!std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
732 ATF_REQUIRE(std::getline(child->output(), line).good()); in ATF_TEST_CASE_BODY()
734 ATF_REQUIRE(!std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
753 ATF_REQUIRE(std::getline(child->output(), line).good()); in ATF_TEST_CASE_BODY()
755 ATF_REQUIRE(std::getline(child->output(), line).good()); in ATF_TEST_CASE_BODY()
757 ATF_REQUIRE(std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/kyua/engine/
H A Datf_list.cpp82 while (std::getline(input, line).good() && !line.empty()) { in parse_properties()
169 std::getline(input, line); in parse_atf_list()
176 std::getline(input, line); in parse_atf_list()
182 while (std::getline(input, line).good()) { in parse_atf_list()
/freebsd/contrib/one-true-awk/bugs-fixed/
H A Dgetline-corruption.awk2 getline l
3 getline l
H A Dnumeric-rs.awk3 while ("echo a1b1c1d" | getline > 0) {
H A Dgetline-numeric.awk3 getline dd < ARGV[1]
H A Dnumeric-fs.awk4 FS = 2; "echo 42424" | getline; print $1;
/freebsd/sys/tools/
H A Dmakeobjops.awk161 getline < src;
176 getline < src;
182 getline < src;
235 while (line !~ /\}/ && (getline < src) > 0) {
452 while (!error && (getline < src) > 0) {
/freebsd/usr.bin/comm/
H A Dcomm.c115 n1 = getline(&line1, &line1len, fp1); in main()
123 n2 = getline(&line2, &line2len, fp2); in main()
212 if ((n = getline(bufp, buflenp, fp)) < 0) in show()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-getline.c93 getline(char **buf, size_t *bufsiz, FILE *fp) in getline() function
108 while ((len = getline(&p, &n, stdin)) != -1) in main()
/freebsd/contrib/file/src/
H A Dgetline.c84 getline(char **buf, size_t *bufsiz, FILE *fp) in getline() function
99 while ((len = getline(&p, &n, stdin)) != -1) in main()
/freebsd/contrib/libfido2/openbsd-compat/
H A Dbsd-getline.c95 getline(char **buf, size_t *bufsiz, FILE *fp) in getline() function
110 while ((len = getline(&p, &n, stdin)) != -1) in main()
/freebsd/contrib/kyua/cli/
H A Dcmd_about.cpp85 while (std::getline(input, line).good()) { in cat_file()
90 while (std::getline(input, line).good()) { in cat_file()
/freebsd/usr.sbin/pw/
H A Dpw_vpw.c84 while ((linelen = getline(&line, &linecap, pwd_fp)) > 0) { in vnextpwent()
163 while ((linelen = getline(&line, &linecap, grp_fp)) > 0) { in vnextgrent()
/freebsd/lib/libc/stdio/
H A DMakefile.inc13 fwrite.c getc.c getchar.c getdelim.c getline.c \
38 getline.3 getwc.3 mktemp.3 open_memstream.3 \
79 MLINKS+=getline.3 getdelim.3
/freebsd/contrib/tzdata/
H A Dchecktab.awk12 while (getline <iso_table) {
53 while (getline <zone_table) {
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerDataFlowTrace.cpp44 while (std::getline(IN, L, '\n')) { in AppendCoverage()
178 while (std::getline(IF, L, '\n')) { in Init()
226 while (std::getline(IF, L, '\n')) { in Init()

1234567