This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
nanosleep probes as per Jarkko's request
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 30 Sep 2002 08:29:33 +0000 (08:29 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 30 Sep 2002 08:29:33 +0000 (08:29 +0000)
p4raw-id: //depot/perl@17944

17 files changed:
Configure
NetWare/config_H.wc
Porting/config.sh
Porting/config_H
config_h.SH
epoc/config.sh
perl.h
win32/config.bc
win32/config.gc
win32/config.vc
win32/config.vc64
win32/config_H.bc
win32/config_H.gc
win32/config_H.vc
win32/config_H.vc64
wince/config.ce
wince/config_H.ce

index e3faee5..4b57bcf 100755 (executable)
--- 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 Fri Sep 13 16:29:01 METDST 2002 [metaconfig 3.0 PL70]
+# Generated on Mon Sep 30 10:11:20 METDST 2002 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by perlbug@perl.org)
 
 cat >c1$$ <<EOF
@@ -548,6 +548,7 @@ d_msgrcv=''
 d_msgsnd=''
 d_msync=''
 d_munmap=''
+d_nanosleep=''
 d_nice=''
 d_nl_langinfo=''
 d_off64_t=''
@@ -755,6 +756,7 @@ fflushNULL=''
 fflushall=''
 fpossize=''
 fpostype=''
+gccansipedantic=''
 gccosandvers=''
 gccversion=''
 gidformat=''
@@ -1117,7 +1119,6 @@ defvoidused=''
 voidflags=''
 pm_apiversion=''
 xs_apiversion=''
-gccansipedantic=''
 yacc=''
 yaccflags=''
 CONFIG=''
@@ -2154,12 +2155,12 @@ for dir in \$*; do
        elif test -f \$dir/\$thing.exe; then
                if test -n "$DJGPP"; then
                        echo \$dir/\$thing.exe
-                       exit 0
                elif test "$eunicefix" != ":"; then
                        : on Eunice apparently
                        echo \$dir/\$thing
                        exit 0
                fi
+               exit 0
        fi
        ;;
        esac
@@ -7448,19 +7449,19 @@ Therefore I'm assuming you don't want to do that (unless you insist).
 EOM
            case "$installusrbinperl" in
            "$define"|[yY]*)    dflt='y';;
-           *)                  dflt='n';;
+           *)                  dflt='n';;
            esac
        else
            $cat <<EOM
 
-Since you don't have a /usr/bin/perl I'm assuming creating one is okay. 
+Since you don't have a /usr/bin/perl I'm assuming creating one is okay.
 
 EOM
            case "$installusrbinperl" in
            "$undef"|[nN]*)     dflt='n';;
-           *)                  dflt='y';;
+           *)                  dflt='y';;
            esac
-       fi
+       fi
        rp="Do you want to install perl as /usr/bin/perl?"
        . ./myread
        case "$ans" in
@@ -13385,6 +13386,10 @@ eval $inlibc
 set munmap d_munmap
 eval $inlibc
 
+: see if nanosleep exists
+set nanosleep d_nanosleep
+eval $inlibc
+
 : see if nice exists
 set nice d_nice
 eval $inlibc
@@ -19985,6 +19990,7 @@ d_msgsnd='$d_msgsnd'
 d_msync='$d_msync'
 d_munmap='$d_munmap'
 d_mymalloc='$d_mymalloc'
+d_nanosleep='$d_nanosleep'
 d_nice='$d_nice'
 d_nl_langinfo='$d_nl_langinfo'
 d_nv_preserves_uv='$d_nv_preserves_uv'
@@ -20204,6 +20210,7 @@ from='$from'
 full_ar='$full_ar'
 full_csh='$full_csh'
 full_sed='$full_sed'
+gccansipedantic='$gccansipedantic'
 gccosandvers='$gccosandvers'
 gccversion='$gccversion'
 getgrent_r_proto='$getgrent_r_proto'
