From: Jarkko Hietaniemi Date: Tue, 27 Mar 2001 05:29:07 +0000 (+0000) Subject: Add sockatmark() probing. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=49a78c826894475f45e57b053fd96ea7cb04dc4d;p=p5sagit%2Fp5-mst-13.2.git Add sockatmark() probing. p4raw-id: //depot/perl@9371 --- diff --git a/Configure b/Configure index d510ca7..74f835a 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Tue Mar 13 05:21:04 EET 2001 [metaconfig 3.0 PL70] +# Generated on Tue Mar 27 07:51:37 EET DST 2001 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ </dev/null 2>&1; then + val="$define" + echo "You have socket ioctls defined in ." >&4 + else + val="$undef" + echo "No socket ioctls found in ." >&4 + fi +else + val="$undef" + $cat < not found, assuming socket ioctls are in . +EOM +fi +set i_syssockio +eval $setvar + : see if this is a syslog.h system set syslog.h i_syslog @@ -16180,6 +16205,7 @@ d_shmget='$d_shmget' d_sigaction='$d_sigaction' d_sigprocmask='$d_sigprocmask' d_sigsetjmp='$d_sigsetjmp' +d_sockatmark='$d_sockatmark' d_socket='$d_socket' d_socklen_t='$d_socklen_t' d_sockpair='$d_sockpair' diff --git a/Porting/Glossary b/Porting/Glossary index 4c7db23..61a52c5 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -1460,6 +1460,10 @@ d_sigsetjmp (d_sigsetjmp.U): which indicates that the sigsetjmp() routine is available to call setjmp() and optionally save the process's signal mask. +d_sockatmark (d_sockatmark.U): + This variable conditionally defines the HAS_SOCKATMARK symbol, which + indicates to the C program that the sockatmark() routine is available. + d_socket (d_socket.U): This variable conditionally defines HAS_SOCKET, which indicates that the BSD socket interface is supported. diff --git a/Porting/config.sh b/Porting/config.sh index 5660287..3853ffb 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -8,7 +8,7 @@ # Package name : perl5 # Source directory : . -# Configuration time: Sat Mar 3 02:46:53 EET 2001 +# Configuration time: Tue Mar 27 07:55:38 EET DST 2001 # Configured by : jhi # Target system : osf1 alpha.hut.fi v4.0 878 alpha @@ -62,7 +62,7 @@ ccsymbols='__alpha=1 __LANGUAGE_C__=1 __osf__=1 __unix__=1 _LONGLONG=1 _SYSTYPE_ ccversion='V5.6-082' cf_by='jhi' cf_email='yourname@yourhost.yourplace.com' -cf_time='Sat Mar 3 02:46:53 EET 2001' +cf_time='Tue Mar 27 07:55:38 EET DST 2001' charsize='1' chgrp='' chmod='' @@ -331,6 +331,7 @@ d_shmget='define' d_sigaction='define' d_sigprocmask='define' d_sigsetjmp='define' +d_sockatmark='undef' d_socket='define' d_socklen_t='undef' d_sockpair='define' @@ -403,7 +404,7 @@ dlext='so' dlsrc='dl_dlopen.xs' doublesize='8' drand01='drand48()' -dynamic_ext='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Encode Fcntl File/Glob Filter/Util/Call IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Storable Sys/Hostname Sys/Syslog Thread attrs re' +dynamic_ext='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call IO IPC/SysV MIME/Base64 NDBM_File ODBM_File Opcode POSIX PerlIO/Scalar SDBM_File Socket Storable Sys/Hostname Sys/Syslog Thread attrs re' eagain='EAGAIN' ebcdic='undef' echo='echo' @@ -412,7 +413,7 @@ emacs='' eunicefix=':' exe_ext='' expr='expr' -extensions='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Encode Fcntl File/Glob Filter/Util/Call IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Storable Sys/Hostname Sys/Syslog Thread attrs re Errno' +extensions='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call IO IPC/SysV MIME/Base64 NDBM_File ODBM_File Opcode POSIX PerlIO/Scalar SDBM_File Socket Storable Sys/Hostname Sys/Syslog Thread attrs re Errno' fflushNULL='define' fflushall='undef' find='' @@ -503,7 +504,7 @@ i_sysparam='define' i_sysresrc='define' i_syssecrt='define' i_sysselct='define' -i_syssockio='' +i_syssockio='undef' i_sysstat='define' i_sysstatfs='undef' i_sysstatvfs='define' @@ -552,7 +553,7 @@ issymlink='test -h' ivdformat='"ld"' ivsize='8' ivtype='long' -known_extensions='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Encode Fcntl File/Glob Filter/Util/Call GDBM_File IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Storable Sys/Hostname Sys/Syslog Thread attrs re' +known_extensions='B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDBM_File IO IPC/SysV MIME/Base64 NDBM_File ODBM_File Opcode POSIX PerlIO/Scalar SDBM_File Socket Storable Sys/Hostname Sys/Syslog Thread attrs re' ksh='' ld='ld' lddlflags='-shared -expect_unresolved "*" -msym -std -s' diff --git a/Porting/config_H b/Porting/config_H index 879f748..fb8bf3b 100644 --- a/Porting/config_H +++ b/Porting/config_H @@ -17,7 +17,7 @@ /* * Package name : perl5 * Source directory : . - * Configuration time: Sat Mar 3 02:46:53 EET 2001 + * Configuration time: Tue Mar 27 07:55:38 EET DST 2001 * Configured by : jhi * Target system : osf1 alpha.hut.fi v4.0 878 alpha */ @@ -815,7 +815,12 @@ * This symbol, if defined, indicates that exists and should * be included. Otherwise, include or . */ +/* I_SYS_SOCKIO: + * This symbol, if defined, indicates the should be included + * to get socket ioctl options, like SIOCATMARK. + */ #define I_SYS_IOCTL /**/ +/*#define I_SYS_SOCKIO / **/ /* I_SYS_NDIR: * This symbol, if defined, indicates to the C program that it should @@ -3254,4 +3259,10 @@ */ #define HAS_SIGPROCMASK /**/ +/* HAS_SOCKATMARK: + * This symbol, if defined, indicates that the sockatmark routine is + * available to test whether a socket is at the out-of-band mark. + */ +/*#define HAS_SOCKATMARK / **/ + #endif diff --git a/config_h.SH b/config_h.SH index 8a71dfe..eb95593 100644 --- a/config_h.SH +++ b/config_h.SH @@ -835,7 +835,12 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates that exists and should * be included. Otherwise, include or . */ +/* I_SYS_SOCKIO: + * This symbol, if defined, indicates the should be included + * to get socket ioctl options, like SIOCATMARK. + */ #$i_sysioctl I_SYS_IOCTL /**/ +#$i_syssockio I_SYS_SOCKIO /**/ /* I_SYS_NDIR: * This symbol, if defined, indicates to the C program that it should @@ -3274,5 +3279,11 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_sigprocmask HAS_SIGPROCMASK /**/ +/* HAS_SOCKATMARK: + * This symbol, if defined, indicates that the sockatmark routine is + * available to test whether a socket is at the out-of-band mark. + */ +#$d_sockatmark HAS_SOCKATMARK /**/ + #endif !GROK!THIS! diff --git a/configure.com b/configure.com index 3767f79..4523f7f 100644 --- a/configure.com +++ b/configure.com @@ -5130,6 +5130,7 @@ $ WC "d_shmatprototype='undef'" $ WC "d_sigaction='" + d_sigaction + "'" $ WC "d_sigprocmask='" + d_sigprocmask + "'" $ WC "d_sigsetjmp='" + d_sigsetjmp + "'" +$ WC "d_sockatmark='undef'" $ WC "d_socket='" + d_socket + "'" $ WC "d_socklen_t='" + d_socklen_t + "'" $ WC "d_sockpair='undef'" @@ -5282,6 +5283,7 @@ $ WC "i_sysparam='undef'" $ WC "i_sysresrc='undef'" $ WC "i_syssecrt='" + i_syssecrt + "'" $ WC "i_sysselct='undef'" +$ WC "i_syssockio='undef'" $ WC "i_sysstat='define'" $ WC "i_sysstatfs='undef'" $ WC "i_sysstatvfs='undef'" diff --git a/epoc/config.sh b/epoc/config.sh index db84cf0..2c4c03e 100644 --- a/epoc/config.sh +++ b/epoc/config.sh @@ -321,6 +321,7 @@ d_shmget='undef' d_sigaction='undef' d_sigprocmask='undef' d_sigsetjmp='undef' +d_sockatmark='undef' d_socket='define' d_sockpair='undef' d_socks5_init='undef' diff --git a/uconfig.h b/uconfig.h index b888415..60239ac 100644 --- a/uconfig.h +++ b/uconfig.h @@ -811,7 +811,12 @@ * This symbol, if defined, indicates that exists and should * be included. Otherwise, include or . */ +/* I_SYS_SOCKIO: + * This symbol, if defined, indicates the should be included + * to get socket ioctl options, like SIOCATMARK. + */ /*#define I_SYS_IOCTL / **/ +/*#define I_SYS_SOCKIO / **/ /* I_SYS_NDIR: * This symbol, if defined, indicates to the C program that it should @@ -3250,4 +3255,10 @@ */ /*#define HAS_SIGPROCMASK / **/ +/* HAS_SOCKATMARK: + * This symbol, if defined, indicates that the sockatmark routine is + * available to test whether a socket is at the out-of-band mark. + */ +/*#define HAS_SOCKATMARK / **/ + #endif diff --git a/uconfig.sh b/uconfig.sh index bfcf4e0..f2afe30 100755 --- a/uconfig.sh +++ b/uconfig.sh @@ -262,6 +262,7 @@ d_shmget='undef' d_sigaction='undef' d_sigprocmask='undef' d_sigsetjmp='undef' +d_sockatmark='undef' d_socket='undef' d_socklen_t='undef' d_sockpair='undef' @@ -410,7 +411,7 @@ i_sysparam='undef' i_sysresrc='undef' i_syssecrt='undef' i_sysselct='undef' -i_syssockio='' +i_syssockio='undef' i_sysstat='define' i_sysstatfs='undef' i_sysstatvfs='undef' diff --git a/vos/config.alpha.def b/vos/config.alpha.def index f290643..3128752 100644 --- a/vos/config.alpha.def +++ b/vos/config.alpha.def @@ -232,6 +232,7 @@ $d_shmatprototype='define' $d_sigaction='undef' $d_sigprocmask='undef' $d_sigsetjmp='undef' +$d_sockatmark='undef' $d_socket='define' $d_sockpair='undef' $d_socks5_init='undef' @@ -362,6 +363,7 @@ $i_sysparam='undef' $i_sysresrc='undef' $i_syssecrt='undef' $i_sysselct='define' +$i_syssockio='undef' $i_sysstat='define' $i_sysstatfs='undef' $i_sysstatvfs='undef' diff --git a/vos/config.alpha.h b/vos/config.alpha.h index 33889df..a4d0f3d 100644 --- a/vos/config.alpha.h +++ b/vos/config.alpha.h @@ -3256,4 +3256,10 @@ */ /*#define NEED_VA_COPY / **/ +/* HAS_SOCKATMARK: + * This symbol, if defined, indicates that the sockatmark routine is + * available to test whether a socket is at the out-of-band mark. + */ +/*#define HAS_SOCKATMARK / **/ + #endif diff --git a/vos/config.ga.def b/vos/config.ga.def index 57efb6b..7f0cbdb 100644 --- a/vos/config.ga.def +++ b/vos/config.ga.def @@ -232,6 +232,7 @@ $d_shmatprototype='define' $d_sigaction='define' $d_sigprocmask='define' $d_sigsetjmp='define' +$d_sockatmark='undef' $d_socket='define' $d_sockpair='undef' $d_socks5_init='undef' @@ -362,6 +363,7 @@ $i_sysparam='undef' $i_sysresrc='undef' $i_syssecrt='undef' $i_sysselct='define' +$i_syssockio='undef' $i_sysstat='define' $i_sysstatfs='undef' $i_sysstatvfs='undef' diff --git a/vos/config.ga.h b/vos/config.ga.h index e7be756..f54c4de 100644 --- a/vos/config.ga.h +++ b/vos/config.ga.h @@ -3256,4 +3256,10 @@ */ /*#define NEED_VA_COPY / **/ +/* HAS_SOCKATMARK: + * This symbol, if defined, indicates that the sockatmark routine is + * available to test whether a socket is at the out-of-band mark. + */ +/*#define HAS_SOCKATMARK / **/ + #endif diff --git a/win32/config.bc b/win32/config.bc index bc7b1da..f777579 100644 --- a/win32/config.bc +++ b/win32/config.bc @@ -314,6 +314,7 @@ d_shmget='undef' d_sigaction='undef' d_sigprocmask='undef' d_sigsetjmp='undef' +d_sockatmark='undef' d_socket='define' d_socklen_t='undef' d_sockpair='undef' @@ -484,7 +485,7 @@ i_sysparam='undef' i_sysresrc='undef' i_syssecrt='undef' i_sysselct='undef' -i_syssockio='' +i_syssockio='undef' i_sysstatfs='undef' i_sysstatvfs='undef' i_sysstat='define' diff --git a/win32/config.gc b/win32/config.gc index 196b22c..64ccb20 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -314,6 +314,7 @@ d_shmget='undef' d_sigaction='undef' d_sigprocmask='undef' d_sigsetjmp='undef' +d_sockatmark='undef' d_socket='define' d_socklen_t='undef' d_sockpair='undef' @@ -484,7 +485,7 @@ i_sysparam='undef' i_sysresrc='undef' i_syssecrt='undef' i_sysselct='undef' -i_syssockio='' +i_syssockio='undef' i_sysstatfs='undef' i_sysstatvfs='undef' i_sysstat='define' diff --git a/win32/config.vc b/win32/config.vc index 9cb3a77..b243518 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -314,6 +314,7 @@ d_shmget='undef' d_sigaction='undef' d_sigprocmask='undef' d_sigsetjmp='undef' +d_sockatmark='undef' d_socket='define' d_socklen_t='undef' d_sockpair='undef' @@ -484,7 +485,7 @@ i_sysparam='undef' i_sysresrc='undef' i_syssecrt='undef' i_sysselct='undef' -i_syssockio='' +i_syssockio='undef' i_sysstatfs='undef' i_sysstatvfs='undef' i_sysstat='define'