Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/testing/selftests/ntb/
H A Dntb_test.sh99 function read_file() function
147 PEER_PORT=$(read_file "${PEER_DIR}/port")
164 LOCAL_PORT=$(read_file "$LOC/port")
165 REMOTE_PORT=$(read_file "$REM/port")
191 if [[ $(read_file "$REM/link") != "N" ]]; then
209 DB_VALID_MASK=$(read_file "$LOC/db_valid_mask")
214 DB=$(read_file "$REM/db")
268 RVAL=$(read_file "$REM/../spad$i")
293 MSG_OUTBITS_MASK=$(read_file "$LOC/../msg_inbits")
294 MSG_INBITS_MASK=$(read_file "$REM/../msg_inbits")
[all …]
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dvvfat236 fat16.read_file(file), f"Hello, world! {i}\n".encode("ascii")
242 self.assertEqual(fat16.read_file(large1), f.read())
247 self.assertEqual(fat16.read_file(large2), f.read())
264 self.assertEqual(fat16.read_file(file), f.read())
275 self.assertEqual(fat16.read_file(file), b"Hello, world! 0\n")
278 self.assertEqual(fat16.read_file(file), b"Hello, world! 0\n")
294 self.assertEqual(fat16.read_file(file), b"Hello, world! 0\n")
297 self.assertEqual(fat16.read_file(file), new_content)
312 self.assertEqual(fat16.read_file(file), b"Hello, world! 0\n")
315 new_content = fat16.read_file(file)
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/netcf/netcf/
H A D0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch4 Subject: [PATCH] Adopt to new gnulib read_file/fread_file signature
28 - state = read_file(path, &length);
29 + state = read_file(path, 0, &length);
37 - speed = read_file(path, &length);
38 + speed = read_file(path, 0, &length);
63 - xml = read_file(fname, &length);
64 + xml = read_file(fname, 0, &length);
76 - in_xml = read_file(argv[2], &length);
77 + in_xml = read_file(argv[2], 0, &length);
/openbmc/u-boot/test/py/tests/
H A Dtest_fit.py138 def read_file(fname): function
273 expected_data = read_file(expected_fname)
274 actual_data = read_file(actual_fname)
285 expected_data = read_file(expected_fname)
286 actual_data = read_file(actual_fname)
377 data = read_file(fit)
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dlayerappend.py89 data = ftools.read_file(stagingdir + "/appendtest.txt")
93 data = ftools.read_file(stagingdir + "/appendtest.txt")
98 data = ftools.read_file(stagingdir + "/appendtest.txt")
H A Dbblock.py34 contents = ftools.read_file(self.lockfile)
60 contents = ftools.read_file(self.lockfile)
H A Dbuildoptions.py30 log_data_created = ftools.read_file(log_data_file)
35 log_data_removed = ftools.read_file(log_data_file)
H A Dbbtests.py107 man_split_content = ftools.read_file(man_split_file)
131 self.assertIn(recipe, ftools.read_file(os.path.join(self.builddir, 'task-depends.dot')))
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dftools.py27 def read_file(path): function
38 rdata = read_file(path)
/openbmc/openbmc/poky/meta/classes-recipe/
H A Dmodule-base.bbclass22 export KERNEL_VERSION = "${@oe.utils.read_file('${STAGING_KERNEL_BUILDDIR}/kernel-abiversion')}"
23 export LOCALVERSION = "${@oe.utils.read_file('${STAGING_KERNEL_BUILDDIR}/kernel-localversion')}"
/openbmc/linux/tools/testing/selftests/powerpc/
H A Dutils.c31 int read_file(const char *path, char *buf, size_t count, size_t *len) in read_file() function
159 err = read_file("/proc/self/auxv", buf, buf_size, NULL); in read_auxv()
174 return read_file(path, buf, count, NULL); in read_debugfs_file()
311 err = read_file(path, buffer, sizeof(buffer) - 1, NULL); in read_long()
323 err = read_file(path, buffer, sizeof(buffer) - 1, NULL); in read_ulong()
499 return read_file(path, result, result_size, NULL); in read_sysfs_file()
/openbmc/linux/scripts/basic/
H A Dfixdep.c214 static void *read_file(const char *filename) in read_file() function
396 buf = read_file(p); in parse_dep_file()
429 buf = read_file(depfile); in main()
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-strenum/
H A D0001-patch-versioneer-for-python-3.12-compatibility.patch9 …ted since Python 3.2 and removed in Python 3.12 (due October 2023). Use read_file and ConfigParser…
31 + parser.read_file(f)
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/
H A Dcase.py56 not in ftools.read_file(os.path.join(cls.builddir, "conf/local.conf")):
62 not in ftools.read_file(os.path.join(cls.builddir, "conf/bblayers.conf")):
70 in ftools.read_file(os.path.join(cls.builddir, "conf/local.conf")):
76 in ftools.read_file(os.path.join(cls.builddir, "conf/bblayers.conf")):
/openbmc/u-boot/test/dm/
H A Dvideo.c276 static int read_file(struct unit_test_state *uts, const char *fname, in read_file() function
304 ut_assertok(read_file(uts, "tools/logos/denx.bmp", &addr)); in dm_test_video_bmp()
320 ut_assertok(read_file(uts, "tools/logos/denx-comp.bmp", &addr)); in dm_test_video_bmp_comp()
/openbmc/linux/fs/hostfs/
H A Dhostfs_user_exp.c10 EXPORT_SYMBOL_GPL(read_file);
H A Dhostfs.h83 extern int read_file(int fd, unsigned long long *offset, char *buf, int len);
/openbmc/openbmc/meta-phosphor/classes/
H A Dimage_version.bbclass17 parser.read_file(fd)
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/files/
H A D0001-versioneer.py-do-not-use-SafeConfigParser.patch26 + parser.read_file(f)
/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-webadmin/webmin/files/
H A Ddisable-version-check.patch28 - &read_file($realos_cache_file, \%realos);
/openbmc/linux/scripts/
H A Dinsert-sys-cert.c228 static char *read_file(char *file_name, int *size) in read_file() function
310 cert = read_file(cert_file, &cert_size); in main()
/openbmc/openbmc/poky/scripts/lib/devtool/
H A D__init__.py302 def read_file(path): function
319 rdata = read_file(path)
/openbmc/linux/tools/testing/selftests/powerpc/include/
H A Dutils.h53 int read_file(const char *path, char *buf, size_t count, size_t *len);
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/netcf/
H A Dnetcf_0.2.8.bb13 file://0001-Adopt-to-new-gnulib-read_file-fread_file-signature.patch"
/openbmc/linux/tools/testing/selftests/mm/
H A Dkhugepaged.c164 static int read_file(const char *path, char *buf, size_t buflen) in read_file() function
221 if (!read_file(path, buf, sizeof(buf))) { in read_string()
274 if (read_file(path, buf, sizeof(buf)) < 0) { in _read_num()
458 if (read_file(path, buf, sizeof(buf)) < 0) { in get_finfo()

12