Searched refs:tempfile (Results 76 - 94 of 94) sorted by relevance

1234

/freebsd-11-stable/contrib/elftoolchain/elfcopy/
H A Darchive.c67 char *tempfile; local
71 create_tempfile(NULL, &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.c631 char *tempfile, *elftemp; local
635 tempfile = NULL;
646 create_tempfile(src, &tempfile, &ofd);
730 * Create (another) tempfile for binary/srec/ihex
733 if (tempfile != NULL) {
734 if (unlink(tempfile) < 0)
736 tempfile);
737 free(tempfile);
739 create_tempfile(src, &tempfile, &ofd0);
796 if (tempfile !
[all...]
/freebsd-11-stable/usr.bin/xinstall/
H A Dxinstall.c755 char backup[MAXPATHLEN], *p, pathbuf[MAXPATHLEN], tempfile[MAXPATHLEN]; local
831 to_fd = create_tempfile(to_name, tempfile,
832 sizeof(tempfile));
834 err(EX_OSERR, "%s", tempfile);
845 stripped = strip(tempcopy ? tempfile : to_name,
849 tempcopy ? tempfile : to_name, from_sb.st_size);
855 (void)strip(tempcopy ? tempfile : to_name, to_fd,
863 to_fd = open(tempcopy ? tempfile : to_name, O_RDONLY, 0);
880 (void)unlink(tempfile);
882 err(EX_OSERR, "%s", tempfile);
[all...]
/freebsd-11-stable/usr.sbin/newsyslog/
H A Dnewsyslog.c2580 char *realfile, *slash, tempfile[MAXPATHLEN]; local
2591 strlcpy(tempfile, realfile, sizeof(tempfile));
2592 slash = strrchr(tempfile, '/');
2595 failed = stat(tempfile, &st);
2597 err(1, "Error on stat(%s)", tempfile);
2599 createdir(ent, tempfile);
2602 tempfile);
2612 strlcpy(tempfile, realfile, sizeof(tempfile));
[all...]
/freebsd-11-stable/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-11-stable/bin/pax/
H A Dtables.c345 if ((ffd = mkstemp(tempfile)) < 0) {
347 tempfile);
350 (void)unlink(tempfile);
1101 if ((dirfd = mkstemp(tempfile)) >= 0) {
1102 (void)unlink(tempfile);
1106 tempfile);
H A Dextern.h237 extern char *tempfile;
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_disk_entry_from_file.c341 struct archive_string tempfile; local
364 archive_string_init(&tempfile);
365 archive_strcpy(&tempfile, tempdir);
366 archive_strcat(&tempfile, "tar.md.XXXXXX");
367 tempfd = mkstemp(tempfile.s);
380 if (copyfile(name, tempfile.s, 0, copyfile_flags | COPYFILE_PACK)) {
410 unlink(tempfile.s);
412 archive_string_free(&tempfile);
/freebsd-11-stable/lib/libedit/
H A Dvi.c1008 char tempfile[] = "/tmp/histedit.XXXXXXXXXX"; local
1018 fd = mkstemp(tempfile);
1042 execlp("vi", "vi", tempfile, (char *)NULL);
1067 unlink(tempfile);
1074 unlink(tempfile);
/freebsd-11-stable/contrib/dialog/samples/
H A Ddialog.py61 from tempfile import mktemp
/freebsd-11-stable/contrib/ntp/scripts/update-leap/
H A Dupdate-leap.in24 use File::Temp qw(tempfile);
185 ($TMP_FH, $TMP_FILE) = tempfile(UNLINK => 1, SUFFIX => '.list');
/freebsd-11-stable/contrib/apr/
H A Dapr.mak1285 <<tempfile.bat
1296 <<tempfile.bat
1307 <<tempfile.bat
1318 <<tempfile.bat
1333 <<tempfile.bat
1345 <<tempfile.bat
1357 <<tempfile.bat
1369 <<tempfile.bat
H A Dlibapr.mak1483 <<tempfile.bat
1494 <<tempfile.bat
1505 <<tempfile.bat
1516 <<tempfile.bat
1531 <<tempfile.bat
1543 <<tempfile.bat
1555 <<tempfile.bat
1567 <<tempfile.bat
1579 <<tempfile.bat
1591 <<tempfile
[all...]
/freebsd-11-stable/usr.bin/diff/
H A Ddiffreg.c512 char buf[BUFSIZ], tempfile[PATH_MAX]; local
521 (void)strlcpy(tempfile, _PATH_TMP "/diff.XXXXXXXX", sizeof(tempfile));
523 if ((ofd = mkstemp(tempfile)) == -1) {
527 unlink(tempfile);
/freebsd-11-stable/contrib/subversion/subversion/libsvn_client/
H A Dblame.c488 since the tempfile will be removed by the pool and we need the tempfile
839 svn_stream_t *tempfile; local
870 SVN_ERR(svn_stream_open_unique(&tempfile, &temppath, NULL,
874 SVN_ERR(svn_stream_copy3(wcfile, tempfile, ctx->cancel_func,
/freebsd-11-stable/contrib/subversion/subversion/libsvn_repos/
H A Ddump.c326 store_delta(apr_file_t **tempfile, svn_filesize_t *len,
338 SVN_ERR(svn_io_open_unique_file3(tempfile, NULL, NULL,
341 temp_stream = svn_stream_from_aprfile2(*tempfile, TRUE, pool);
351 SVN_ERR(svn_io_file_get_offset(&offset, *tempfile, pool));
354 return svn_io_file_seek(*tempfile, APR_SET, &offset, pool);
325 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-11-stable/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...]
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/
H A Dio.c539 filename = "tempfile";
1617 Using svn_io_open_uniquely_named() here because other tempfile
5575 apr_file_t *tempfile;
5623 SVN_ERR(temp_file_create(&tempfile, &tempname, dirpath, flags,
5631 * .svn/tmp area and it's likely that the tempfile will end up being
5634 * expect to see 0644 or 0664. So we tweak perms of the tempfile in this
5640 SVN_ERR(merge_default_file_perms(tempfile, &perms, dirpath,
5642 err = file_perms_set2(tempfile, perms, scratch_pool);
5659 *file = tempfile;
5661 SVN_ERR(svn_io_file_close(tempfile, scratch_poo
5564 apr_file_t *tempfile; local
[all...]
/freebsd-11-stable/contrib/subversion/subversion/include/
H A Dsvn_wc.h7937 * copy (and set @a *tempfile to NULL if appropriate), and return the
7960 * If @a tempfile is non-NULL, make a copy of @a path with keywords
7961 * and eol translated to repository-normal form, and set @a *tempfile to the
7973 svn_wc_transmit_text_deltas2(const char **tempfile,
7993 const char **tempfile,
8012 * adm_access baton and tempfile.
8015 * path to that file is returned in @a *tempfile (so the caller can
8018 * @note Starting version 1.5, no tempfile will ever be returned
8019 * anymore. If @a *tempfile is passed, its value is set to @c NULL.
8030 const char **tempfile,
[all...]

Completed in 634 milliseconds

1234