@@ -20642,7 +20649,6 @@ vi='$vi'
 voidflags='$voidflags'
 xlibpth='$xlibpth'
 xs_apiversion='$xs_apiversion'
-gccansipedantic='$gccansipedantic'
 yacc='$yacc'
 yaccflags='$yaccflags'
 zcat='$zcat'
index 383a4c2..c3a0d94 100644 (file)
  */
 /*#define HAS_USLEEP           /**/
 
+/* HAS_NANOSLEEP:
+ *     This symbol, if defined, indicates that the nanosleep system
+ *     call is available to let the process sleep with 1E-9 accuracy.
+ */
+/*#define HAS_NANOSLEEP                /**/
+
 /* HASVOLATILE:
  *     This symbol, if defined, indicates that this C compiler knows about
  *     the volatile declaration.
index 4c342bd..8501faa 100644 (file)
@@ -8,7 +8,7 @@
 
 # Package name      : perl5
 # Source directory  : .
-# Configuration time: Wed Sep 11 10:54:26 METDST 2002
+# Configuration time: Mon Sep 30 10:33:19 METDST 2002
 # Configured by     : merijn
 # Target system     : hp-ux l1 b.11.00 u 9000800 527706567 unlimited-user license 
 
@@ -63,7 +63,7 @@ ccsymbols='__HP_cc=111104 __STDC_EXT__=1'
 ccversion='B.11.11.25985.GP'
 cf_by='merijn'
 cf_email='yourname@yourhost.yourplace.com'
-cf_time='Wed Sep 11 10:54:26 METDST 2002'
+cf_time='Mon Sep 30 10:33:19 METDST 2002'
 charsize='1'
 chgrp=''
 chmod='chmod'
@@ -304,6 +304,7 @@ d_msgsnd='define'
 d_msync='define'
 d_munmap='define'
 d_mymalloc='undef'
+d_nanosleep='define'
 d_nice='define'
 d_nl_langinfo='define'
 d_nv_preserves_uv='define'
@@ -523,6 +524,7 @@ from=':'
 full_ar='/usr/bin/ar'
 full_csh='/usr/bin/csh'
 full_sed='/usr/bin/sed'
+gccansipedantic=''
 gccosandvers=''
 gccversion=''
 getgrent_r_proto='0'
@@ -691,8 +693,8 @@ libperl='libperl.a'
 libpth='/usr/local/lib /lib /usr/lib /usr/ccs/lib'
 libs='-lcl -lpthread -lnsl -lnm -lndbm -lgdbm -ldb -lmalloc -ldld -lm -lc -lndir -lcrypt -lsec'
 libsdirs=' /lib'
-libsfiles=' libcl.sl libpthread.sl libnsl.sl libnm.sl libndbm.sl libgdbm.sl libdb.sl libmalloc.a libdld.sl libm.sl libc.sl libndir.a libcrypt.a libsec.sl'
-libsfound=' /lib/libcl.sl /lib/libpthread.sl /lib/libnsl.sl /lib/libnm.sl /lib/libndbm.sl /lib/libgdbm.sl /lib/libdb.sl /lib/libmalloc.a /lib/libdld.sl /lib/libm.sl /lib/libc.sl /lib/libndir.a /lib/libcrypt.a /lib/libsec.sl'
+libsfiles=' libcl.sl libpthread.sl libnsl.sl libnm.sl libndbm.sl libgdbm.sl.3 libdb.sl libmalloc.a libdld.sl libm.sl libc.sl libndir.a libcrypt.a libsec.sl'
+libsfound=' /lib/libcl.sl /lib/libpthread.sl /lib/libnsl.sl /lib/libnm.sl /lib/libndbm.sl /lib/libgdbm.sl.3 /lib/libdb.sl /lib/libmalloc.a /lib/libdld.sl /lib/libm.sl /lib/libc.sl /lib/libndir.a /lib/libcrypt.a /lib/libsec.sl'
 libspath=' /usr/local/lib /lib /usr/lib /usr/ccs/lib'
 libswanted='cl pthread sfio socket bind inet nsl nm ndbm gdbm db malloc dl dld sun m c cposix posix ndir dir crypt sec ucb bsd x util'
 libswanted_uselargefiles=''
@@ -771,7 +773,7 @@ patchlevel='9'
 path_sep=':'
 perl5='/pro/bin/perl'
 perl=''
-perl_patchlevel='17892'
+perl_patchlevel='17942'
 perladmin='yourname@yourhost.yourplace.com'
 perllibs='-lcl -lpthread -lnsl -lnm -lmalloc -ldld -lm -lc -lndir -lcrypt -lsec'
 perlpath='/opt/perl/bin/perl5.9.0'
@@ -955,7 +957,7 @@ vendorlibexp=''
 vendorprefix=''
 vendorprefixexp=''
 version='5.9.0'
-version_patchlevel_string='version 9 subversion 0 patch 17892'
+version_patchlevel_string='version 9 subversion 0 patch 17942'
 versiononly='define'
 vi=''
 voidflags='15'
@@ -983,7 +985,7 @@ PERL_SUBVERSION=0
 PERL_API_REVISION=5
 PERL_API_VERSION=8
 PERL_API_SUBVERSION=0
-PERL_PATCHLEVEL=17892
+PERL_PATCHLEVEL=17942
 PERL_CONFIG_SH=true
 # Variables propagated from previous config.sh file.
 doop_cflags=''
index d2614fe..f1919a0 100644 (file)
@@ -17,7 +17,7 @@
 /*
  * Package name      : perl5
  * Source directory  : .
- * Configuration time: Wed Sep 11 10:54:26 METDST 2002
+ * Configuration time: Mon Sep 30 10:33:19 METDST 2002
  * Configured by     : merijn
  * Target system     : hp-ux l1 b.11.00 u 9000800 527706567 unlimited-user license 
  */
  */
 #define HAS_STRUCT_MSGHDR      /**/
 
