Searched refs:tempname (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/arch/um/os-Linux/ |
D | mem.c | 97 char *tempname; in make_tempfile() local 120 tempname = malloc(strlen(tempdir) + strlen(template) + 1); in make_tempfile() 121 if (tempname == NULL) in make_tempfile() 124 strcpy(tempname, tempdir); in make_tempfile() 125 strcat(tempname, template); in make_tempfile() 126 fd = mkstemp(tempname); in make_tempfile() 128 os_warn("open - cannot create %s: %s\n", tempname, in make_tempfile() 132 if (unlink(tempname) < 0) { in make_tempfile() 136 free(tempname); in make_tempfile() 141 free(tempname); in make_tempfile()
|
/Linux-v5.4/fs/hpfs/ |
D | dir.c | 73 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-v5.4/scripts/ |
D | unifdef.c | 188 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()
|