Home
last modified time | relevance | path

Searched refs:read_file (Results 1 – 25 of 36) sorted by relevance

12

/freebsd-12.1/contrib/atf/atf-c++/
H A Dutils_test.cpp46 read_file(const std::string& path) in read_file() function
76 ATF_REQUIRE_EQ("", read_file("captured.txt")); in ATF_TEST_CASE_BODY()
88 ATF_REQUIRE_EQ("PREFIXThis is a single line\n", read_file("captured.txt")); in ATF_TEST_CASE_BODY()
101 read_file("captured.txt")); in ATF_TEST_CASE_BODY()
113 ATF_REQUIRE_EQ("PREFIXFoo\nPREFIX bar baz", read_file("captured.txt")); in ATF_TEST_CASE_BODY()
206 ATF_REQUIRE_EQ("This is a %d test", read_file("test.txt")); in ATF_TEST_CASE_BODY()
242 ATF_REQUIRE_EQ("Child stdout\n", read_file(out_name.str())); in ATF_TEST_CASE_BODY()
243 ATF_REQUIRE_EQ("Child stderr\n", read_file(err_name.str())); in ATF_TEST_CASE_BODY()
304 ATF_REQUIRE_EQ("The printed message", read_file("captured.txt")); in ATF_TEST_CASE_BODY()
315 ATF_REQUIRE_EQ("The printed message", read_file("captured.txt")); in ATF_TEST_CASE_BODY()
[all …]
/freebsd-12.1/contrib/atf/atf-c/
H A Dutils_test.c56 read_file(const char *path, void *const buffer, const size_t buflen) in read_file() function
77 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
91 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
105 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
119 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
214 read_file("test.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
252 read_file(atf_dynstr_cstring(&out_name), buffer, sizeof(buffer)); in ATF_TC_BODY()
254 read_file(atf_dynstr_cstring(&err_name), buffer, sizeof(buffer)); in ATF_TC_BODY()
358 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
371 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
[all …]
/freebsd-12.1/sys/contrib/zstd/doc/educational_decoder/
H A Dharness.c28 size_t read_file(const char *path, u8 **ptr) { in read_file() function
83 size_t input_size = read_file(argv[1], &input); in main()
86 dict_size = read_file(argv[3], &dict); in main()
/freebsd-12.1/lib/libsecureboot/openpgp/
H A Dopgp_sig.c451 sdata = read_file(sname, &sz);
470 if ((sdata = read_file(sigfile, &sbytes))) {
474 if ((fdata = read_file(pbuf, &fbytes))) {
H A Ddearmor.c130 data = read_file(infile, &n); in main()
H A Dopgp_key.c288 data = read_file(kfile, &n); in load_key_file()
/freebsd-12.1/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dinput.c87 read_file(Elf *elf, char *file, char *label, read_cb_f *func, void *arg, in read_file() function
160 rc = read_file(melf, memname, label, in read_archive()
208 found = read_file(elf, file, label, in read_ctf_common()
/freebsd-12.1/usr.sbin/efidp/
H A Defidp.c63 read_file(int fd, void **rv) in read_file() function
200 len = read_file(STDIN_FILENO, &data); in format()
/freebsd-12.1/usr.sbin/config/
H A Dmkmakefile.c390 read_file(char *fname) in read_file() function
433 read_file(ifname); in read_file()
619 read_file(fname); in read_files()
622 read_file(fname); in read_files()
624 read_file(nl->f_name); in read_files()
/freebsd-12.1/libexec/tftpd/
H A Dtftp-file.h36 size_t read_file(char *buffer, int count);
H A Dtftp-file.c237 read_file(char *buffer, int count) in read_file() function
H A Dtftp-transfer.c70 size = read_file(sendbuffer, segsize); in tftp_send()
/freebsd-12.1/contrib/amd/mk-amd-map/
H A Dmk-amd-map.c108 read_file(FILE *fp, char *map, voidp db) in read_file() function
328 error = read_file(mapf, mapsrc, db); in main()
/freebsd-12.1/contrib/bearssl/tools/
H A Dfiles.c35 read_file(const char *fname, size_t *len) in read_file() function
266 buf = read_file(fname, &len); in read_certificates()
H A Dbrssl.h333 unsigned char *read_file(const char *fname, size_t *len);
H A Dkeys.c109 buf = read_file(fname, &len); in read_private_key()
/freebsd-12.1/lib/libsecureboot/
H A Dreadfile.c55 read_file(const char *path, size_t *len) in read_file() function
H A Dvets.c655 if ((fcp = read_file(file, &flen)) == NULL) in verify_ec()
657 if ((scp = read_file(sigfile, &slen)) == NULL) { in verify_ec()
750 if ((fcp = read_file(file, &flen)) == NULL) in verify_rsa()
752 if ((scp = read_file(sigfile, &slen)) == NULL) { in verify_rsa()
H A Dpass_manifest.c83 content = read_file(path, NULL); in pass_manifest()
/freebsd-12.1/lib/libsecureboot/h/
H A Dlibsecureboot.h47 unsigned char * read_file(const char *, size_t *);
/freebsd-12.1/lib/libsecureboot/tests/
H A Dtvo.c127 cp = (char *)read_file(argv[optind], NULL); in main()
/freebsd-12.1/contrib/gcclibs/libcpp/
H A Dfiles.c158 static bool read_file (cpp_reader *pfile, _cpp_file *file);
635 read_file (cpp_reader *pfile, _cpp_file *file) in read_file() function
695 if (!read_file (pfile, file)) in should_stack_file()
742 same_file_p = read_file (pfile, ref_file) in should_stack_file()
/freebsd-12.1/bin/ed/
H A Ded.h244 long read_file(char *, long);
H A Dmain.c166 if (read_file(*argv, 0) < 0 && !isatty(0)) in main()
517 if (read_file(*fnp ? fnp : old_filename, 0) < 0) in exec_command()
676 if ((addr = read_file(*fnp ? fnp : old_filename, second_addr)) < 0) in exec_command()
/freebsd-12.1/contrib/bearssl/test/
H A Dtest_x509.c438 read_file(const char *name, size_t *len) in read_file() function
1201 tta->dn = read_file(dnfile, &tta->dn_len); in parse_object()
1505 certs[u].data = read_file(tc->cert_names[u], &certs[u].len); in run_test_case()
1814 data = read_file("names.crt", &len); in test_name_extraction()

12