Home
last modified time | relevance | path

Searched refs:getline (Results 1 – 25 of 160) 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)'
32 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <file)'
41 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <"-")'
50 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <arg)'
59 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline x <arg)'
68 cmp -s /etc/passwd foo || echo 'BAD: T.getline (cat arg | getline)'
[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()
734 ATF_REQUIRE(!std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
757 ATF_REQUIRE(std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
759 ATF_REQUIRE(std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
761 ATF_REQUIRE(std::getline(child->output(), line)); in ATF_TEST_CASE_BODY()
763 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()
165 std::getline(input, line); in parse_atf_list()
172 std::getline(input, line); in parse_atf_list()
178 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/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/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/usr.bin/comm/
H A Dcomm.c115 n1 = getline(&line1, &line1len, fp1); in main()
123 n2 = getline(&line2, &line2len, fp2); in main()
208 if ((n = getline(bufp, buflenp, fp)) < 0) in show()
/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.inc14 fwrite.c getc.c getchar.c getdelim.c getline.c \
39 getline.3 getwc.3 mktemp.3 open_memstream.3 \
80 MLINKS+=getline.3 getdelim.3
/freebsd/contrib/tzdata/
H A Dchecktab.awk12 while (getline <iso_table) {
53 while (getline <zone_table) {
/freebsd/contrib/mandoc/
H A Dtest-getline.c12 return getline(&line, &linesz, stdin) != -1; in main()

1234567