summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-11-16 15:46:05 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-16 15:46:05 +0000
commitef9f17be917c8cd6b7df3ddfb35bc3e8431ce7b1 (patch)
tree3f41ea20c03accc2c97bfb8338c7219352b71578
parentc758dd7785a50bb172f25f223528b35a0213e9c5 (diff)
downloadperl-ef9f17be917c8cd6b7df3ddfb35bc3e8431ce7b1.tar.gz
Add HAS_SBRK_PROTO.
p4raw-id: //depot/perl@7710
-rwxr-xr-xConfigure9
-rw-r--r--Porting/Glossary6
-rw-r--r--Porting/config.sh5
-rw-r--r--Porting/config_H11
-rw-r--r--config_h.SH9
-rw-r--r--configure.com1
-rw-r--r--epoc/config.sh1
-rw-r--r--malloc.c2
-rw-r--r--uconfig.h9
-rwxr-xr-xuconfig.sh1
-rw-r--r--vos/config.alpha.def1
-rw-r--r--vos/config.alpha.h9
-rw-r--r--vos/config.ga.def1
-rw-r--r--vos/config.ga.h9
-rw-r--r--win32/config.bc1
-rw-r--r--win32/config.gc1
-rw-r--r--win32/config.vc1
17 files changed, 73 insertions, 4 deletions
diff --git a/Configure b/Configure
index 688d534a83..5ea281a108 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 Thu Nov 16 03:18:20 EET 2000 [metaconfig 3.0 PL70]
+# Generated on Thu Nov 16 16:33:41 EET 2000 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >/tmp/c1$$ <<EOF
@@ -478,6 +478,7 @@ d_rmdir=''
d_safebcpy=''
d_safemcpy=''
d_sanemcmp=''
+d_sbrkproto=''
d_select=''
d_sem=''
d_semctl=''
@@ -10895,6 +10896,11 @@ $rm -f try.* try core
set d_sanemcmp
eval $setvar
+: see if prototype for sbrk is available
+echo " "
+set d_sbrkproto sbrk $i_unistd unistd.h
+eval $hasproto
+
: see if select exists
set select d_select
eval $inlibc
@@ -15719,6 +15725,7 @@ d_rmdir='$d_rmdir'
d_safebcpy='$d_safebcpy'
d_safemcpy='$d_safemcpy'
d_sanemcmp='$d_sanemcmp'
+d_sbrkproto='$d_sbrkproto'
d_sched_yield='$d_sched_yield'
d_scm_rights='$d_scm_rights'
d_seekdir='$d_seekdir'
diff --git a/Porting/Glossary b/Porting/Glossary
index 6441fd8d7b..2233779fdb 100644
--- a/Porting/Glossary
+++ b/Porting/Glossary
@@ -1251,6 +1251,12 @@ d_sanemcmp (d_sanemcmp.U):
the memcpy() routine is available and can be used to compare relative
magnitudes of chars with their high bits set.
+d_sbrkproto (d_sbrkproto.U):
+ This variable conditionally defines the HAS_SBRK_PROTO symbol,
+ which indicates to the C program that the system provides
+ a prototype for the sbrk() function. Otherwise, it is
+ up to the program to supply one.
+
d_sched_yield (d_pthread_y.U):
This variable conditionally defines the HAS_SCHED_YIELD
symbol if the sched_yield routine is available to yield
diff --git a/Porting/config.sh b/Porting/config.sh
index 654bec78ab..9e0e300455 100644
--- a/Porting/config.sh
+++ b/Porting/config.sh
@@ -8,7 +8,7 @@
# Package name : perl5
# Source directory : /m/fs/work/work/permanent/perl/pp4/perl
-# Configuration time: Thu Nov 16 03:24:59 EET 2000
+# Configuration time: Thu Nov 16 16:43:36 EET 2000
# 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='Thu Nov 16 03:24:59 EET 2000'
+cf_time='Thu Nov 16 16:43:36 EET 2000'
charsize='1'
chgrp=''
chmod=''
@@ -286,6 +286,7 @@ d_rmdir='define'
d_safebcpy='define'
d_safemcpy='undef'
d_sanemcmp='define'
+d_sbrkproto='define'
d_sched_yield='define'
d_scm_rights='define'
d_seekdir='define'
diff --git a/Porting/config_H b/Porting/config_H
index dc2f0f1cd6..59537cba0b 100644
--- a/Porting/config_H
+++ b/Porting/config_H
@@ -17,7 +17,7 @@
/*
* Package name : perl5
* Source directory : /m/fs/work/work/permanent/perl/pp4/perl
- * Configuration time: Thu Nov 16 03:24:59 EET 2000
+ * Configuration time: Thu Nov 16 16:43:36 EET 2000
* Configured by : jhi
* Target system : osf1 alpha.hut.fi v4.0 878 alpha
*/
@@ -3211,4 +3211,13 @@
*/
#define HAS_FSYNC /**/
+/* HAS_SBRK_PROTO:
+ * This symbol, if defined, indicates that the system provides
+ * a prototype for the sbrk() function. Otherwise, it is up
+ * to the program to supply one. Good guesses are
+ * extern void* sbrk _((int));
+ * extern void* sbrk _((size_t));
+ */
+#define HAS_SBRK_PROTO /**/
+
#endif
diff --git a/config_h.SH b/config_h.SH
index e7c668ea44..f912151186 100644
--- a/config_h.SH
+++ b/config_h.SH
@@ -3231,5 +3231,14 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_fsync HAS_FSYNC /**/
+/* HAS_SBRK_PROTO:
+ * This symbol, if defined, indicates that the system provides
+ * a prototype for the sbrk() function. Otherwise, it is up
+ * to the program to supply one. Good guesses are
+ * extern void* sbrk _((int));
+ * extern void* sbrk _((size_t));
+ */
+#$d_sbrkproto HAS_SBRK_PROTO /**/
+
#endif
!GROK!THIS!
diff --git a/configure.com b/configure.com
index 6514b71ec0..d40c25094f 100644
--- a/configure.com
+++ b/configure.com
@@ -4940,6 +4940,7 @@ $ WC "d_rmdir='define'"
$ WC "d_safebcpy='undef'"
$ WC "d_safemcpy='define'"
$ WC "d_sanemcmp='define'"
+$ WC "d_sbrkproto='undef'"
$ WC "d_sched_yield='" + d_sched_yield + "'"
$ WC "d_scm_rights='undef'"
$ WC "d_seekdir='define'"
diff --git a/epoc/config.sh b/epoc/config.sh
index 1767946a91..9595c0cd92 100644
--- a/epoc/config.sh
+++ b/epoc/config.sh
@@ -275,6 +275,7 @@ d_rmdir='define'
d_safebcpy='undef'
d_safemcpy='undef'
d_sanemcmp='define'
+d_sbrkproto='undef'
d_sched_yield='undef'
d_scm_rights='undef'
d_seekdir='define'
diff --git a/malloc.c b/malloc.c
index 5d9652e869..42c2d651c6 100644
--- a/malloc.c
+++ b/malloc.c
@@ -894,9 +894,11 @@ Malloc_t Perl_sbrk (int size);
#include <unistd.h>
#endif
#else
+#ifndef HAS_SBRK_PROTO
extern Malloc_t sbrk(int);
#endif
#endif
+#endif
#ifdef DEBUGGING_MSTATS
/*
diff --git a/uconfig.h b/uconfig.h
index 218dc55546..a00eed1972 100644
--- a/uconfig.h
+++ b/uconfig.h
@@ -3207,4 +3207,13 @@
*/
# HAS_FSYNC /**/
+/* HAS_SBRK_PROTO:
+ * This symbol, if defined, indicates that the system provides
+ * a prototype for the sbrk() function. Otherwise, it is up
+ * to the program to supply one. Good guesses are
+ * extern void* sbrk _((int));
+ * extern void* sbrk _((size_t));
+ */
+/*#define HAS_SBRK_PROTO / **/
+
#endif
diff --git a/uconfig.sh b/uconfig.sh
index fe1f935bff..ca27412ab5 100755
--- a/uconfig.sh
+++ b/uconfig.sh
@@ -204,6 +204,7 @@ d_rmdir='undef'
d_safebcpy='undef'
d_safemcpy='undef'
d_sanemcmp='undef'
+d_sbrkproto='undef'
d_sched_yield='undef'
d_scm_rights='undef'
d_seekdir='undef'
diff --git a/vos/config.alpha.def b/vos/config.alpha.def
index 8212ce18bc..5a88cb811b 100644
--- a/vos/config.alpha.def
+++ b/vos/config.alpha.def
@@ -193,6 +193,7 @@ $d_rmdir='define'
$d_safebcpy='undef'
$d_safemcpy='undef'
$d_sanemcmp='define'
+$d_sbrkproto='undef'
$d_sched_yield='undef'
$d_scm_rights='undef'
$d_SCNfldbl='define'
diff --git a/vos/config.alpha.h b/vos/config.alpha.h
index 5736d9274c..f4d8392938 100644
--- a/vos/config.alpha.h
+++ b/vos/config.alpha.h
@@ -1825,6 +1825,15 @@
*/
#define HAS_SANE_MEMCMP /**/
+/* HAS_SBRK_PROTO:
+ * This symbol, if defined, indicates that the system provides
+ * a prototype for the sbrk() function. Otherwise, it is up
+ * to the program to supply one. Good guesses are
+ * extern void* sbrk _((int));
+ * extern void* sbrk _((size_t));
+ */
+/*#define HAS_SBRK_PROTO / **/
+
/* HAS_SEM:
* This symbol, if defined, indicates that the entire sem*(2) library is
* supported.
diff --git a/vos/config.ga.def b/vos/config.ga.def
index 88cd75513b..c041b5c686 100644
--- a/vos/config.ga.def
+++ b/vos/config.ga.def
@@ -193,6 +193,7 @@ $d_rmdir='define'
$d_safebcpy='undef'
$d_safemcpy='undef'
$d_sanemcmp='define'
+$d_sbrkproto='undef'
$d_sched_yield='undef'
$d_scm_rights='undef'
$d_SCNfldbl='define'
diff --git a/vos/config.ga.h b/vos/config.ga.h
index 8a259a3205..2fdc4a806d 100644
--- a/vos/config.ga.h
+++ b/vos/config.ga.h
@@ -1825,6 +1825,15 @@
*/
#define HAS_SANE_MEMCMP /**/
+/* HAS_SBRK_PROTO:
+ * This symbol, if defined, indicates that the system provides
+ * a prototype for the sbrk() function. Otherwise, it is up
+ * to the program to supply one. Good guesses are
+ * extern void* sbrk _((int));
+ * extern void* sbrk _((size_t));
+ */
+/*#define HAS_SBRK_PROTO / **/
+
/* HAS_SEM:
* This symbol, if defined, indicates that the entire sem*(2) library is
* supported.
diff --git a/win32/config.bc b/win32/config.bc
index 6d8f7cdd7f..04d5f45909 100644
--- a/win32/config.bc
+++ b/win32/config.bc
@@ -270,6 +270,7 @@ d_rmdir='define'
d_safebcpy='undef'
d_safemcpy='undef'
d_sanemcmp='define'
+d_sbrkproto='undef'
d_sched_yield='undef'
d_scm_rights='undef'
d_seekdir='define'
diff --git a/win32/config.gc b/win32/config.gc
index 320e87e7c4..a6b0bcf052 100644
--- a/win32/config.gc
+++ b/win32/config.gc
@@ -270,6 +270,7 @@ d_rmdir='define'
d_safebcpy='undef'
d_safemcpy='undef'
d_sanemcmp='define'
+d_sbrkproto='undef'
d_sched_yield='undef'
d_scm_rights='undef'
d_seekdir='define'
diff --git a/win32/config.vc b/win32/config.vc
index c29b799f5b..489cdd0683 100644
--- a/win32/config.vc
+++ b/win32/config.vc
@@ -270,6 +270,7 @@ d_rmdir='define'
d_safebcpy='undef'
d_safemcpy='undef'
d_sanemcmp='define'
+d_sbrkproto='undef'
d_sched_yield='undef'
d_scm_rights='undef'
d_seekdir='define'