/third_party/ltp/testcases/kernel/syscalls/readahead/ |
H A 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/ |
H A 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)
|
H A 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/ |
H A D | fopen.c | 91 * file. if 'tempname' is non-NULL, it needs a rename after the file is 95 FILE **fh, char **tempname) in Curl_fopen() 103 *tempname = NULL; in Curl_fopen() 140 *tempname = tempstore; in Curl_fopen() 94 Curl_fopen(struct Curl_easy *data, const char *filename, FILE **fh, char **tempname) Curl_fopen() argument
|
H A D | fopen.h | 28 FILE **fh, char **tempname);
|
/third_party/toybox/toys/posix/ |
H A 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/toybox/lib/ |
H A D | lib.c | 782 int copy_tempfile(int fdin, char *name, char **tempname) in copy_tempfile() argument 785 int fd = xtempfile(name, tempname), ignored __attribute__((__unused__)); in copy_tempfile() 789 tempfile2zap = *tempname; in copy_tempfile() 805 void delete_tempfile(int fdin, int fdout, char **tempname) in delete_tempfile() argument 809 if (*tempname) unlink(*tempname); in delete_tempfile() 811 free(*tempname); in delete_tempfile() 812 *tempname = NULL; in delete_tempfile() 816 void replace_tempfile(int fdin, int fdout, char **tempname) in replace_tempfile() argument 818 char *temp = xstrdup(*tempname); in replace_tempfile() [all...] |
H A D | lib.h | 153 int xtempfile(char *name, char **tempname); 257 int copy_tempfile(int fdin, char *name, char **tempname); 258 void delete_tempfile(int fdin, int fdout, char **tempname); 259 void replace_tempfile(int fdin, int fdout, char **tempname);
|
H A 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/ninja/src/ |
H A 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/tzdata/ |
H A D | zic.c | 650 char const *tempname) in close_file() 659 if (tempname) in close_file() 660 remove(tempname); in close_file() 1348 open_outfile(char const **outname, char **tempname) in open_outfile() argument 1358 if (!*tempname) in open_outfile() 1359 random_dirent(outname, tempname); in open_outfile() 1367 random_dirent(outname, tempname); in open_outfile() 1382 rename_dest(char *tempname, char const *name) in rename_dest() argument 1384 if (tempname) { in rename_dest() 1385 if (rename(tempname, nam in rename_dest() 649 close_file(FILE *stream, char const *dir, char const *name, char const *tempname) close_file() argument 1452 char *tempname = NULL; dolink() local 2383 char *tempname = NULL; writezone() local [all...] |
/third_party/nghttp2/src/ |
H A 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/toybox/porting/liteos_a/lib/ |
H A 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/node/deps/openssl/openssl/apps/lib/ |
H A 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/openssl/apps/lib/ |
H A 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/python/Lib/test/ |
H A D | test_httpservers.py | 366 tempname = os.path.join(self.tempdir, 'test') 367 with open(tempname, 'wb') as temp: 370 mtime = os.stat(tempname).st_mtime
|
/third_party/toybox/generated/ |
H A D | globals.h | 1435 char *tempname; member
|
/third_party/elfutils/src/ |
H A 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()
|