diff options
author | Eric Blake <ebb9@byu.net> | 2009-11-03 08:51:31 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-11-05 07:00:52 -0700 |
commit | d431c61873753673ad9fcbac90db6db04185e307 (patch) | |
tree | d567528063998de7dd5d5fac3abd30c88da8dfed /gl/lib/tempname.h.diff | |
parent | 5f29d118df9ad888f7c56de153966c16139c8f25 (diff) | |
download | coreutils-d431c61873753673ad9fcbac90db6db04185e307.tar.xz |
build: reflect gnulib changes to tempname
In glibc 2.11 and gnulib, gen_tempname added a parameter
suffixlen (unfortunately, it is typed as int rather than
size_t, for historical compatibility to a poor choice by BSD).
* gnulib: Import latest changes.
* gl/lib/tempname.h.diff: Accommodate new suffixlen parameter.
* gl/lib/tempname.c.diff (check_x_suffix): Allow for X in suffix
beyond x_suffix_len.
(gen_tempname_len): Add suffixlen parameter.
(__gen_tempname): Update caller.
* src/mktemp.c (mkstemp_len, mkdtemp_len): Update callers.
Diffstat (limited to 'gl/lib/tempname.h.diff')
-rw-r--r-- | gl/lib/tempname.h.diff | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gl/lib/tempname.h.diff b/gl/lib/tempname.h.diff index 5ceff5e8f..67074459a 100644 --- a/gl/lib/tempname.h.diff +++ b/gl/lib/tempname.h.diff @@ -1,12 +1,12 @@ diff --git c/lib/tempname.h i/lib/tempname.h -index edf7074..707edf4 100644 +index cd69e7d..9757db2 100644 --- c/lib/tempname.h +++ i/lib/tempname.h -@@ -34,4 +34,7 @@ - GT_DIR: create a directory, which will be mode 0700. +@@ -46,5 +46,7 @@ We use a clever algorithm to get hard-to-predict names. */ -+#include <stddef.h> - extern int gen_tempname (char *tmpl, int flags, int kind); -+extern int gen_tempname_len (char *tmpl, int flags, int kind, + extern int gen_tempname (char *tmpl, int suffixlen, int flags, int kind); ++extern int gen_tempname_len (char *tmpl, int suffixlen, int flags, int kind, + size_t x_suffix_len); + + #endif /* GL_TEMPNAME_H */ |