From ef9f17be917c8cd6b7df3ddfb35bc3e8431ce7b1 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Thu, 16 Nov 2000 15:46:05 +0000 Subject: [PATCH] Add HAS_SBRK_PROTO. p4raw-id: //depot/perl@7710 --- Configure | 9 ++++++++- Porting/Glossary | 6 ++++++ Porting/config.sh | 5 +++-- Porting/config_H | 11 ++++++++++- config_h.SH | 9 +++++++++ configure.com | 1 + epoc/config.sh | 1 + malloc.c | 2 ++ uconfig.h | 9 +++++++++ uconfig.sh | 1 + vos/config.alpha.def | 1 + vos/config.alpha.h | 9 +++++++++ vos/config.ga.def | 1 + vos/config.ga.h | 9 +++++++++ win32/config.bc | 1 + win32/config.gc | 1 + win32/config.vc | 1 + 17 files changed, 73 insertions(+), 4 deletions(-) diff --git a/Configure b/Configure index 688d534..5ea281a 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$$ <$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 6514b71..d40c250 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 1767946..9595c0c 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 5d9652e..42c2d65 100644 --- a/malloc.c +++ b/malloc.c @@ -894,9 +894,11 @@ Malloc_t Perl_sbrk (int size); #include #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 218dc55..a00eed1 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 fe1f935..ca27412 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 8212ce1..5a88cb8 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 5736d92..f4d8392 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 88cd755..c041b5c 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 8a259a3..2fdc4a8 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 6d8f7cd..04d5f45 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 320e87e..a6b0bcf 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 c29b799..489cdd0 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' -- 2.7.4