/third_party/ltp/testcases/kernel/syscalls/readahead/ |
D | readahead01.c | 33 char tempname[PATH_MAX] = "readahead01_XXXXXX"; in test_bad_fd() local 40 fd = mkstemp(tempname); in test_bad_fd() 44 fd = SAFE_OPEN(tempname, O_WRONLY); in test_bad_fd() 47 unlink(tempname); in test_bad_fd()
|
/third_party/python/Tools/scripts/ |
D | pathfix.py | 133 tempname = os.path.join(head, '@' + tail) 135 g = open(tempname, 'wb') 137 err('%s: cannot create: %r\n' % (tempname, msg)) 157 os.chmod(tempname, statbuf[ST_MODE] & 0o7777) 159 err('%s: warning: chmod failed (%r)\n' % (tempname, msg)) 173 os.rename(tempname, filename)
|
D | fixcid.py | 131 tempname = os.path.join(head, '@' + tail) 150 g = open(tempname, 'w') 153 err(tempname+': cannot create: '+ 178 os.chmod(tempname, statbuf[ST_MODE] & 0o7777) 180 err(tempname + ': warning: chmod failed (' + str(msg) + ')\n') 188 os.rename(tempname, filename)
|
/third_party/curl/lib/ |
D | fopen.c | 95 FILE **fh, char **tempname) in Curl_fopen() argument 103 *tempname = NULL; in Curl_fopen() 140 *tempname = tempstore; in Curl_fopen()
|
D | fopen.h | 28 FILE **fh, char **tempname);
|
/third_party/toybox/lib/ |
D | lib.c | 762 int copy_tempfile(int fdin, char *name, char **tempname) in copy_tempfile() argument 765 int fd = xtempfile(name, tempname), ignored __attribute__((__unused__)); in copy_tempfile() 769 tempfile2zap = *tempname; in copy_tempfile() 785 void delete_tempfile(int fdin, int fdout, char **tempname) in delete_tempfile() argument 789 if (*tempname) unlink(*tempname); in delete_tempfile() 791 free(*tempname); in delete_tempfile() 792 *tempname = NULL; in delete_tempfile() 796 void replace_tempfile(int fdin, int fdout, char **tempname) in replace_tempfile() argument 798 char *temp = xstrdup(*tempname); in replace_tempfile() 806 xrename(*tempname, temp); in replace_tempfile() [all …]
|
D | lib.h | 153 int xtempfile(char *name, char **tempname); 256 int copy_tempfile(int fdin, char *name, char **tempname); 257 void delete_tempfile(int fdin, int fdout, char **tempname); 258 void replace_tempfile(int fdin, int fdout, char **tempname);
|
D | xwrap.c | 427 int xtempfile(char *name, char **tempname) in xtempfile() argument 431 *tempname = xmprintf("%s%s", name, "XXXXXX"); in xtempfile() 432 if(-1 == (fd = mkstemp(*tempname))) error_exit("no temp file"); in xtempfile()
|
/third_party/toybox/toys/posix/ |
D | patch.c | 58 char *tempname; 88 if (TT.tempname) replace_tempfile(TT.filein, TT.fileout, &TT.tempname); in finish_oldfile() 106 if (!FLAG(dry_run)) delete_tempfile(TT.filein, TT.fileout, &TT.tempname); in fail_hunk() 427 else TT.fileout = copy_tempfile(TT.filein, name, &TT.tempname); in patch_main()
|
/third_party/ninja/src/ |
D | test.cc | 210 char* tempname = mkdtemp(name_template); in CreateAndEnter() local 211 if (!tempname) in CreateAndEnter() 213 temp_dir_name_ = tempname; in CreateAndEnter()
|
/third_party/nghttp2/src/ |
D | shrpx_api_downstream_connection.cc | 243 char tempname[] = "/tmp/nghttpx-api.XXXXXX"; in push_request_headers() local 245 fd_ = mkostemp(tempname, O_CLOEXEC); in push_request_headers() 247 fd_ = mkstemp(tempname); in push_request_headers() 257 unlink(tempname); in push_request_headers()
|
/third_party/tzdata/ |
D | zic.c | 654 char const *tempname) in close_file() argument 663 if (tempname) in close_file() 664 remove(tempname); in close_file() 1344 open_outfile(char const **outname, char **tempname) in open_outfile() argument 1354 if (!*tempname) in open_outfile() 1355 random_dirent(outname, tempname); in open_outfile() 1363 random_dirent(outname, tempname); in open_outfile() 1378 rename_dest(char *tempname, char const *name) in rename_dest() argument 1380 if (tempname) { in rename_dest() 1381 if (rename(tempname, name) != 0) { in rename_dest() [all …]
|
/third_party/toybox/porting/liteos_a/lib/ |
D | lib.h | 148 int xtempfile(char *name, char **tempname); 248 int copy_tempfile(int fdin, char *name, char **tempname); 249 void delete_tempfile(int fdin, int fdout, char **tempname); 250 void replace_tempfile(int fdin, int fdout, char **tempname);
|
/third_party/openssl/apps/lib/ |
D | opt.c | 1156 WCHAR tempname[MAX_PATH]; in opt_isdir() local 1162 if (!MultiByteToWideChar(CP_ACP, 0, name, len_0, tempname, MAX_PATH)) in opt_isdir() 1165 tempname[i] = (WCHAR)name[i]; in opt_isdir() 1167 attr = GetFileAttributes(tempname); in opt_isdir()
|
/third_party/node/deps/openssl/openssl/apps/lib/ |
D | opt.c | 1161 WCHAR tempname[MAX_PATH]; in opt_isdir() local 1167 if (!MultiByteToWideChar(CP_ACP, 0, name, len_0, tempname, MAX_PATH)) in opt_isdir() 1170 tempname[i] = (WCHAR)name[i]; in opt_isdir() 1172 attr = GetFileAttributes(tempname); in opt_isdir()
|
/third_party/python/Lib/test/ |
D | test_httpservers.py | 344 tempname = os.path.join(self.tempdir, 'test') 345 with open(tempname, 'wb') as temp: 348 mtime = os.stat(tempname).st_mtime
|
/third_party/toybox/generated/ |
D | globals.h | 1303 char *tempname; member
|
/third_party/elfutils/src/ |
D | readelf.c | 708 char *tempname = alloca (tmplen); in open_input_section() local 709 sprintf (tempname, "%s%s", tmpdir, suffix); in open_input_section() 711 int sfd = mkstemp (tempname); in open_input_section() 715 tempname); in open_input_section() 718 unlink (tempname); in open_input_section()
|