+/* HAS_NANOSLEEP:
+ *     This symbol, if defined, indicates that the nanosleep
+ *     system call is available to sleep with 1E-9 sec accuracy.
+ */
+#define HAS_NANOSLEEP          /**/
+
 /* HAS_OFF64_T:
  *     This symbol will be defined if the C compiler supports off64_t.
  */
index 369f7c6..a80675b 100644 (file)
@@ -2038,6 +2038,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_msghdr_s HAS_STRUCT_MSGHDR /**/
 
+/* HAS_NANOSLEEP:
+ *     This symbol, if defined, indicates that the nanosleep
+ *     system call is available to sleep with 1E-9 sec accuracy.
+ */
+#$d_nanosleep HAS_NANOSLEEP            /**/
+
 /* HAS_OFF64_T:
  *     This symbol will be defined if the C compiler supports off64_t.
  */
index 7779669..dd489a5 100644 (file)
@@ -915,6 +915,7 @@ d_getmnt='undef'
 d_statfs_f_flags='undef'
 d_statfs_s='undef'
 d_usleep='undef'
+d_nanosleep='undef'
 d_ustat='undef'
 i_sysstatfs='undef'
 i_sysvfs='undef'
diff --git a/perl.h b/perl.h
index d5d849a..ef08cce 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -4275,8 +4275,9 @@ extern void moncontrol(int);
    NVff
    NVgf
 
-   HAS_USLEEP
    HAS_UALARM
+   HAS_USLEEP
+   HAS_NANOSLEEP
 
    HAS_SETITIMER
    HAS_GETITIMER
index 483ffcd..42c8449 100644 (file)
@@ -291,6 +291,7 @@ d_msgsnd='undef'
 d_msync='undef'
 d_munmap='undef'
 d_mymalloc='undef'
