diff options
author | Zefram <zefram@fysh.org> | 2017-12-19 17:43:21 +0000 |
---|---|---|
committer | Zefram <zefram@fysh.org> | 2017-12-22 16:22:50 +0000 |
commit | 226394c3368f2e223fb9d10e2b5408a6bf8608f5 (patch) | |
tree | 8ac6a8322b21d7307cf8bfaeee954f23206469ee | |
parent | 90a9496b5607497839aa08a0ddcdfa54c9d47678 (diff) | |
download | perl-226394c3368f2e223fb9d10e2b5408a6bf8608f5.tar.gz |
configure probe for mkostemp()
This is another file descriptor creating function that's needed as an
O_CLOEXEC-handling variant of an existing function.
-rwxr-xr-x | Configure | 6 | ||||
-rw-r--r-- | Cross/config.sh-arm-linux | 1 | ||||
-rw-r--r-- | Cross/config.sh-arm-linux-n770 | 1 | ||||
-rw-r--r-- | NetWare/config.wc | 1 | ||||
-rw-r--r-- | Porting/Glossary | 6 | ||||
-rw-r--r-- | Porting/config.sh | 5 | ||||
-rw-r--r-- | Porting/config_H | 9 | ||||
-rwxr-xr-x | config_h.SH | 7 | ||||
-rw-r--r-- | configure.com | 1 | ||||
-rw-r--r-- | metaconfig.h | 1 | ||||
-rw-r--r-- | plan9/config_sh.sample | 1 | ||||
-rw-r--r-- | symbian/config.sh | 1 | ||||
-rw-r--r-- | uconfig.h | 11 | ||||
-rw-r--r-- | uconfig.sh | 1 | ||||
-rw-r--r-- | uconfig64.sh | 1 | ||||
-rw-r--r-- | win32/config.ce | 1 | ||||
-rw-r--r-- | win32/config.gc | 1 | ||||
-rw-r--r-- | win32/config.vc | 1 |
18 files changed, 51 insertions, 5 deletions
@@ -667,6 +667,7 @@ d_memrchr='' d_mkdir='' d_mkdtemp='' d_mkfifo='' +d_mkostemp='' d_mkstemp='' d_mkstemps='' d_mktime='' @@ -16187,6 +16188,10 @@ eval $inlibc set mkfifo d_mkfifo eval $inlibc +: see if mkostemp exists +set mkostemp d_mkostemp +eval $inlibc + : see if mkstemp exists set mkstemp d_mkstemp eval $inlibc @@ -24061,6 +24066,7 @@ d_memrchr='$d_memrchr' d_mkdir='$d_mkdir' d_mkdtemp='$d_mkdtemp' d_mkfifo='$d_mkfifo' +d_mkostemp='$d_mkostemp' d_mkstemp='$d_mkstemp' d_mkstemps='$d_mkstemps' d_mktime64='$d_mktime64' diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux index ea63ba550f..09fd7c70c1 100644 --- a/Cross/config.sh-arm-linux +++ b/Cross/config.sh-arm-linux @@ -383,6 +383,7 @@ d_memrchr='undef' d_mkdir='define' d_mkdtemp='define' d_mkfifo='define' +d_mkostemp='undef' d_mkstemp='define' d_mkstemps='undef' d_mktime64='undef' diff --git a/Cross/config.sh-arm-linux-n770 b/Cross/config.sh-arm-linux-n770 index 0f3bce0c37..69cddee25e 100644 --- a/Cross/config.sh-arm-linux-n770 +++ b/Cross/config.sh-arm-linux-n770 @@ -382,6 +382,7 @@ d_memrchr='undef' d_mkdir='define' d_mkdtemp='define' d_mkfifo='define' +d_mkostemp='undef' d_mkstemp='define' d_mkstemps='undef' d_mktime64='undef' diff --git a/NetWare/config.wc b/NetWare/config.wc index 7270b75e04..83a4fb374d 100644 --- a/NetWare/config.wc +++ b/NetWare/config.wc @@ -372,6 +372,7 @@ d_memrchr='undef' d_mkdir='define' d_mkdtemp='undef' d_mkfifo='undef' +d_mkostemp='undef' d_mkstemp='undef' d_mkstemps='undef' d_mktime64='undef' diff --git a/Porting/Glossary b/Porting/Glossary index ddcd7e56f8..09d3d16f4e 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -1715,6 +1715,12 @@ d_mkfifo (d_mkfifo.U): This variable conditionally defines the HAS_MKFIFO symbol, which indicates to the C program that the mkfifo() routine is available. +d_mkostemp (d_mkostemp.U): + This variable conditionally defines the HAS_MKOSTEMP symbol, which + indicates to the C program that the mkostemp() routine is available + to exclusively create and open a uniquely named (with a suffix) + temporary file. + d_mkstemp (d_mkstemp.U): This variable conditionally defines the HAS_MKSTEMP symbol, which indicates to the C program that the mkstemp() routine is available diff --git a/Porting/config.sh b/Porting/config.sh index 7c505d56ee..8f31a0305b 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -8,7 +8,7 @@ # Package name : perl5 # Source directory : . -# Configuration time: Fri Dec 22 15:55:04 GMT 2017 +# Configuration time: Fri Dec 22 16:17:32 GMT 2017 # Configured by : yourname # Target system : linux barba.rous.org 3.16.0-4-amd64 #1 smp debian 3.16.43-2+deb8u2 (2017-06-26) x86_64 gnulinux @@ -76,7 +76,7 @@ ccsymbols='' ccversion='' cf_by='yourname' cf_email='yourname@yourhost.yourplace.com' -cf_time='Fri Dec 22 15:55:04 GMT 2017' +cf_time='Fri Dec 22 16:17:32 GMT 2017' charbits='8' charsize='1' chgrp='' @@ -397,6 +397,7 @@ d_memrchr='define' d_mkdir='define' d_mkdtemp='define' d_mkfifo='define' +d_mkostemp='define' d_mkstemp='define' d_mkstemps='define' d_mktime64='undef' diff --git a/Porting/config_H b/Porting/config_H index 852224f98a..798b6fee3b 100644 --- a/Porting/config_H +++ b/Porting/config_H @@ -13,7 +13,7 @@ /* Package name : perl5 * Source directory : . - * Configuration time: Fri Dec 22 15:55:04 GMT 2017 + * Configuration time: Fri Dec 22 16:17:32 GMT 2017 * Configured by : yourname * Target system : linux barba.rous.org 3.16.0-4-amd64 #1 smp debian 3.16.43-2+deb8u2 (2017-06-26) x86_64 gnulinux */ @@ -3013,6 +3013,13 @@ */ #define HAS_MKDTEMP /**/ +/* HAS_MKOSTEMP: + * This symbol, if defined, indicates that the mkostemp routine is + * available to exclusively create and open a uniquely named + * temporary file. + */ +#define HAS_MKOSTEMP /**/ + /* HAS_MKSTEMPS: * This symbol, if defined, indicates that the mkstemps routine is * available to exclusively create and open a uniquely named diff --git a/config_h.SH b/config_h.SH index b8300b4941..71d744222b 100755 --- a/config_h.SH +++ b/config_h.SH @@ -3044,6 +3044,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_mkdtemp HAS_MKDTEMP /**/ +/* HAS_MKOSTEMP: + * This symbol, if defined, indicates that the mkostemp routine is + * available to exclusively create and open a uniquely named + * temporary file. + */ +#$d_mkostemp HAS_MKOSTEMP /**/ + /* HAS_MKSTEMPS: * This symbol, if defined, indicates that the mkstemps routine is * available to exclusively create and open a uniquely named diff --git a/configure.com b/configure.com index cff0fee1cb..cde3dd4831 100644 --- a/configure.com +++ b/configure.com @@ -6185,6 +6185,7 @@ $ WC "d_mkdir='define'" $ WC "d_mkdtemp='" + d_mkdtemp + "'" $ WC "d_mkfifo='undef'" $ WC "d_mknod='undef'" +$ WC "d_mkostemp='undef'" $ WC "d_mkstemp='" + d_mkstemp + "'" $ WC "d_mkstemps='" + d_mkstemps + "'" $ WC "d_mktime='" + d_mktime + "'" diff --git a/metaconfig.h b/metaconfig.h index ba8ee4a00a..346bde2907 100644 --- a/metaconfig.h +++ b/metaconfig.h @@ -22,4 +22,5 @@ * HAS_NANOSLEEP * HAS_STRTOLD_L * I_WCHAR + * HAS_MKOSTEMP */ diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample index 9a1ab8fcae..ef3b031e2d 100644 --- a/plan9/config_sh.sample +++ b/plan9/config_sh.sample @@ -383,6 +383,7 @@ d_memrchr='undef' d_mkdir='define' d_mkdtemp='undef' d_mkfifo='define' +d_mkostemp='undef' d_mkstemp='undef' d_mkstemps='undef' d_mktime64='undef' diff --git a/symbian/config.sh b/symbian/config.sh index 31081eee06..a677551d83 100644 --- a/symbian/config.sh +++ b/symbian/config.sh @@ -330,6 +330,7 @@ d_memrchr='undef' d_mkdir='define' d_mkdtemp='undef' d_mkfifo='undef' +d_mkostemp='undef' d_mkstemp='undef' d_mkstemps='undef' d_mktime64='undef' @@ -3009,6 +3009,13 @@ */ /*#define HAS_MKDTEMP / **/ +/* HAS_MKOSTEMP: + * This symbol, if defined, indicates that the mkostemp routine is + * available to exclusively create and open a uniquely named + * temporary file. + */ +/*#define HAS_MKOSTEMP / **/ + /* HAS_MKSTEMPS: * This symbol, if defined, indicates that the mkstemps routine is * available to exclusively create and open a uniquely named @@ -5212,6 +5219,6 @@ #endif /* Generated from: - * 7e8e752fea0ea763029b7c6520f3272c8c86c36221269040b1d39493cf12aa13 config_h.SH - * 1aa1a771df9d5ae1df4e6419f0b30a12a974527ec226712787d96d0d770010e7 uconfig.sh + * b35fd150a5540d0fe06540db67bc67864b14dd744550f105e13b78ef97a953d5 config_h.SH + * 02e3ab990e287cd32a5d000bc0b75168aa96496175b82315bdd47f898d00b0a6 uconfig.sh * ex: set ro: */ diff --git a/uconfig.sh b/uconfig.sh index 86a52dc8aa..58116a9d97 100644 --- a/uconfig.sh +++ b/uconfig.sh @@ -323,6 +323,7 @@ d_memrchr='undef' d_mkdir='undef' d_mkdtemp='undef' d_mkfifo='undef' +d_mkostemp='undef' d_mkstemp='undef' d_mkstemps='undef' d_mktime64='undef' diff --git a/uconfig64.sh b/uconfig64.sh index 2d23b89bec..6ed3d678ed 100644 --- a/uconfig64.sh +++ b/uconfig64.sh @@ -323,6 +323,7 @@ d_memrchr='undef' d_mkdir='undef' d_mkdtemp='undef' d_mkfifo='undef' +d_mkostemp='undef' d_mkstemp='undef' d_mkstemps='undef' d_mktime64='undef' diff --git a/win32/config.ce b/win32/config.ce index 8a7b80c517..2f2d70a567 100644 --- a/win32/config.ce +++ b/win32/config.ce @@ -370,6 +370,7 @@ d_memrchr='undef' d_mkdir='define' d_mkdtemp='undef' d_mkfifo='undef' +d_mkostemp='undef' d_mkstemp='undef' d_mkstemps='undef' d_mktime64='undef' diff --git a/win32/config.gc b/win32/config.gc index 9b9820257f..f49fe865a4 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -370,6 +370,7 @@ d_memrchr='undef' d_mkdir='define' d_mkdtemp='undef' d_mkfifo='undef' +d_mkostemp='undef' d_mkstemp='undef' d_mkstemps='undef' d_mktime64='undef' diff --git a/win32/config.vc b/win32/config.vc index 9604ba8ea6..a7cea270ce 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -370,6 +370,7 @@ d_memrchr='undef' d_mkdir='define' d_mkdtemp='undef' d_mkfifo='undef' +d_mkostemp='undef' d_mkstemp='undef' d_mkstemps='undef' d_mktime64='undef' |