Home
last modified time | relevance | path

Searched refs:tmpf (Results 1 – 18 of 18) sorted by relevance

/openbmc/phosphor-mboxd/test/
H A Dtmpf.c14 int tmpf_init(struct tmpf *tmpf, const char *template) in tmpf_init() argument
16 strcpy(tmpf->path, tmpf_dir); in tmpf_init()
17 strncat(tmpf->path, template, sizeof(tmpf->path) - sizeof(tmpf_dir)); in tmpf_init()
19 tmpf->fd = mkstemp(tmpf->path); in tmpf_init()
20 if (tmpf->fd < 0) { in tmpf_init()
28 void tmpf_destroy(struct tmpf *tmpf) in tmpf_destroy() argument
30 if (tmpf->fd) in tmpf_destroy()
31 close(tmpf->fd); in tmpf_destroy()
33 if (tmpf->path) in tmpf_destroy()
34 unlink(tmpf->path); in tmpf_destroy()
H A Dtmpf.h9 struct tmpf { struct
22 int tmpf_init(struct tmpf *tmpf, const char *template_str);
28 void tmpf_destroy(struct tmpf *tmpf);
H A DMakefile.am.include7 %reldir%/tmpf.c
13 %reldir%/tmpf.c
19 %reldir%/tmpf.c
29 TEST_MOCK_SRCS = %reldir%/tmpf.c %reldir%/mbox.c %reldir%/system.c
H A Dmbox.c197 struct tmpf mbox;
198 struct tmpf flash;
199 struct tmpf lpc;
H A Dcopy_flash.c20 static struct tmpf tmp;
H A Dwrite_flash.c16 struct tmpf _tmp, *tmp = &_tmp;
H A Derase_flash.c18 static struct tmpf mtd;
/openbmc/hiomapd/test/
H A Dtmpf.c14 int tmpf_init(struct tmpf *tmpf, const char *template) in tmpf_init() argument
16 strcpy(tmpf->path, tmpf_dir); in tmpf_init()
17 strncat(tmpf->path, template, sizeof(tmpf->path) - sizeof(tmpf_dir)); in tmpf_init()
19 tmpf->fd = mkstemp(tmpf->path); in tmpf_init()
20 if (tmpf->fd < 0) { in tmpf_init()
28 void tmpf_destroy(struct tmpf *tmpf) in tmpf_destroy() argument
30 if (tmpf->fd) in tmpf_destroy()
31 close(tmpf->fd); in tmpf_destroy()
33 unlink(tmpf->path); in tmpf_destroy()
H A Dtmpf.h9 struct tmpf { struct
22 int tmpf_init(struct tmpf *tmpf, const char *template_str);
28 void tmpf_destroy(struct tmpf *tmpf);
H A DMakefile.am.include8 %reldir%/tmpf.c \
16 %reldir%/tmpf.c
23 %reldir%/tmpf.c
33 %reldir%/tmpf.c \
H A Dmbox.c201 struct tmpf mbox;
202 struct tmpf flash;
203 struct tmpf lpc;
H A Dflash_copy.c21 static struct tmpf tmp;
H A Dflash_write.c19 struct tmpf _tmp, *tmp = &_tmp;
H A Dflash_erase.c20 static struct tmpf mtd;
/openbmc/phosphor-state-manager/test/
H A Dsystemd_parser.cpp43 std::FILE* tmpf = fopen("/tmp/good_file1.json", "w"); in TEST() local
44 std::fputs(defaultData1.dump().c_str(), tmpf); in TEST()
45 std::fclose(tmpf); in TEST()
47 tmpf = fopen("/tmp/good_file2.json", "w"); in TEST()
48 std::fputs(defaultData2.dump().c_str(), tmpf); in TEST()
49 std::fclose(tmpf); in TEST()
87 std::FILE* tmpf = fopen("/tmp/invalid_error_file.json", "w"); in TEST() local
88 std::fputs(invalidDataError.dump().c_str(), tmpf); in TEST()
89 std::fclose(tmpf); in TEST()
102 std::FILE* tmpf = fopen("/tmp/invalid_json_file.json", "w"); in TEST() local
/openbmc/openbmc/poky/scripts/lib/wic/
H A Dengine.py319 tmpf = tempfile.NamedTemporaryFile(prefix="wic-part")
320 dst_fname = tmpf.name
321 tmpf.close()
/openbmc/qemu/accel/tcg/
H A Dcputlb.c1319 CPUTLBEntryFull tmpf; in victim_tlb_hit() local
1320 tmpf = *f1; *f1 = *f2; *f2 = tmpf; in victim_tlb_hit()
/openbmc/linux/
H A Dopengrok0.0.log[all...]