summaryrefslogtreecommitdiff
path: root/gl/lib/tempname.h.diff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-02-11 02:09:06 +0000
committerPádraig Brady <P@draigBrady.com>2015-02-11 03:58:55 +0000
commit7577d1582b583d92c3452ee876e80ed30e58c934 (patch)
tree07bd0537ca38906a0511756931ebe0009fd1b98e /gl/lib/tempname.h.diff
parentf2e499db3908d4e1ef46509fe85e03784ccc2b30 (diff)
downloadcoreutils-7577d1582b583d92c3452ee876e80ed30e58c934.tar.xz
build: update to latest gnulib
This includes a change to require --with-libmount to be used with configure, due to the many libmount dependencies. * bootstrap: Sync with gnulib to exit early on gnulib-tool error. * gl/lib/tempname.c.diff: Adjust for gnulib changes. * gl/lib/tempname.h.diff: Likewise. * gl/modules/tempname: Likewise. * doc/.gitignore: Add new gendocs_template_min gnulib script.
Diffstat (limited to 'gl/lib/tempname.h.diff')
-rw-r--r--gl/lib/tempname.h.diff13
1 files changed, 11 insertions, 2 deletions
diff --git a/gl/lib/tempname.h.diff b/gl/lib/tempname.h.diff
index ec70a473d..843692efd 100644
--- a/gl/lib/tempname.h.diff
+++ b/gl/lib/tempname.h.diff
@@ -1,12 +1,21 @@
diff --git a/lib/tempname.h b/lib/tempname.h
-index b560ee5..6e162c3 100644
+index f7c98d0..793207f 100644
--- a/lib/tempname.h
+++ b/lib/tempname.h
-@@ -46,5 +46,7 @@
+@@ -46,6 +46,8 @@
We use a clever algorithm to get hard-to-predict names. */
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);
+ /* Similar to gen_tempname, but TRY is called for each temporary
+ name to try. If TRY returns a non-negative number, TRY_GEN_TEMPNAME
+@@ -53,5 +55,7 @@ extern int gen_tempname (char *tmpl, int suffixlen, int flags, int kind);
+ name is tried, or else TRY_GEN_TEMPNAME returns -1. */
+ extern int try_tempname (char *tmpl, int suffixlen, void *args,
+ int (*try) (char *, void *));
++extern int try_tempname_len (char *tmpl, int suffixlen, void *args,
++ int (*try) (char *, void *), size_t x_suffix_len);
+
#endif /* GL_TEMPNAME_H */