Home
last modified time | relevance | path

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

12

/freebsd-13.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-13.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-13.1/sys/contrib/zstd/doc/educational_decoder/
H A Dharness.c36 static buffer_s read_file(const char *path) in read_file() function
75 buffer_s const input = read_file(argv[1]); in main()
79 dict = read_file(argv[3]); in main()
/freebsd-13.1/sys/tools/
H A Dmakesyscalls.lua395 local function read_file(tmpfile) function
1380 write_line("syssw", read_file("sysinc"))
1381 write_line("syssw", read_file("sysent"))
1383 write_line("sysproto", read_file("sysarg"))
1384 write_line("sysproto", read_file("sysdcl"))
1386 write_line("sysproto", read_file(v["tmp"]))
1387 write_line("sysproto", read_file(v["dcltmp"]))
1389 write_line("sysproto", read_file("sysaue"))
1390 write_line("sysproto", read_file("sysprotoend"))
1392 write_line("systrace", read_file("systracetmp"))
[all …]
/freebsd-13.1/contrib/kyua/utils/
H A Dstream_test.cpp111 ATF_REQUIRE_EQ(contents, utils::read_file(fs::path("input.txt"))); in ATF_TEST_CASE_BODY()
120 utils::read_file(fs::path("foo.txt"))); in ATF_TEST_CASE_BODY()
H A Dstream.hpp51 std::string read_file(const utils::fs::path&);
H A Dstream.cpp121 utils::read_file(const fs::path& path) in read_file() function in utils
/freebsd-13.1/lib/libsecureboot/openpgp/
H A Dopgp_sig.c449 sdata = read_file(sname, &sz);
468 if ((sdata = read_file(sigfile, &sbytes))) {
472 if ((fdata = read_file(pbuf, &fbytes))) {
H A Ddearmor.c130 data = read_file(infile, &n); in main()
/freebsd-13.1/sbin/pfctl/tests/
H A Dpfctl_test.c108 read_file(const char *filename) in read_file() function
144 expected_output = read_file(expected_path); in run_pfctl_test()
/freebsd-13.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-13.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-13.1/libexec/tftpd/
H A Dtftp-file.h36 size_t read_file(char *buffer, int count);
H A Dtftp-file.c251 read_file(char *buffer, int count) in read_file() function
/freebsd-13.1/usr.sbin/config/
H A Dmkmakefile.c390 read_file(char *fname) in read_file() function
434 read_file(ifname); in read_file()
627 read_file(fname); in read_files()
630 read_file(fname); in read_files()
632 read_file(nl->f_name); in read_files()
/freebsd-13.1/contrib/kyua/store/
H A Dschema_inttest.cpp426 db.exec(utils::read_file(store::detail::schema_file())); \
427 db.exec(utils::read_file(testdata_file(\
466 db.exec(utils::read_file(testdata_file(schema))); \
467 db.exec(utils::read_file(testdata_file(testdata))); \
H A Dwrite_backend.cpp113 db.exec(utils::read_file(schema)); in initialize()
/freebsd-13.1/lib/libsecureboot/h/
H A Dlibsecureboot.h47 unsigned char * read_file(const char *, size_t *);
/freebsd-13.1/lib/libsecureboot/
H A Dreadfile.c55 read_file(const char *path, size_t *len) in read_file() function
H A Dvets.c662 if ((fcp = read_file(file, &flen)) == NULL) in verify_ec()
664 if ((scp = read_file(sigfile, &slen)) == NULL) { in verify_ec()
757 if ((fcp = read_file(file, &flen)) == NULL) in verify_rsa()
759 if ((scp = read_file(sigfile, &slen)) == NULL) { in verify_rsa()
H A Dpass_manifest.c83 content = read_file(path, NULL); in pass_manifest()
/freebsd-13.1/contrib/kyua/integration/helpers/
H A Drace.cpp90 const std::string read_contents = utils::read_file(shared_path); in main()
/freebsd-13.1/contrib/llvm-project/lldb/source/Interpreter/
H A DScriptInterpreter.cpp176 lldb::file_t read_file = pipe.GetReadNativeHandle(); in ScriptInterpreterIORedirect() local
179 std::make_unique<ConnectionGenericFile>(read_file, true); in ScriptInterpreterIORedirect()
/freebsd-13.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()
/freebsd-13.1/contrib/libfido2/tools/
H A Dextern.h89 int read_file(const char *, u_char **, size_t *);

12