Detect presence of fdopendir in Configure

This commit is contained in:
Leon Timmermans 2025-05-23 12:47:31 +02:00 committed by Aristotle Pagaltzis
parent a1327b5df7
commit 1f9097b342
10 changed files with 24 additions and 0 deletions

View File

@ -478,6 +478,7 @@ d_fd_set=''
d_fds_bits=''
d_fdclose=''
d_fdim=''
d_fdopendir=''
d_fegetround=''
d_ffs=''
d_ffsl=''
@ -13344,6 +13345,10 @@ esac
set i_fcntl
eval $setvar
: see if fdopendir exists
set fdopendir d_fdopendir
eval $inlibc
: see if fork exists
set fork d_fork
eval $inlibc
@ -25052,6 +25057,7 @@ d_flockproto='$d_flockproto'
d_fma='$d_fma'
d_fmax='$d_fmax'
d_fmin='$d_fmin'
d_fdopendir='$d_fdopendir'
d_fork='$d_fork'
d_fp_class='$d_fp_class'
d_fp_classify='$d_fp_classify'

View File

@ -212,6 +212,7 @@ d_fd_macros='define'
d_fd_set='define'
d_fdclose='undef'
d_fdim='undef'
d_fdopendir=undef
d_fds_bits='undef'
d_fegetround='define'
d_ffs='undef'

View File

@ -211,6 +211,7 @@ d_fd_macros='define'
d_fd_set='define'
d_fdclose='undef'
d_fdim='undef'
d_fdopendir=undef
d_fds_bits='undef'
d_fegetround='define'
d_ffs='undef'

View File

@ -947,6 +947,11 @@ d_fmin (d_fmin.U):
This variable conditionally defines the HAS_FMIN symbol, which
indicates to the C program that the fmin() routine is available.
d_fdopendir (d_fdopendir.U):
This variable conditionally defines the HAS_FORK symbol, which
indicates that the fdopen routine is available to open a
directory descriptor.
d_fork (d_fork.U):
This variable conditionally defines the HAS_FORK symbol, which
indicates to the C program that the fork() routine is available.

View File

@ -223,6 +223,7 @@ d_fd_macros='define'
d_fd_set='define'
d_fdclose='undef'
d_fdim='define'
d_fdopendir='define'
d_fds_bits='define'
d_fegetround='define'
d_ffs='define'

View File

@ -142,6 +142,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_fcntl HAS_FCNTL /**/
/* HAS_FDOPENDIR:
* This symbol, if defined, indicates that the fdopen routine is
* available to open a directory descriptor.
*/
#$d_fdopendir HAS_FDOPENDIR /**/
/* HAS_FGETPOS:
* This symbol, if defined, indicates that the fgetpos routine is
* available to get the file position indicator, similar to ftell().

View File

@ -6010,6 +6010,7 @@ $ WC "d_fd_set='" + d_fd_set + "'"
$ WC "d_fd_macros='define'"
$ WC "d_fdclose='undef'"
$ WC "d_fdim='" + d_fdim + "'"
$ WC "d_fdopendir='undef'"
$ WC "d_fds_bits='define'"
$ WC "d_fegetround='undef'"
$ WC "d_ffs='undef'"

View File

@ -212,6 +212,7 @@ d_fd_macros='undef'
d_fd_set='undef'
d_fdclose='undef'
d_fdim='undef'
d_fdopendir=undef
d_fds_bits='undef'
d_fegetround='undef'
d_ffs='undef'

View File

@ -199,6 +199,7 @@ d_fd_macros='define'
d_fd_set='define'
d_fdclose='undef'
d_fdim='undef'
d_fdopendir='undef'
d_fds_bits='define'
d_fegetround='undef'
d_ffs='undef'

View File

@ -199,6 +199,7 @@ d_fd_macros='define'
d_fd_set='define'
d_fdclose='undef'
d_fdim='undef'
d_fdopendir='undef'
d_fds_bits='define'
d_fegetround='undef'
d_ffs='undef'