Searched defs:tempfile (Results 1 - 15 of 15) sorted by relevance

/freebsd-head/contrib/googletest/googletest/test/
H A Dgtest_test_utils.py42 import tempfile namespace
146 _temp_dir = tempfile.mkdtemp()
/freebsd-head/contrib/elftoolchain/elfcopy/
H A Darchive.c67 char *tempfile; local
71 create_tempfile(&tempfile, &fd);
84 err(EXIT_FAILURE, "lseek failed for '%s'", tempfile);
92 err(EXIT_FAILURE, "fstat %s failed", tempfile);
94 err(EXIT_FAILURE, "lseek %s failed", tempfile);
98 tempfile);
100 err(EXIT_FAILURE, "read failed for '%s'", tempfile);
101 if (unlink(tempfile))
102 err(EXIT_FAILURE, "unlink %s failed", tempfile);
103 free(tempfile);
[all...]
H A Dmain.c618 char *tempfile, *elftemp; local
622 tempfile = NULL;
633 create_tempfile(&tempfile, &ofd);
717 * Create (another) tempfile for binary/srec/ihex
720 if (tempfile != NULL) {
721 if (unlink(tempfile) < 0)
723 tempfile);
724 free(tempfile);
726 create_tempfile(&tempfile, &ofd0);
783 if (tempfile !
[all...]
/freebsd-head/bin/pax/
H A Dpax.c106 char *tempfile; /* tempfile to use for mkstemp(3) */ variable
107 char *tempbase; /* basename of tempfile to use for mkstemp(3) */
254 tempfile = malloc(tdlen + 1 + sizeof(_TFILE_BASE));
255 if (tempfile == NULL) {
260 memcpy(tempfile, tmpdir, tdlen);
261 tempbase = tempfile + tdlen;
/freebsd-head/contrib/libarchive/libarchive/
H A Darchive_read_disk_entry_from_file.c337 struct archive_string tempfile; local
360 archive_string_init(&tempfile);
361 archive_strcpy(&tempfile, tempdir);
362 archive_strcat(&tempfile, "tar.md.XXXXXX");
363 tempfd = mkstemp(tempfile.s);
376 if (copyfile(name, tempfile.s, 0, copyfile_flags | COPYFILE_PACK)) {
406 unlink(tempfile.s);
408 archive_string_free(&tempfile);
/freebsd-head/contrib/kyua/utils/fs/
H A Doperations_test.cpp561 const std::string file_template("tempfile.XXXXXX");
562 const fs::path tempfile = fs::mkstemp(file_template); local
564 ATF_REQUIRE(lookup("tmp", tempfile.leaf_name().c_str(), S_IFREG));
/freebsd-head/contrib/libedit/
H A Dvi.c1007 char tempfile[] = "/tmp/histedit.XXXXXXXXXX"; local
1017 fd = mkstemp(tempfile);
1041 execlp("vi", "vi", tempfile, (char *)NULL);
1066 unlink(tempfile);
1073 unlink(tempfile);
/freebsd-head/tests/sys/kern/
H A Dunix_passfd_test.c83 tempfile(int *fdp) function
266 tempfile(&putfd);
288 tempfile(&putfd);
309 tempfile(&putfd);
326 tempfile(&putfd_1);
327 tempfile(&putfd_2);
421 tempfile(&putfd);
/freebsd-head/contrib/subversion/subversion/libsvn_client/
H A Dblame.c488 since the tempfile will be removed by the pool and we need the tempfile
834 svn_stream_t *tempfile; local
865 SVN_ERR(svn_stream_open_unique(&tempfile, &temppath, NULL,
869 SVN_ERR(svn_stream_copy3(wcfile, tempfile, ctx->cancel_func,
/freebsd-head/usr.bin/xinstall/
H A Dxinstall.c772 char backup[MAXPATHLEN], *p, pathbuf[MAXPATHLEN], tempfile[MAXPATHLEN]; local
849 to_fd = create_tempfile(to_name, tempfile,
850 sizeof(tempfile));
852 err(EX_OSERR, "%s", tempfile);
863 tempcopy ? tempfile : to_name, from_sb.st_size);
869 strip(tempcopy ? tempfile : to_name);
876 to_fd = open(tempcopy ? tempfile : to_name, O_RDONLY, 0);
893 (void)unlink(tempfile);
895 err(EX_OSERR, "%s", tempfile);
898 if (compare(temp_fd, tempfile, (size_
[all...]
/freebsd-head/contrib/subversion/subversion/libsvn_repos/
H A Ddump.c325 store_delta(apr_file_t **tempfile, svn_filesize_t *len,
337 SVN_ERR(svn_io_open_unique_file3(tempfile, NULL, NULL,
340 temp_stream = svn_stream_from_aprfile2(*tempfile, TRUE, pool);
350 SVN_ERR(svn_io_file_get_offset(&offset, *tempfile, pool));
353 return svn_io_file_seek(*tempfile, APR_SET, &offset, pool);
324 store_delta(apr_file_t **tempfile, svn_filesize_t *len, svn_fs_root_t *oldroot, const char *oldpath, svn_fs_root_t *newroot, const char *newpath, apr_pool_t *pool) argument
/freebsd-head/usr.bin/diff/
H A Ddiffreg.c463 char buf[BUFSIZ], tempfile[PATH_MAX]; local
472 (void)strlcpy(tempfile, _PATH_TMP "/diff.XXXXXXXX", sizeof(tempfile));
474 if ((ofd = mkstemp(tempfile)) == -1) {
478 unlink(tempfile);
/freebsd-head/usr.sbin/newsyslog/
H A Dnewsyslog.c2618 char *realfile, *slash, tempfile[MAXPATHLEN]; local
2629 strlcpy(tempfile, realfile, sizeof(tempfile));
2630 slash = strrchr(tempfile, '/');
2633 failed = stat(tempfile, &st);
2635 err(1, "Error on stat(%s)", tempfile);
2637 createdir(ent, tempfile);
2640 tempfile);
2650 strlcpy(tempfile, realfile, sizeof(tempfile));
[all...]
/freebsd-head/contrib/subversion/subversion/libsvn_subr/
H A Dio.c492 filename = "tempfile";
1570 Using svn_io_open_uniquely_named() here because other tempfile
5276 apr_file_t *tempfile;
5324 SVN_ERR(temp_file_create(&tempfile, &tempname, dirpath, flags,
5332 * .svn/tmp area and it's likely that the tempfile will end up being
5335 * expect to see 0644 or 0664. So we tweak perms of the tempfile in this
5341 SVN_ERR(merge_default_file_perms(tempfile, &perms, dirpath,
5343 err = file_perms_set2(tempfile, perms, scratch_pool);
5360 *file = tempfile;
5362 SVN_ERR(svn_io_file_close(tempfile, scratch_poo
5265 apr_file_t *tempfile; local
[all...]
/freebsd-head/contrib/subversion/subversion/libsvn_wc/
H A Ddeprecated.c471 svn_wc_transmit_text_deltas2(const char **tempfile,
490 if (tempfile)
496 SVN_ERR(svn_io_open_unique_file3(&f, tempfile, NULL,
514 if (tempfile)
521 err, svn_io_remove_file2(*tempfile, TRUE, pool));
539 const char **tempfile,
542 return svn_wc_transmit_text_deltas2(tempfile, NULL, path, adm_access,
552 const char **tempfile,
558 if (tempfile)
559 *tempfile
470 svn_wc_transmit_text_deltas2(const char **tempfile, unsigned char digest[], const char *path, svn_wc_adm_access_t *adm_access, svn_boolean_t fulltext, const svn_delta_editor_t *editor, void *file_baton, apr_pool_t *pool) argument
533 svn_wc_transmit_text_deltas(const char *path, svn_wc_adm_access_t *adm_access, svn_boolean_t fulltext, const svn_delta_editor_t *editor, void *file_baton, const char **tempfile, apr_pool_t *pool) argument
546 svn_wc_transmit_prop_deltas(const char *path, svn_wc_adm_access_t *adm_access, const svn_wc_entry_t *entry, const svn_delta_editor_t *editor, void *baton, const char **tempfile, apr_pool_t *pool) argument
[all...]

Completed in 174 milliseconds