diff options
| author | Philipp Stephani | 2020-12-24 16:48:40 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2020-12-24 16:48:40 +0100 |
| commit | 29064d02c31b08ae41d41a93fd1439718373b196 (patch) | |
| tree | 6c976729d7c6f296b36965f235d2a58e8142393e /lib/sys_stat.in.h | |
| parent | 26b8b30ff42568ff3e3f8599a20328a1efe93d2a (diff) | |
| download | emacs-29064d02c31b08ae41d41a93fd1439718373b196.tar.gz emacs-29064d02c31b08ae41d41a93fd1439718373b196.zip | |
Update Gnulib.
All changes in this commit are autogenerated by running
admin/merge-gnulib.
Diffstat (limited to 'lib/sys_stat.in.h')
| -rw-r--r-- | lib/sys_stat.in.h | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 3e0e4b27b7e..3ce2a0dcf15 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h | |||
| @@ -375,11 +375,11 @@ struct stat | |||
| 375 | # define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH) | 375 | # define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH) |
| 376 | #endif | 376 | #endif |
| 377 | 377 | ||
| 378 | /* S_IXUGO is a common extension to POSIX. */ | 378 | /* Although S_IXUGO and S_IRWXUGO are not specified by POSIX and are |
| 379 | not implemented in GNU/Linux, some Gnulib-using apps use the macros. */ | ||
| 379 | #if !S_IXUGO | 380 | #if !S_IXUGO |
| 380 | # define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH) | 381 | # define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH) |
| 381 | #endif | 382 | #endif |
| 382 | |||
| 383 | #ifndef S_IRWXUGO | 383 | #ifndef S_IRWXUGO |
| 384 | # define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO) | 384 | # define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO) |
| 385 | #endif | 385 | #endif |
| @@ -391,10 +391,20 @@ struct stat | |||
| 391 | #endif | 391 | #endif |
| 392 | 392 | ||
| 393 | 393 | ||
| 394 | /* On native Windows, map 'chmod' to '_chmod', so that -loldnames is not | ||
| 395 | required. In C++ with GNULIB_NAMESPACE, avoid differences between | ||
| 396 | platforms by defining GNULIB_NAMESPACE::chmod always. */ | ||
| 394 | #if defined _WIN32 && !defined __CYGWIN__ | 397 | #if defined _WIN32 && !defined __CYGWIN__ |
| 395 | # undef chmod | 398 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 396 | # define chmod _chmod | 399 | # undef chmod |
| 400 | # define chmod _chmod | ||
| 401 | # endif | ||
| 402 | /* Need to cast, because in mingw the last argument is 'int mode'. */ | ||
| 403 | _GL_CXXALIAS_MDA_CAST (chmod, int, (const char *filename, mode_t mode)); | ||
| 404 | #else | ||
| 405 | _GL_CXXALIAS_SYS (chmod, int, (const char *filename, mode_t mode)); | ||
| 397 | #endif | 406 | #endif |
| 407 | _GL_CXXALIASWARN (chmod); | ||
| 398 | 408 | ||
| 399 | 409 | ||
| 400 | #if @GNULIB_FCHMODAT@ | 410 | #if @GNULIB_FCHMODAT@ |
| @@ -808,10 +818,20 @@ _GL_WARN_ON_USE (stat, "stat is unportable - " | |||
| 808 | #endif | 818 | #endif |
| 809 | 819 | ||
| 810 | 820 | ||
| 821 | /* On native Windows, map 'umask' to '_umask', so that -loldnames is not | ||
| 822 | required. In C++ with GNULIB_NAMESPACE, avoid differences between | ||
| 823 | platforms by defining GNULIB_NAMESPACE::umask always. */ | ||
| 811 | #if defined _WIN32 && !defined __CYGWIN__ | 824 | #if defined _WIN32 && !defined __CYGWIN__ |
| 812 | # undef umask | 825 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 813 | # define umask _umask | 826 | # undef umask |
| 827 | # define umask _umask | ||
| 828 | # endif | ||
| 829 | /* Need to cast, because in mingw the last argument is 'int mode'. */ | ||
| 830 | _GL_CXXALIAS_MDA_CAST (umask, mode_t, (mode_t mask)); | ||
| 831 | #else | ||
| 832 | _GL_CXXALIAS_SYS (umask, mode_t, (mode_t mask)); | ||
| 814 | #endif | 833 | #endif |
| 834 | _GL_CXXALIASWARN (umask); | ||
| 815 | 835 | ||
| 816 | 836 | ||
| 817 | #if @GNULIB_UTIMENSAT@ | 837 | #if @GNULIB_UTIMENSAT@ |