Home
last modified time | relevance | path

Searched refs:pfile (Results 1 – 14 of 14) sorted by relevance

/freebsd/tests/sys/cddl/zfs/tests/ctime/
H A Dctime_001_pos.c47 int (*func)(const char *pfile);
76 int get_file_time(char *pfile, int what, time_t *ptr);
78 int do_read(const char *pfile);
79 int do_write(const char *pfile);
80 int do_link(const char *pfile);
81 int do_creat(const char *pfile);
82 int do_utime(const char *pfile);
83 int do_chmod(const char *pfile);
84 int do_chown(const char *pfile);
182 get_file_time(char *pfile, int what, time_t *ptr) in get_file_time() argument
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dctime.c55 int (*func)(const char *pfile);
72 get_file_time(const char *pfile, int what, time_t *ptr) in get_file_time() argument
76 if (pfile == NULL || ptr == NULL) { in get_file_time()
80 if (stat(pfile, &stat_buf) == -1) { in get_file_time()
107 do_read(const char *pfile) in do_read() argument
112 if (pfile == NULL) { in do_read()
116 if ((fd = open(pfile, O_RDONLY, ALL_MODE)) == -1) { in do_read()
131 do_write(const char *pfile) in do_write() argument
136 if (pfile == NULL) { in do_write()
140 if ((fd = open(pfile, O_WRONLY, ALL_MODE)) == -1) { in do_write()
[all …]
/freebsd/contrib/elftoolchain/strings/
H A Dstrings.c226 FILE *pfile; in handle_file() local
231 pfile = fileargs_fopen(fa, name, "rb"); in handle_file()
232 if (pfile == NULL) { in handle_file()
237 rt = handle_elf(name, pfile); in handle_file()
238 fclose(pfile); in handle_file()
247 handle_binary(const char *name, FILE *pfile, size_t size) in handle_binary() argument
250 (void)fseeko(pfile, 0, SEEK_SET); in handle_binary()
251 return (find_strings(name, pfile, 0, size)); in handle_binary()
261 handle_elf(const char *name, FILE *pfile) in handle_elf() argument
271 fd = fileno(pfile); in handle_elf()
[all …]
/freebsd/lib/libcasper/services/cap_fileargs/tests/
H A Dfileargs_test.c110 FILE *pfile; in test_file_fopen() local
112 pfile = fileargs_fopen(fa, file, mode); in test_file_fopen()
113 if (pfile == NULL) in test_file_fopen()
117 *retfile = pfile; in test_file_fopen()
252 test_file_fwrite(FILE *pfile) in test_file_fwrite() argument
257 if (fwrite(&buf, sizeof(buf), 1, pfile) != sizeof(buf)) in test_file_fwrite()
264 test_file_fread(FILE *pfile) in test_file_fread() argument
270 ret = fread(&buf, sizeof(buf), 1, pfile); in test_file_fread()
274 } else if (ret == 0 && feof(pfile) == 0) { in test_file_fread()
462 FILE *pfile; in ATF_TC_BODY() local
[all …]
/freebsd/contrib/one-true-awk/
H A Dmain.c47 static char **pfile; /* program filenames from -f's */ variable
193 pfile = (char **) realloc(pfile, maxpfile * sizeof(*pfile)); in main()
194 if (pfile == NULL) in main()
197 pfile[npfile++] = fn; in main()
271 if (strcmp(pfile[curpfile], "-") == 0) in pgetc()
273 else if ((yyin = fopen(pfile[curpfile], "r")) == NULL) in pgetc()
274 FATAL("can't open file %s", pfile[curpfile]); in pgetc()
289 return pfile[curpfile < npfile ? curpfile : curpfile - 1]; in cursource()
/freebsd/usr.bin/gprof/
H A Dgprof.c222 FILE *pfile; in getpfile() local
225 pfile = openpfile(filename); in getpfile()
226 readsamples(pfile); in getpfile()
231 while ( fread( &arc , sizeof arc , 1 , pfile ) == 1 ) { in getpfile()
243 fclose(pfile); in getpfile()
250 FILE *pfile; in openpfile() local
254 if((pfile = fopen(filename, "r")) == NULL) in openpfile()
256 fread(&tmp, sizeof(struct gmonhdr), 1, pfile); in openpfile()
265 fseek(pfile, sizeof(struct ophdr), SEEK_SET); in openpfile()
302 return(pfile); in openpfile()
[all …]
/freebsd/sys/tools/
H A Dvnode_if.awk62 function printp(s) {print s > pfile;}
151 pfile = "vnode_if_newproto.h";
159 if (!cfile && !hfile && !pfile && !qfile)
175 if (pfile) {
306 if (pfile) {
500 if (pfile) {
509 if (pfile)
510 close(pfile);
/freebsd/contrib/one-true-awk/bugs-fixed/
H A Dpfile-overflow.err1 awk: syntax error at source line 1 source file pfile-overflow.awk
4 awk: bailing out at source line 1 source file pfile-overflow.awk
/freebsd/contrib/atf/atf-c/detail/
H A Dfs_test.c569 atf_fs_path_t pdir, pfile; in ATF_TC_BODY() local
573 RE(atf_fs_path_init_fmt(&pfile, "dir/file")); in ATF_TC_BODY()
576 create_file(atf_fs_path_cstring(&pfile), 0644); in ATF_TC_BODY()
583 RE(atf_fs_exists(&pfile, &b)); in ATF_TC_BODY()
593 err = atf_fs_exists(&pfile, &b); in ATF_TC_BODY()
601 ATF_REQUIRE(unlink(atf_fs_path_cstring(&pfile)) != -1); in ATF_TC_BODY()
602 RE(atf_fs_exists(&pfile, &b)); in ATF_TC_BODY()
605 atf_fs_path_fini(&pfile); in ATF_TC_BODY()
/freebsd/usr.bin/m4/
H A Deval.c749 dopaste(const char *pfile) in dopaste() argument
754 if ((pf = fopen(pfile, "r")) != NULL) { in dopaste()
756 fprintf(active, "#line 1 \"%s\"\n", pfile); in dopaste()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_format_iso9660.c2800 struct file_info **pfile) in next_entry_seek() argument
2805 r = next_cache_entry(a, iso9660, pfile); in next_entry_seek()
2808 file = *pfile; in next_entry_seek()
2838 struct file_info **pfile) in next_cache_entry() argument
2850 *pfile = file; in next_cache_entry()
2857 *pfile = file = next_entry(iso9660); in next_cache_entry()
2874 return (next_cache_entry(a, iso9660, pfile)); in next_cache_entry()
2910 *pfile = file = re; in next_cache_entry()
3008 *pfile = file; in next_cache_entry()
3035 *pfile = cache_get_entry(iso9660); in next_cache_entry()
[all …]
/freebsd/contrib/elftoolchain/addr2line/
H A Daddr2line.c671 char *file, *file0, *pfile; in translate() local
753 pfile = unknown; in translate()
771 file = pfile; in translate()
776 pfile = file; in translate()
/freebsd/contrib/googletest/googletest/src/
H A Dgtest.cc5092 FILE* pfile = posix::FOpen(premature_exit_filepath_.c_str(), "w"); in ScopedPrematureExitFile() local
5093 fwrite("0", 1, 1, pfile); in ScopedPrematureExitFile()
5094 fclose(pfile); in ScopedPrematureExitFile()
/freebsd/
H A DObsoleteFiles.inc1321 OLD_FILES+=usr/tests/usr.bin/awk/bugs-fixed/pfile-overflow.ok