/external/python/cpython2/Tools/scripts/ |
D | pathfix.py | 102 tempname = os.path.join(head, '@' + tail) 104 g = open(tempname, 'w') 107 err('%s: cannot create: %r\n' % (tempname, msg)) 124 os.chmod(tempname, statbuf[ST_MODE] & 07777) 126 err('%s: warning: chmod failed (%r)\n' % (tempname, msg)) 134 os.rename(tempname, filename)
|
D | methfix.py | 87 tempname = os.path.join(head, '@' + tail) 119 g = open(tempname, 'w') 122 err('%s: cannot create: %r\n' % (tempname, msg)) 143 os.chmod(tempname, statbuf[ST_MODE] & 07777) 145 err('%s: warning: chmod failed (%r)\n' % (tempname, msg)) 153 os.rename(tempname, filename)
|
D | classfix.py | 90 tempname = os.path.join(head, '@' + tail) 108 g = open(tempname, 'w') 111 err('%s: cannot create: %r\n' % (tempname, msg)) 132 os.chmod(tempname, statbuf[ST_MODE] & 07777) 134 err('%s: warning: chmod failed (%r)\n' % (tempname, msg)) 142 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] & 07777) 180 err(tempname + ': warning: chmod failed (' + str(msg) + ')\n') 188 os.rename(tempname, filename)
|
/external/python/cpython2/Demo/scripts/ |
D | eqfix.py | 90 tempname = os.path.join(head, '@' + tail) 122 g = open(tempname, 'w') 125 err('%s: cannot create: %r\n' % (tempname, msg)) 146 os.chmod(tempname, statbuf[ST_MODE] & 07777) 148 err('%s: warning: chmod failed (%r)\n' % (tempname, msg)) 156 os.rename(tempname, filename)
|
/external/ltp/testcases/kernel/syscalls/readahead/ |
D | readahead01.c | 53 char tempname[PATH_MAX] = "readahead01_XXXXXX"; in test_bad_fd() local 62 fd = mkstemp(tempname); in test_bad_fd() 66 fd = SAFE_OPEN(tempname, O_WRONLY); in test_bad_fd() 71 unlink(tempname); in test_bad_fd()
|
/external/python/cpython3/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)
|
/external/webrtc/test/testsupport/ |
D | file_utils.cc | 114 std::unique_ptr<char[]> tempname(new char[len]); in TempFilename() 116 snprintf(tempname.get(), len, "%s/%sXXXXXX", dir.c_str(), prefix.c_str()); in TempFilename() 117 int fd = ::mkstemp(tempname.get()); in TempFilename() 124 std::string ret(tempname.get()); in TempFilename()
|
/external/python/cpython2/Modules/_ctypes/libffi/src/ |
D | closures.c | 284 char *tempname = __builtin_alloca (lendir + sizeof (suffix)); in open_temp_exec_file_dir() local 286 if (!tempname) in open_temp_exec_file_dir() 289 memcpy (tempname, dir, lendir); in open_temp_exec_file_dir() 290 memcpy (tempname + lendir, suffix, sizeof (suffix)); in open_temp_exec_file_dir() 292 return open_temp_exec_file_name (tempname); in open_temp_exec_file_dir()
|
/external/toybox/lib/ |
D | lib.c | 793 int copy_tempfile(int fdin, char *name, char **tempname) in copy_tempfile() argument 796 int fd = xtempfile(name, tempname), ignored __attribute__((__unused__)); in copy_tempfile() 800 tempfile2zap = *tempname; in copy_tempfile() 816 void delete_tempfile(int fdin, int fdout, char **tempname) in delete_tempfile() argument 820 if (*tempname) unlink(*tempname); in delete_tempfile() 822 free(*tempname); in delete_tempfile() 823 *tempname = NULL; in delete_tempfile() 827 void replace_tempfile(int fdin, int fdout, char **tempname) in replace_tempfile() argument 829 char *temp = xstrdup(*tempname); in replace_tempfile() 837 xrename(*tempname, temp); in replace_tempfile() [all …]
|
D | lib.h | 149 int xtempfile(char *name, char **tempname); 253 int copy_tempfile(int fdin, char *name, char **tempname); 254 void delete_tempfile(int fdin, int fdout, char **tempname); 255 void replace_tempfile(int fdin, int fdout, char **tempname);
|
D | xwrap.c | 451 int xtempfile(char *name, char **tempname) in xtempfile() argument 455 *tempname = xmprintf("%s%s", name, "XXXXXX"); in xtempfile() 456 if(-1 == (fd = mkstemp(*tempname))) error_exit("no temp file"); in xtempfile()
|
/external/toybox/toys/posix/ |
D | patch.c | 55 char *tempname; 82 if (TT.tempname) replace_tempfile(TT.filein, TT.fileout, &TT.tempname); in finish_oldfile() 100 if (!FLAG(dry_run)) delete_tempfile(TT.filein, TT.fileout, &TT.tempname); in fail_hunk() 449 else TT.fileout = copy_tempfile(TT.filein, name, &TT.tempname); in patch_main()
|
/external/python/apitools/apitools/base/py/ |
D | credentials_lib_test.py | 101 tempname = os.path.join(tempd, 'creds') 112 cache_filename=tempname, 117 cache_filename=tempname,
|
/external/python/cpython2/Lib/ |
D | mimetools.py | 230 (fd, tempname) = tempfile.mkstemp() 234 pipe = os.popen(command + ' <' + tempname, 'r') 237 os.unlink(tempname)
|
/external/libffi/src/ |
D | closures.c | 565 char *tempname; in open_temp_exec_file_dir() local 587 tempname = __builtin_alloca (lendir + sizeof (suffix)); in open_temp_exec_file_dir() 589 if (!tempname) in open_temp_exec_file_dir() 592 memcpy (tempname, dir, lendir); in open_temp_exec_file_dir() 593 memcpy (tempname + lendir, suffix, sizeof (suffix)); in open_temp_exec_file_dir() 595 return open_temp_exec_file_name (tempname, flags); in open_temp_exec_file_dir()
|
/external/libcups/cups/ |
D | testclient.c | 69 static const char *make_raster_file(ipp_t *response, int grayscale, char *tempname, size_t te… 282 char *tempname, /* I - Temporary filename buffer */ in make_raster_file() argument 514 if ((fd = cupsTempFd(tempname, (int)tempsize)) < 0) in make_raster_file() 610 printf("PRINT FILE: %s\n", tempname); in make_raster_file() 612 return (tempname); in make_raster_file()
|
/external/python/cpython3/PC/bdist_wininst/ |
D | install.c | 803 char *tempname; in run_installscript() local 807 tempname = tempnam(NULL, NULL); in run_installscript() 813 tempname, in run_installscript() 843 DeleteFile(tempname); in run_installscript() 876 char *tempname = tempnam(NULL, NULL); in run_simple_script() local 879 tempname, in run_simple_script() 927 DeleteFile(tempname); in run_simple_script()
|
/external/python/cpython2/PC/bdist_wininst/ |
D | install.c | 762 char *tempname; in run_installscript() local 766 tempname = tempnam(NULL, NULL); in run_installscript() 772 tempname, in run_installscript() 802 DeleteFile(tempname); in run_installscript() 833 char *tempname = tempnam(NULL, NULL); in run_simple_script() local 836 tempname, in run_simple_script() 884 DeleteFile(tempname); in run_simple_script()
|
/external/python/cpython3/Lib/test/ |
D | test_httpservers.py | 342 tempname = os.path.join(self.tempdir, 'test') 343 with open(tempname, 'wb') as temp: 346 mtime = os.stat(tempname).st_mtime
|
/external/python/setuptools/pkg_resources/ |
D | __init__.py | 1237 def postprocess(self, tempname, filename): argument 1254 mode = ((os.stat(tempname).st_mode) | 0o555) & 0o7777 1255 os.chmod(tempname, mode)
|
/external/toybox/android/linux/generated/ |
D | globals.h | 1388 char *tempname; member
|
/external/toybox/android/device/generated/ |
D | globals.h | 1388 char *tempname; member
|
/external/toybox/android/mac/generated/ |
D | globals.h | 1388 char *tempname; member
|