+d_nanosleep='undef'
 d_nice='undef'
 d_nl_langinfo='undef'
 d_nv_preserves_uv='define'
index 6fd4351..3c2fc0c 100644 (file)
@@ -291,6 +291,7 @@ d_msgsnd='undef'
 d_msync='undef'
 d_munmap='undef'
 d_mymalloc='undef'
+d_nanosleep='undef'
 d_nice='undef'
 d_nl_langinfo='undef'
 d_nv_preserves_uv='define'
index 975dd9a..8d94c56 100644 (file)
@@ -291,6 +291,7 @@ d_msgsnd='undef'
 d_msync='undef'
 d_munmap='undef'
 d_mymalloc='undef'
+d_nanosleep='undef'
 d_nice='undef'
 d_nl_langinfo='undef'
 d_nv_preserves_uv='define'
index a4280b4..fbc4308 100644 (file)
@@ -291,6 +291,7 @@ d_msgsnd='undef'
 d_msync='undef'
 d_munmap='undef'
 d_mymalloc='undef'
+d_nanosleep='undef'
 d_nice='undef'
 d_nl_langinfo='undef'
 d_nv_preserves_uv='undef'
index 3d08698..e89d0c8 100644 (file)
  */
 /*#define HAS_USLEEP           /**/
 
+/* HAS_NANOSLEEP:
+ *     This symbol, if defined, indicates that the nanosleep system
+ *     call is available to let the process sleep with 1E-9 accuracy.
+ */
+/*#define HAS_NANOSLEEP                /**/
+
 /* HASVOLATILE:
  *     This symbol, if defined, indicates that this C compiler knows about
  *     the volatile declaration.
index b65a45d..5564a41 100644 (file)
  */
 /*#define HAS_USLEEP           /**/
 
+/* HAS_NANOSLEEP:
+ *     This symbol, if defined, indicates that the nanosleep system
+ *     call is available to let the process sleep with 1E-9 accuracy.
+ */
+/*#define HAS_NANOSLEEP                /**/
+
 /* HASVOLATILE:
  *     This symbol, if defined, indicates that this C compiler knows about
  *     the volatile declaration.
index 7d64e6b..f45fe40 100644 (file)
  */
 /*#define HAS_USLEEP           /**/
 
+/* HAS_NANOSLEEP:
+ *     This symbol, if defined, indicates that the nanosleep system
+ *     call is available to let the process sleep with 1E-9 accuracy.
+ */
+/*#define HAS_NANOSLEEP                /**/
+
 /* HASVOLATILE:
  *     This symbol, if defined, indicates that this C compiler knows about
  *     the volatile declaration.
index d2b6bc6..dcc2592 100644 (file)
  */
 /*#define HAS_USLEEP           /**/
 
+/* HAS_NANOSLEEP:
+ *     This symbol, if defined, indicates that the nanosleep system
+ *     call is available to let the process sleep with 1E-9 accuracy.
+ */
+/*#define HAS_NANOSLEEP                /**/
+
 /* HASVOLATILE:
  *     This symbol, if defined, indicates that this C compiler knows about
  *     the volatile declaration.
index 6582c1c..a467a45 100644 (file)
@@ -277,6 +277,7 @@ d_msgsnd='undef'
 d_msync='undef'
 d_munmap='undef'
 d_mymalloc='undef'
+d_nanosleep='undef'
 d_nice='undef'
 d_nv_preserves_uv='define'
 d_off64_t='undef'
index 30e855a..b246ce6 100644 (file)
  */
 /*#define HAS_USLEEP           /**/
 
+/* HAS_NANOSLEEP:
+ *     This symbol, if defined, indicates that the nanosleep system
+ *     call is available to let the process sleep with 1E-9 accuracy.
+ */
+/*#define HAS_NANOSLEEP                /**/
+
 /* HASVOLATILE:
  *     This symbol, if defined, indicates that this C compiler knows about
  *     the volatile declaration.