diff options
Diffstat (limited to 'gl/unistd.in.h')
-rw-r--r-- | gl/unistd.in.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/gl/unistd.in.h b/gl/unistd.in.h index 73c882f..57df09e 100644 --- a/gl/unistd.in.h +++ b/gl/unistd.in.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* Substitute for and wrapper around <unistd.h>. | 1 | /* Substitute for and wrapper around <unistd.h>. |
2 | Copyright (C) 2003-2021 Free Software Foundation, Inc. | 2 | Copyright (C) 2003-2022 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This file is free software: you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
5 | it under the terms of the GNU Lesser General Public License as | 5 | it under the terms of the GNU Lesser General Public License as |
@@ -415,16 +415,30 @@ _GL_CXXALIASWARN (close); | |||
415 | 415 | ||
416 | 416 | ||
417 | #if @GNULIB_COPY_FILE_RANGE@ | 417 | #if @GNULIB_COPY_FILE_RANGE@ |
418 | # if !@HAVE_COPY_FILE_RANGE@ | 418 | # if @REPLACE_COPY_FILE_RANGE@ |
419 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
420 | # undef copy_file_range | ||
421 | # define copy_file_range rpl_copy_file_range | ||
422 | # endif | ||
423 | _GL_FUNCDECL_RPL (copy_file_range, ssize_t, (int ifd, off_t *ipos, | ||
424 | int ofd, off_t *opos, | ||
425 | size_t len, unsigned flags)); | ||
426 | _GL_CXXALIAS_RPL (copy_file_range, ssize_t, (int ifd, off_t *ipos, | ||
427 | int ofd, off_t *opos, | ||
428 | size_t len, unsigned flags)); | ||
429 | # else | ||
430 | # if !@HAVE_COPY_FILE_RANGE@ | ||
419 | _GL_FUNCDECL_SYS (copy_file_range, ssize_t, (int ifd, off_t *ipos, | 431 | _GL_FUNCDECL_SYS (copy_file_range, ssize_t, (int ifd, off_t *ipos, |
420 | int ofd, off_t *opos, | 432 | int ofd, off_t *opos, |
421 | size_t len, unsigned flags)); | 433 | size_t len, unsigned flags)); |
434 | # endif | ||
422 | _GL_CXXALIAS_SYS (copy_file_range, ssize_t, (int ifd, off_t *ipos, | 435 | _GL_CXXALIAS_SYS (copy_file_range, ssize_t, (int ifd, off_t *ipos, |
423 | int ofd, off_t *opos, | 436 | int ofd, off_t *opos, |
424 | size_t len, unsigned flags)); | 437 | size_t len, unsigned flags)); |
425 | # endif | 438 | # endif |
426 | _GL_CXXALIASWARN (copy_file_range); | 439 | _GL_CXXALIASWARN (copy_file_range); |
427 | #elif defined GNULIB_POSIXCHECK | 440 | #elif defined GNULIB_POSIXCHECK |
441 | # undef copy_file_range | ||
428 | # if HAVE_RAW_DECL_COPY_FILE_RANGE | 442 | # if HAVE_RAW_DECL_COPY_FILE_RANGE |
429 | _GL_WARN_ON_USE (copy_file_range, | 443 | _GL_WARN_ON_USE (copy_file_range, |
430 | "copy_file_range is unportable - " | 444 | "copy_file_range is unportable - " |
@@ -1409,7 +1423,8 @@ _GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - " | |||
1409 | Read a password from /dev/tty or stdin. | 1423 | Read a password from /dev/tty or stdin. |
1410 | Function getpass() from module 'getpass-gnu': | 1424 | Function getpass() from module 'getpass-gnu': |
1411 | Read a password of arbitrary length from /dev/tty or stdin. */ | 1425 | Read a password of arbitrary length from /dev/tty or stdin. */ |
1412 | # if @REPLACE_GETPASS@ | 1426 | # if (@GNULIB_GETPASS@ && @REPLACE_GETPASS@) \ |
1427 | || (@GNULIB_GETPASS_GNU@ && @REPLACE_GETPASS_FOR_GETPASS_GNU@) | ||
1413 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 1428 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
1414 | # undef getpass | 1429 | # undef getpass |
1415 | # define getpass rpl_getpass | 1430 | # define getpass rpl_getpass |