Home
last modified time | relevance | path

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

/external/python/cpython2/Tools/scripts/
Dpathfix.py102 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)
Dmethfix.py87 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)
Dclassfix.py90 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)
Dfixcid.py131 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/
Deqfix.py90 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/python/cpython3/Tools/scripts/
Dpathfix.py113 tempname = os.path.join(head, '@' + tail)
115 g = open(tempname, 'wb')
118 err('%s: cannot create: %r\n' % (tempname, msg))
139 os.chmod(tempname, statbuf[ST_MODE] & 0o7777)
141 err('%s: warning: chmod failed (%r)\n' % (tempname, msg))
155 os.rename(tempname, filename)
Dfixcid.py131 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/ltp/testcases/kernel/syscalls/readahead/
Dreadahead01.c53 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/libffi/src/
Dclosures.c290 char *tempname; in open_temp_exec_file_dir() local
312 tempname = __builtin_alloca (lendir + sizeof (suffix)); in open_temp_exec_file_dir()
314 if (!tempname) in open_temp_exec_file_dir()
317 memcpy (tempname, dir, lendir); in open_temp_exec_file_dir()
318 memcpy (tempname + lendir, suffix, sizeof (suffix)); in open_temp_exec_file_dir()
320 return open_temp_exec_file_name (tempname, flags); in open_temp_exec_file_dir()
/external/webrtc/webrtc/test/testsupport/
Dfileutils.cc178 rtc::scoped_ptr<char[]> tempname(new char[len]); in TempFilename()
180 snprintf(tempname.get(), len, "%s/%sXXXXXX", dir.c_str(), in TempFilename()
182 int fd = ::mkstemp(tempname.get()); in TempFilename()
189 std::string ret(tempname.get()); in TempFilename()
/external/toybox/toys/posix/
Dpatch.c59 char *tempname;
89 if (TT.tempname) replace_tempfile(TT.filein, TT.fileout, &TT.tempname); in finish_oldfile()
107 if (!FLAG(dry_run)) delete_tempfile(TT.filein, TT.fileout, &TT.tempname); in fail_hunk()
400 else TT.fileout = copy_tempfile(TT.filein, name, &TT.tempname); in patch_main()
/external/python/cpython2/Modules/_ctypes/libffi/src/
Dclosures.c284 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/
Dlib.c736 int copy_tempfile(int fdin, char *name, char **tempname) in copy_tempfile() argument
739 int fd = xtempfile(name, tempname), ignored __attribute__((__unused__)); in copy_tempfile()
743 tempfile2zap = *tempname; in copy_tempfile()
759 void delete_tempfile(int fdin, int fdout, char **tempname) in delete_tempfile() argument
763 if (*tempname) unlink(*tempname); in delete_tempfile()
765 free(*tempname); in delete_tempfile()
766 *tempname = NULL; in delete_tempfile()
770 void replace_tempfile(int fdin, int fdout, char **tempname) in replace_tempfile() argument
772 char *temp = xstrdup(*tempname); in replace_tempfile()
780 xrename(*tempname, temp); in replace_tempfile()
[all …]
Dlib.h144 int xtempfile(char *name, char **tempname);
242 int copy_tempfile(int fdin, char *name, char **tempname);
243 void delete_tempfile(int fdin, int fdout, char **tempname);
244 void replace_tempfile(int fdin, int fdout, char **tempname);
Dxwrap.c420 int xtempfile(char *name, char **tempname) in xtempfile() argument
424 *tempname = xmprintf("%s%s", name, "XXXXXX"); in xtempfile()
425 if(-1 == (fd = mkstemp(*tempname))) error_exit("no temp file"); in xtempfile()
/external/webrtc/webrtc/base/
Dunixfilesystem.cc209 char *tempname = new char[len]; in TempFilename() local
211 snprintf(tempname, len, "%s/%sXXXXXX", dir.pathname().c_str(), in TempFilename()
213 int fd = ::mkstemp(tempname); in TempFilename()
216 std::string ret(tempname); in TempFilename()
217 delete[] tempname; in TempFilename()
/external/python/cpython2/Lib/
Dmimetools.py230 (fd, tempname) = tempfile.mkstemp()
234 pipe = os.popen(command + ' <' + tempname, 'r')
237 os.unlink(tempname)
/external/libcups/filter/
Dtestclient.c53 static const char *make_raster_file(ipp_t *response, int grayscale, char *tempname, size_t te…
391 char *tempname, /* I - Temporary filename buffer */ in make_raster_file() argument
623 if ((fd = cupsTempFd(tempname, (int)tempsize)) < 0) in make_raster_file()
717 printf("PRINT FILE: %s\n", tempname); in make_raster_file()
719 return (tempname); in make_raster_file()
/external/python/cpython3/PC/bdist_wininst/
Dinstall.c804 char *tempname; in run_installscript() local
808 tempname = tempnam(NULL, NULL); in run_installscript()
814 tempname, in run_installscript()
844 DeleteFile(tempname); in run_installscript()
877 char *tempname = tempnam(NULL, NULL); in run_simple_script() local
880 tempname, in run_simple_script()
928 DeleteFile(tempname); in run_simple_script()
/external/python/cpython2/PC/bdist_wininst/
Dinstall.c762 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/
Dtest_httpservers.py340 tempname = os.path.join(self.tempdir, 'test')
341 with open(tempname, 'wb') as temp:
344 mtime = os.stat(tempname).st_mtime
/external/toybox/generated/
Dglobals.h1196 char *tempname; member
/external/python/setuptools/pkg_resources/
D__init__.py1237 def postprocess(self, tempname, filename): argument
1254 mode = ((os.stat(tempname).st_mode) | 0o555) & 0o7777
1255 os.chmod(tempname, mode)
/external/elfutils/src/
Dreadelf.c650 char *tempname = alloca (tmplen); in open_input_section() local
651 sprintf (tempname, "%s%s", tmpdir, suffix); in open_input_section()
653 int sfd = mkstemp (tempname); in open_input_section()
657 tempname); in open_input_section()
660 unlink (tempname); in open_input_section()
/external/python/setuptools/docs/
Dpkg_resources.txt1251 ``postprocess(tempname, filename)``
1252 Perform any platform-specific postprocessing of `tempname`.
1257 `tempname` is the current (temporary) name of the file, and `filename`