Home
last modified time | relevance | path

Searched refs:tempname (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/arch/um/os-Linux/
Dmem.c119 char *tempname; in make_tempfile() local
142 tempname = malloc(strlen(tempdir) + strlen(template) + 1); in make_tempfile()
143 if (tempname == NULL) in make_tempfile()
146 strcpy(tempname, tempdir); in make_tempfile()
147 strcat(tempname, template); in make_tempfile()
148 fd = mkstemp(tempname); in make_tempfile()
150 os_warn("open - cannot create %s: %s\n", tempname, in make_tempfile()
154 if (unlink(tempname) < 0) { in make_tempfile()
158 free(tempname); in make_tempfile()
163 free(tempname); in make_tempfile()
/linux-6.1.9/fs/hpfs/
Ddir.c73 unsigned char *tempname; in hpfs_readdir() local
172 tempname = hpfs_translate_name(inode->i_sb, de->name, de->namelen, lc, de->not_8x3); in hpfs_readdir()
173 if (!dir_emit(ctx, tempname, de->namelen, le32_to_cpu(de->fnode), DT_UNKNOWN)) { in hpfs_readdir()
174 if (tempname != de->name) kfree(tempname); in hpfs_readdir()
179 if (tempname != de->name) kfree(tempname); in hpfs_readdir()
/linux-6.1.9/scripts/
Dunifdef.c188 static char tempname[FILENAME_MAX]; /* used when overwriting */ variable
341 snprintf(tempname, sizeof(tempname), in main()
345 snprintf(tempname, sizeof(tempname), in main()
347 ofd = mkstemp(tempname); in main()
609 unlink(tempname); in closeout()
626 if (overwriting && rename(tempname, ofilename) == -1) { in done()
628 unlink(tempname); in done()