comparison lisp/files.el @ 5474:4dee0387b9de

Merged with trunk.
author Mats Lidell <matsl@xemacs.org>
date Tue, 29 Mar 2011 00:02:47 +0200
parents ac37a5f7e5be 3889ef128488
children c17a46ac63af
comparison
equal deleted inserted replaced
5473:ac37a5f7e5be 5474:4dee0387b9de
722 722
723 If DIR-FLAG is non-nil, create a new empty directory instead of a file. 723 If DIR-FLAG is non-nil, create a new empty directory instead of a file.
724 724
725 If SUFFIX is non-nil, add that at the end of the file name. 725 If SUFFIX is non-nil, add that at the end of the file name.
726 726
727 This function is analagous to mkstemp(3) under POSIX, avoiding the race 727 This function is analogous to mkstemp(3) under POSIX, avoiding the race
728 condition between testing for the existence of the generated filename (under 728 condition between testing for the existence of the generated filename (under
729 POSIX with mktemp(3), under Emacs Lisp with `make-temp-name') and creating 729 POSIX with mktemp(3), under Emacs Lisp with `make-temp-name') and creating
730 it." 730 it."
731 (let ((umask (default-file-modes)) 731 (let ((umask (default-file-modes))
732 (temporary-file-directory (temp-directory)) 732 (temporary-file-directory (temp-directory))