diff options
| author | Paul Eggert | 2020-02-23 01:24:21 -0800 |
|---|---|---|
| committer | Paul Eggert | 2020-02-23 01:27:19 -0800 |
| commit | b6be1ce644a07b6dc30eaa24dec082effd7add40 (patch) | |
| tree | 02de8983f45751bf5da9b2f409758f2934306746 /lib/openat.h | |
| parent | bce17355ac9f6a6f8ed778bd310f3baaea514270 (diff) | |
| download | emacs-b6be1ce644a07b6dc30eaa24dec082effd7add40.tar.gz emacs-b6be1ce644a07b6dc30eaa24dec082effd7add40.zip | |
Update from Gnulib
This incorporates:
2020-02-22 fchmodat, lchmod: simplify
2020-02-22 lchmod: fix link error on Solaris 10
2020-02-22 use 'restrict' in all POSIX function declarations
2020-02-22 chmodat, chownat: new modules
* lib/gnulib.mk.in: Regenerate.
* lib/inttypes.in.h, lib/openat.h, lib/signal.in.h:
* lib/stdio.in.h, lib/stdlib.in.h, lib/string.in.h:
* lib/sys_stat.in.h, lib/time.in.h, lib/unistd.in.h, m4/inttypes.m4:
* m4/signal_h.m4, m4/stdio_h.m4, m4/stdlib_h.m4, m4/string_h.m4:
* m4/sys_socket_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
* m4/unistd_h.m4: Copy from Gnulib.
Diffstat (limited to 'lib/openat.h')
| -rw-r--r-- | lib/openat.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/openat.h b/lib/openat.h index 7589150f34f..824ce560e34 100644 --- a/lib/openat.h +++ b/lib/openat.h | |||
| @@ -52,19 +52,19 @@ _Noreturn void openat_save_fail (int); | |||
| 52 | slightly more readable than it would be with | 52 | slightly more readable than it would be with |
| 53 | fchownat (..., 0) or fchownat (..., AT_SYMLINK_NOFOLLOW). */ | 53 | fchownat (..., 0) or fchownat (..., AT_SYMLINK_NOFOLLOW). */ |
| 54 | 54 | ||
| 55 | #if GNULIB_FCHOWNAT | 55 | #if GNULIB_CHOWNAT |
| 56 | 56 | ||
| 57 | # ifndef FCHOWNAT_INLINE | 57 | # ifndef CHOWNAT_INLINE |
| 58 | # define FCHOWNAT_INLINE _GL_INLINE | 58 | # define CHOWNAT_INLINE _GL_INLINE |
| 59 | # endif | 59 | # endif |
| 60 | 60 | ||
| 61 | FCHOWNAT_INLINE int | 61 | CHOWNAT_INLINE int |
| 62 | chownat (int fd, char const *file, uid_t owner, gid_t group) | 62 | chownat (int fd, char const *file, uid_t owner, gid_t group) |
| 63 | { | 63 | { |
| 64 | return fchownat (fd, file, owner, group, 0); | 64 | return fchownat (fd, file, owner, group, 0); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | FCHOWNAT_INLINE int | 67 | CHOWNAT_INLINE int |
| 68 | lchownat (int fd, char const *file, uid_t owner, gid_t group) | 68 | lchownat (int fd, char const *file, uid_t owner, gid_t group) |
| 69 | { | 69 | { |
| 70 | return fchownat (fd, file, owner, group, AT_SYMLINK_NOFOLLOW); | 70 | return fchownat (fd, file, owner, group, AT_SYMLINK_NOFOLLOW); |
| @@ -72,19 +72,19 @@ lchownat (int fd, char const *file, uid_t owner, gid_t group) | |||
| 72 | 72 | ||
| 73 | #endif | 73 | #endif |
| 74 | 74 | ||
| 75 | #if GNULIB_FCHMODAT | 75 | #if GNULIB_CHMODAT |
| 76 | 76 | ||
| 77 | # ifndef FCHMODAT_INLINE | 77 | # ifndef CHMODAT_INLINE |
| 78 | # define FCHMODAT_INLINE _GL_INLINE | 78 | # define CHMODAT_INLINE _GL_INLINE |
| 79 | # endif | 79 | # endif |
| 80 | 80 | ||
| 81 | FCHMODAT_INLINE int | 81 | CHMODAT_INLINE int |
| 82 | chmodat (int fd, char const *file, mode_t mode) | 82 | chmodat (int fd, char const *file, mode_t mode) |
| 83 | { | 83 | { |
| 84 | return fchmodat (fd, file, mode, 0); | 84 | return fchmodat (fd, file, mode, 0); |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | FCHMODAT_INLINE int | 87 | CHMODAT_INLINE int |
| 88 | lchmodat (int fd, char const *file, mode_t mode) | 88 | lchmodat (int fd, char const *file, mode_t mode) |
| 89 | { | 89 | { |
| 90 | return fchmodat (fd, file, mode, AT_SYMLINK_NOFOLLOW); | 90 | return fchmodat (fd, file, mode, AT_SYMLINK_NOFOLLOW); |