aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert2014-06-01 16:58:38 -0700
committerPaul Eggert2014-06-01 16:58:38 -0700
commiteed652d649d28e9dafdb01f9c7425d7d28899e0d (patch)
tree07fbdfd51e4877c85a23b996dc244ff7f21a0d57 /lib
parentb9928bbace87a54feffa5fc21eab791f658406b9 (diff)
downloademacs-eed652d649d28e9dafdb01f9c7425d7d28899e0d.tar.gz
emacs-eed652d649d28e9dafdb01f9c7425d7d28899e0d.zip
Merge from gnulib.
This incorporates: 2014-06-02 acl: apply pure attribute to two functions 2014-06-01 gnulib-common.m4: add _GL_UNUSED_LABEL 2014-05-31 dup2, fcntl, fcntl-h: port to AIX 7.1 2014-05-30 ftoastr: work around compiler bug in IBM xlc 12.1 * lib/acl-internal.h, lib/fcntl.in.h, lib/ftoastr.h: * m4/dup2.m4, m4/fcntl.m4, m4/gnulib-common.m4: Update from gnulib.
Diffstat (limited to 'lib')
-rw-r--r--lib/acl-internal.h4
-rw-r--r--lib/fcntl.in.h16
-rw-r--r--lib/ftoastr.h17
3 files changed, 27 insertions, 10 deletions
diff --git a/lib/acl-internal.h b/lib/acl-internal.h
index fdffe648490..b2380068de7 100644
--- a/lib/acl-internal.h
+++ b/lib/acl-internal.h
@@ -174,14 +174,14 @@ extern int acl_access_nontrivial (acl_t);
174 174
175/* Return 1 if the given ACL is non-trivial. 175/* Return 1 if the given ACL is non-trivial.
176 Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */ 176 Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */
177extern int acl_nontrivial (int count, aclent_t *entries); 177extern int acl_nontrivial (int count, aclent_t *entries) _GL_ATTRIBUTE_PURE;
178 178
179# ifdef ACE_GETACL /* Solaris 10 */ 179# ifdef ACE_GETACL /* Solaris 10 */
180 180
181/* Test an ACL retrieved with ACE_GETACL. 181/* Test an ACL retrieved with ACE_GETACL.
182 Return 1 if the given ACL, consisting of COUNT entries, is non-trivial. 182 Return 1 if the given ACL, consisting of COUNT entries, is non-trivial.
183 Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */ 183 Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */
184extern int acl_ace_nontrivial (int count, ace_t *entries); 184extern int acl_ace_nontrivial (int count, ace_t *entries) _GL_ATTRIBUTE_PURE;
185 185
186/* Definitions for when the built executable is executed on Solaris 10 186/* Definitions for when the built executable is executed on Solaris 10
187 (newer version) or Solaris 11. */ 187 (newer version) or Solaris 11. */
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h
index 99f75e60fd4..e23b4b2bcdd 100644
--- a/lib/fcntl.in.h
+++ b/lib/fcntl.in.h
@@ -186,6 +186,22 @@ _GL_WARN_ON_USE (openat, "openat is not portable - "
186 186
187/* Fix up the O_* macros. */ 187/* Fix up the O_* macros. */
188 188
189/* AIX 7.1 with XL C 12.1 defines O_CLOEXEC, O_NOFOLLOW, and O_TTY_INIT
190 to values outside 'int' range, so omit these misdefinitions.
191 But avoid namespace pollution on non-AIX systems. */
192#ifdef _AIX
193# include <limits.h>
194# if defined O_CLOEXEC && ! (INT_MIN <= O_CLOEXEC && O_CLOEXEC <= INT_MAX)
195# undef O_CLOEXEC
196# endif
197# if defined O_NOFOLLOW && ! (INT_MIN <= O_NOFOLLOW && O_NOFOLLOW <= INT_MAX)
198# undef O_NOFOLLOW
199# endif
200# if defined O_TTY_INIT && ! (INT_MIN <= O_TTY_INIT && O_TTY_INIT <= INT_MAX)
201# undef O_TTY_INIT
202# endif
203#endif
204
189#if !defined O_DIRECT && defined O_DIRECTIO 205#if !defined O_DIRECT && defined O_DIRECTIO
190/* Tru64 spells it 'O_DIRECTIO'. */ 206/* Tru64 spells it 'O_DIRECTIO'. */
191# define O_DIRECT O_DIRECTIO 207# define O_DIRECT O_DIRECTIO
diff --git a/lib/ftoastr.h b/lib/ftoastr.h
index 6236292d9d9..26cad7369ce 100644
--- a/lib/ftoastr.h
+++ b/lib/ftoastr.h
@@ -72,12 +72,13 @@ enum
72 72
73/* _GL_FLT_PREC_BOUND is an upper bound on the precision needed to 73/* _GL_FLT_PREC_BOUND is an upper bound on the precision needed to
74 represent a float value without losing information. Likewise for 74 represent a float value without losing information. Likewise for
75 _GL_DBL_PREC_BOUND and double, and _GL_LDBL_PREC_BOUND and long double. */ 75 _GL_DBL_PREC_BOUND and double, and _GL_LDBL_PREC_BOUND and long double.
76 These are macros, not enums, to work around a bug in IBM xlc 12.1. */
76 77
77#if FLT_RADIX == 10 /* decimal floating point */ 78#if FLT_RADIX == 10 /* decimal floating point */
78 enum { _GL_FLT_PREC_BOUND = FLT_MANT_DIG }; 79# define _GL_FLT_PREC_BOUND FLT_MANT_DIG
79 enum { _GL_DBL_PREC_BOUND = DBL_MANT_DIG }; 80# define _GL_DBL_PREC_BOUND DBL_MANT_DIG
80 enum { _GL_LDBL_PREC_BOUND = LDBL_MANT_DIG }; 81# define _GL_LDBL_PREC_BOUND LDBL_MANT_DIG
81#else 82#else
82 83
83/* An upper bound on the number of bits needed to represent a single 84/* An upper bound on the number of bits needed to represent a single
@@ -95,13 +96,13 @@ enum
95 DIG digits. For why the "+ 1" is needed, see "Binary to Decimal 96 DIG digits. For why the "+ 1" is needed, see "Binary to Decimal
96 Conversion" in David Goldberg's paper "What Every Computer 97 Conversion" in David Goldberg's paper "What Every Computer
97 Scientist Should Know About Floating-Point Arithmetic" 98 Scientist Should Know About Floating-Point Arithmetic"
98 <http://docs.sun.com/source/806-3568/ncg_goldberg.html>. */ 99 <http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html>. */
99# define _GL_FLOAT_PREC_BOUND(dig) \ 100# define _GL_FLOAT_PREC_BOUND(dig) \
100 (INT_BITS_STRLEN_BOUND ((dig) * _GL_FLOAT_DIG_BITS_BOUND) + 1) 101 (INT_BITS_STRLEN_BOUND ((dig) * _GL_FLOAT_DIG_BITS_BOUND) + 1)
101 102
102 enum { _GL_FLT_PREC_BOUND = _GL_FLOAT_PREC_BOUND ( FLT_MANT_DIG) }; 103# define _GL_FLT_PREC_BOUND _GL_FLOAT_PREC_BOUND ( FLT_MANT_DIG)
103 enum { _GL_DBL_PREC_BOUND = _GL_FLOAT_PREC_BOUND ( DBL_MANT_DIG) }; 104# define _GL_DBL_PREC_BOUND _GL_FLOAT_PREC_BOUND ( DBL_MANT_DIG)
104 enum { _GL_LDBL_PREC_BOUND = _GL_FLOAT_PREC_BOUND (LDBL_MANT_DIG) }; 105# define _GL_LDBL_PREC_BOUND _GL_FLOAT_PREC_BOUND (LDBL_MANT_DIG)
105#endif 106#endif
106 107
107 108