projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(check_version): Accept identical versions too.
[gnulib.git]
/
lib
/
tempname.c
diff --git
a/lib/tempname.c
b/lib/tempname.c
index
3de699b
..
4b0fad3
100644
(file)
--- a/
lib/tempname.c
+++ b/
lib/tempname.c
@@
-47,9
+47,7
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#if HAVE_FCNTL_H || _LIBC
-# include <fcntl.h>
-#endif
+#include <fcntl.h>
#if HAVE_SYS_TIME_H || _LIBC
# include <sys/time.h>
#if HAVE_SYS_TIME_H || _LIBC
# include <sys/time.h>
@@
-78,8
+76,8
@@
# define __mkdir mkdir
# define __open open
# define __open64 open
# define __mkdir mkdir
# define __open open
# define __open64 open
-# define __lxstat64(version,
path, buf) lstat (path
, buf)
-# define __xstat64(version,
path, buf) stat (path
, buf)
+# define __lxstat64(version,
file, buf) lstat (file
, buf)
+# define __xstat64(version,
file, buf) stat (file
, buf)
#endif
#if ! (HAVE___SECURE_GETENV || _LIBC)
#endif
#if ! (HAVE___SECURE_GETENV || _LIBC)
@@
-185,7
+183,7
@@
__path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx,
return 0;
}
return 0;
}
-/* These are the characters used in temporary filenames. */
+/* These are the characters used in temporary file
names. */
static const char letters[] =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
static const char letters[] =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";