This means we also never need to consider using BSD bzero().
d_builtin_add_overflow=''
d_builtin_mul_overflow=''
d_builtin_sub_overflow=''
-d_bzero=''
d_c99_variadic_macros=''
d_casti32=''
castflags=''
d_memmem=''
d_memmove=''
d_memrchr=''
-d_memset=''
d_mkdir=''
d_mkdtemp=''
d_mkfifo=''
eval $setvar
$rm_try
-: see if bzero exists
-set bzero d_bzero
-eval $inlibc
-
: see if stdarg is available
echo " "
if $test `./findhdr stdarg.h`; then
set memrchr d_memrchr
eval $inlibc
-: see if memset exists
-set memset d_memset
-eval $inlibc
-
: see if mkdir exists
set mkdir d_mkdir
eval $inlibc
d_builtin_expect='$d_builtin_expect'
d_builtin_mul_overflow='$d_builtin_mul_overflow'
d_builtin_sub_overflow='$d_builtin_sub_overflow'
-d_bzero='$d_bzero'
d_c99_variadic_macros='$d_c99_variadic_macros'
d_casti32='$d_casti32'
d_castneg='$d_castneg'
d_memmem='$d_memmem'
d_memmove='$d_memmove'
d_memrchr='$d_memrchr'
-d_memset='$d_memset'
d_mkdir='$d_mkdir'
d_mkdtemp='$d_mkdtemp'
d_mkfifo='$d_mkfifo'
d_builtin_expect='define'
d_builtin_mul_overflow='undef'
d_builtin_sub_overflow='undef'
-d_bzero='define'
d_c99_variadic_macros='undef'
d_casti32='define'
d_castneg='define'
d_memmem='undef'
d_memmove='define'
d_memrchr='undef'
-d_memset='define'
d_mkdir='define'
d_mkdtemp='define'
d_mkfifo='define'
d_bsdsetpgrp='undef'
d_builtin_choose_expr='define'
d_builtin_expect='define'
-d_bzero='define'
d_c99_variadic_macros='undef'
d_casti32='define'
d_castneg='define'
d_memcmp='define'
d_memcpy='define'
d_memmove='define'
-d_memset='define'
d_mkdir='define'
d_mkdtemp='define'
d_mkfifo='define'
d_builtin_expect='undef'
d_builtin_mul_overflow='undef'
d_builtin_sub_overflow='undef'
-d_bzero='undef'
d_c99_variadic_macros='undef'
d_casti32='undef'
d_castneg='define'
d_memmem='undef'
d_memmove='define'
d_memrchr='undef'
-d_memset='define'
d_mkdir='define'
d_mkdtemp='undef'
d_mkfifo='undef'
*/
/*#define HAS_BCOPY /**/
-/* HAS_BZERO:
- * This symbol is defined if the bzero() routine is available to
- * set a memory block to 0.
- */
-/*#define HAS_BZERO /**/
-
/* HAS_CHOWN:
* This symbol, if defined, indicates that the chown routine is
* available.
*/
#define HAS_MEMMOVE /**/
-/* HAS_MEMSET:
- * This symbol, if defined, indicates that the memset routine is available
- * to set blocks of memory.
- */
-#define HAS_MEMSET /**/
-
/* HAS_MKDIR:
* This symbol, if defined, indicates that the mkdir routine is available
* to create directories. Otherwise you should fork off a new process to
__builtin_expect to provide the compiler with branch prediction
information.
-d_bzero (d_bzero.U):
- This variable conditionally defines the HAS_BZERO symbol if
- the bzero() routine is available to set memory to 0.
-
d_c99_variadic_macros (d_c99_variadic.U):
This variable conditionally defines the HAS_C99_VARIADIC_MACROS
symbol, which indicates to the C program that C99 variadic macros
indicates to the C program that the memmove() routine is available
to copy potentially overlapping blocks of memory.
-d_memset (d_memset.U):
- This variable conditionally defines the HAS_MEMSET symbol, which
- indicates to the C program that the memset() routine is available
- to set blocks of memory.
-
d_memrchr (d_memrchr.U):
This variable conditionally defines the HAS_MEMRCHR symbol, which
indicates to the C program that the memrchr() routine is available
d_builtin_expect='define'
d_builtin_mul_overflow='undef'
d_builtin_sub_overflow='undef'
-d_bzero='define'
d_c99_variadic_macros='define'
d_casti32='undef'
d_castneg='define'
d_memmem='define'
d_memmove='define'
d_memrchr='define'
-d_memset='define'
d_mkdir='define'
d_mkdtemp='define'
d_mkfifo='define'
*/
#define HAS_BCOPY /**/
-/* HAS_BZERO:
- * This symbol is defined if the bzero() routine is available to
- * set a memory block to 0.
- */
-#define HAS_BZERO /**/
-
/* HAS_CHOWN:
* This symbol, if defined, indicates that the chown routine is
* available.
*/
#define HAS_MEMRCHR /**/
-/* HAS_MEMSET:
- * This symbol, if defined, indicates that the memset routine is available
- * to set blocks of memory.
- */
-#define HAS_MEMSET /**/
-
/* HAS_MKDIR:
* This symbol, if defined, indicates that the mkdir routine is available
* to create directories. Otherwise you should fork off a new process to
*/
#$d_bcopy HAS_BCOPY /**/
-/* HAS_BZERO:
- * This symbol is defined if the bzero() routine is available to
- * set a memory block to 0.
- */
-#$d_bzero HAS_BZERO /**/
-
/* HAS_CBRT:
* This symbol, if defined, indicates that the cbrt() (cube root)
* function is available.
*/
#$d_memmove HAS_MEMMOVE /**/
-/* HAS_MEMSET:
- * This symbol, if defined, indicates that the memset routine is available
- * to set blocks of memory.
- */
-#$d_memset HAS_MEMSET /**/
-
/* HAS_MKDIR:
* This symbol, if defined, indicates that the mkdir routine is available
* to create directories. Otherwise you should fork off a new process to
$ CS
$ tmp = "bzero"
$ GOSUB inlibc
-$ d_bzero = tmp
$!
$! Check for bcopy
$!
$ WC "d_builtin_add_overflow='undef'" ! GCC only
$ WC "d_builtin_mul_overflow='undef'" ! GCC only
$ WC "d_builtin_sub_overflow='undef'" ! GCC only
-$ WC "d_bzero='" + d_bzero + "'"
$ WC "d_casti32='define'"
$ WC "d_castneg='define'"
$ WC "d_cbrt='" + d_cbrt + "'"
$ WC "d_memmem='undef'"
$ WC "d_memmove='define'"
$ WC "d_memrchr='" + d_memrchr + "'"
-$ WC "d_memset='define'"
$ WC "d_mkdir='define'"
$ WC "d_mkdtemp='" + d_mkdtemp + "'"
$ WC "d_mkfifo='undef'"
#if !defined(HAS_MEMCPY) || (!defined(HAS_MEMMOVE) && !defined(HAS_SAFE_MEMCPY))
Anp |void* |my_bcopy |NN const void* vfrom|NN void* vto|size_t len
#endif
-#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
-Anp |void* |my_bzero |NN void* vloc|size_t len
-#endif
Apr |void |my_exit |U32 status
Apr |void |my_failure_exit
Ap |I32 |my_fflush_all
#if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
AnpP |int |my_memcmp |NN const void* vs1|NN const void* vs2|size_t len
#endif
-#if !defined(HAS_MEMSET)
-Anp |void* |my_memset |NN void* vloc|int ch|size_t len
-#endif
#if !defined(PERL_IMPLICIT_SYS)
Ap |I32 |my_pclose |NULLOK PerlIO* ptr
Ap |PerlIO*|my_popen |NN const char* cmd|NN const char* mode
#if !(defined(HAS_SIGACTION) && defined(SA_SIGINFO))
#define csighandler Perl_csighandler
#endif
-#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
-#define my_bzero Perl_my_bzero
-#endif
#if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
#define my_memcmp Perl_my_memcmp
#endif
#if !defined(HAS_MEMCPY) || (!defined(HAS_MEMMOVE) && !defined(HAS_SAFE_MEMCPY))
#define my_bcopy Perl_my_bcopy
#endif
-#if !defined(HAS_MEMSET)
-#define my_memset Perl_my_memset
-#endif
#if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP)
#define my_chsize(a,b) Perl_my_chsize(aTHX_ a,b)
#endif
# endif
#endif /* HAS_MEMCPY */
-#ifdef HAS_MEMSET
-# if !defined(STANDARD_C) && !defined(I_STRING) && !defined(I_MEMORY)
-# ifndef memset
- extern char *memset proto((char*, int, int));
-# endif
-# endif
-# define memzero(d,l) memset(d,0,l)
-#else
-# ifndef memzero
-# ifdef HAS_BZERO
-# define memzero(d,l) bzero(d,l)
-# else
-# define memzero(d,l) my_bzero(d,l)
-# endif
-# endif
-#endif /* HAS_MEMSET */
+#define memzero(d,l) memset(d,0,l)
#if defined(mips) && defined(ultrix) && !defined(__STDC__)
# undef HAS_MEMCMP
#define MoveD(s,d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), perl_assert_ptr(s), memmove((char*)(d),(const char*)(s), (n) * sizeof(t)))
#define CopyD(s,d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), perl_assert_ptr(s), memcpy((char*)(d),(const char*)(s), (n) * sizeof(t)))
-#ifdef HAS_MEMSET
#define ZeroD(d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), memzero((char*)(d), (n) * sizeof(t)))
-#else
-/* Using bzero(), which returns void. */
-#define ZeroD(d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), memzero((char*)(d), (n) * sizeof(t)),d)
-#endif
#define PoisonWith(d,n,t,b) (MEM_WRAP_CHECK_(n,t) (void)memset((char*)(d), (U8)(b), (n) * sizeof(t)))
#define PoisonNew(d,n,t) PoisonWith(d,n,t,0xAB)
# it is needed for ODBM_File and NDBM_File extensions.
if [ -r /usr/ucblib/libucb.a ]; then # If using BSD-compat. library:
# Use the "native" counterparts, not the BSD emulation stuff:
- d_bcmp='undef'; d_bcopy='undef'; d_bzero='undef'; d_safebcpy='undef'
+ d_bcmp='undef'; d_bcopy='undef'; d_safebcpy='undef'
d_index='undef'; d_killpg='undef'; d_getprior='undef'; d_setprior='undef'
d_setlinebuf='undef'; d_setregid='undef'; d_setreuid='undef'
fi
if [ -r /usr/ucblib/libucb.a ]; then # If using BSD-compat. library:
gconvert_preference='gcvt sprintf' # Try gcvt() before gconvert().
# Use the "native" counterparts, not the BSD emulation stuff:
- d_bcmp='undef' d_bcopy='undef' d_bzero='undef' d_safebcpy='undef'
+ d_bcmp='undef' d_bcopy='undef' d_safebcpy='undef'
d_index='undef' d_killpg='undef' d_getprior='undef' d_setprior='undef'
d_setlinebuf='undef'
# d_setregid='undef' d_setreuid='undef' # ???
2.1)
d_csh='undef'
d_memcpy='define'
- d_memset='define'
;;
2.1.*)
d_csh='undef'
d_memcpy='define'
- d_memset='define'
stdio_cnt='((fp)->__cnt)'
d_stdio_cnt_lval='define'
stdio_ptr='((fp)->__ptr)'
7)
d_csh='undef'
d_memcpy='define'
- d_memset='define'
stdio_cnt='((fp)->__cnt)'
d_stdio_cnt_lval='define'
stdio_ptr='((fp)->__ptr)'
# Don't use BSD emulation pieces (/usr/ucblib) regardless
# these would probably be autonondetected anyway but ...
gconvert_preference='gcvt sprintf' # Try gcvt() before gconvert().
-d_bcopy='undef' d_bcmp='undef' d_bzero='undef' d_safebcpy='undef'
+d_bcopy='undef' d_bcmp='undef' d_safebcpy='undef'
d_index='undef' d_killpg='undef' d_getprior='undef' d_setprior='undef'
d_setlinebuf='undef'
d_setregid='undef' d_setreuid='undef' # -- in /usr/lib/libc.so.1
8.*|7.1*)
d_csh='undef'
d_memcpy='define'
- d_memset='define'
stdio_cnt='((fp)->__cnt)'
d_stdio_cnt_lval='define'
stdio_ptr='((fp)->__ptr)'
7*)
d_csh='undef'
d_memcpy='define'
- d_memset='define'
stdio_cnt='((fp)->__cnt)'
d_stdio_cnt_lval='define'
stdio_ptr='((fp)->__ptr)'
# endif
#endif /* HAS_MEMCPY */
-#ifdef HAS_MEMSET
-# if !defined(STANDARD_C) && !defined(I_STRING) && !defined(I_MEMORY)
-# ifndef memset
- extern char *memset (char*, int, int);
-# endif
-# endif
-#else
-# undef memset
-# define memset(d,c,l) my_memset(d,c,l)
-#endif /* HAS_MEMSET */
-
#if !defined(HAS_MEMMOVE) && !defined(memmove)
# if defined(HAS_MEMCPY) && defined(HAS_SAFE_MEMCPY)
# define memmove(d,s,l) memcpy(d,s,l)
#endif /* HAS_MEMCMP && HAS_SANE_MEMCMP */
#ifndef memzero
-# ifdef HAS_MEMSET
-# define memzero(d,l) memset(d,0,l)
-# else
-# ifdef HAS_BZERO
-# define memzero(d,l) bzero(d,l)
-# else
-# define memzero(d,l) my_bzero(d,l)
-# endif
-# endif
+# define memzero(d,l) memset(d,0,l)
#endif
#ifndef PERL_MICRO
*/
#define HAS_BCOPY /**/
-/* HAS_BZERO:
- * This symbol is defined if the bzero() routine is available to
- * set a memory block to 0.
- */
-#define HAS_BZERO /**/
-
/* HAS_CHOWN:
* This symbol, if defined, indicates that the chown routine is
* available.
*/
#define HAS_MEMMOVE /**/
-/* HAS_MEMSET:
- * This symbol, if defined, indicates that the memset routine is available
- * to set blocks of memory.
- */
-#define HAS_MEMSET /**/
-
/* HAS_MKDIR:
* This symbol, if defined, indicates that the mkdir routine is available
* to create directories. Otherwise you should fork off a new process to
*/
#define HAS_BCOPY /**/
-/* HAS_BZERO:
- * This symbol is defined if the bzero() routine is available to
- * set a memory block to 0.
- */
-#define HAS_BZERO /**/
-
/* HAS_CHOWN:
* This symbol, if defined, indicates that the chown routine is
* available.
*/
#define HAS_MEMMOVE /**/
-/* HAS_MEMSET:
- * This symbol, if defined, indicates that the memset routine is available
- * to set blocks of memory.
- */
-#define HAS_MEMSET /**/
-
/* HAS_MKDIR:
* This symbol, if defined, indicates that the mkdir routine is available
* to create directories. Otherwise you should fork off a new process to
d_builtin_expect='undef'
d_builtin_mul_overflow='undef'
d_builtin_sub_overflow='undef'
-d_bzero='define'
d_c99_variadic_macros='undef'
d_casti32='undef'
d_castneg='undef'
d_memmem='undef'
d_memmove='define'
d_memrchr='undef'
-d_memset='define'
d_mkdir='define'
d_mkdtemp='undef'
d_mkfifo='define'
assert(sv); assert(mg)
#endif
-#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
-PERL_CALLCONV void* Perl_my_bzero(void* vloc, size_t len);
-#define PERL_ARGS_ASSERT_MY_BZERO \
- assert(vloc)
-#endif
#if !defined(HAS_GETENV_LEN)
PERL_CALLCONV char* Perl_getenv_len(pTHX_ const char *env_elem, unsigned long *len);
#define PERL_ARGS_ASSERT_GETENV_LEN \
#define PERL_ARGS_ASSERT_MY_BCOPY \
assert(vfrom); assert(vto)
#endif
-#if !defined(HAS_MEMSET)
-PERL_CALLCONV void* Perl_my_memset(void* vloc, int ch, size_t len);
-#define PERL_ARGS_ASSERT_MY_MEMSET \
- assert(vloc)
-#endif
#if !defined(HAS_MKDIR) || !defined(HAS_RMDIR)
# if defined(PERL_IN_PP_SYS_C)
STATIC int S_dooneliner(pTHX_ const char *cmd, const char *filename)
d_builtin_expect='undef'
d_builtin_mul_overflow='undef'
d_builtin_sub_overflow='undef'
-d_bzero='undef'
d_c99_variadic_macros='undef'
d_casti32='undef'
d_castneg='undef'
d_memmem='undef'
d_memmove='define'
d_memrchr='undef'
-d_memset='define'
d_mkdir='define'
d_mkdtemp='undef'
d_mkfifo='undef'
*/
/*#define HAS_BCOPY / **/
-/* HAS_BZERO:
- * This symbol is defined if the bzero() routine is available to
- * set a memory block to 0.
- */
-/*#define HAS_BZERO / **/
-
/* HAS_CBRT:
* This symbol, if defined, indicates that the cbrt() (cube root)
* function is available.
*/
/*#define HAS_MEMMOVE / **/
-/* HAS_MEMSET:
- * This symbol, if defined, indicates that the memset routine is available
- * to set blocks of memory.
- */
-#define HAS_MEMSET /**/
-
/* HAS_MKDIR:
* This symbol, if defined, indicates that the mkdir routine is available
* to create directories. Otherwise you should fork off a new process to
#endif
/* Generated from:
- * 292f88691798392c51314921d1a53aca1044ccfd5410c0338c659f8ec2a6eab5 config_h.SH
- * 2cd0f319cf0414d19be815afda24bae1eb0bde6e3d6f3bb2ca79bc4775549ac2 uconfig.sh
+ * 7ff89cdb1fe8ce0204ce7e895ef3799d115d4e499f4b93f639ab96b64a63d57e config_h.SH
+ * bd4d12ab7495a044625abc3e1128f6939bdb50a02a59ae3a1b8bf64433002191 uconfig.sh
* ex: set ro: */
d_builtin_expect='undef'
d_builtin_mul_overflow='undef'
d_builtin_sub_overflow='undef'
-d_bzero='undef'
d_c99_variadic_macros='undef'
d_casti32='undef'
d_castneg='undef'
d_memmem='undef'
d_memmove='undef'
d_memrchr='undef'
-d_memset='define'
d_mkdir='undef'
d_mkdtemp='undef'
d_mkfifo='undef'
d_builtin_expect='undef'
d_builtin_mul_overflow='undef'
d_builtin_sub_overflow='undef'
-d_bzero='undef'
d_c99_variadic_macros='undef'
d_casti32='undef'
d_castneg='undef'
d_memmem='undef'
d_memmove='undef'
d_memrchr='undef'
-d_memset='define'
d_mkdir='undef'
d_mkdtemp='undef'
d_mkfifo='undef'
}
#endif
-/* this is a drop-in replacement for memset() */
-#ifndef HAS_MEMSET
-void *
-Perl_my_memset(void *vloc, int ch, size_t len)
-{
- unsigned char *loc = (unsigned char *)vloc;
-
- PERL_ARGS_ASSERT_MY_MEMSET;
-
- while (len--)
- *loc++ = ch;
- return vloc;
-}
-#endif
-
-/* this is a drop-in replacement for bzero() */
-#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
-void *
-Perl_my_bzero(void *vloc, size_t len)
-{
- unsigned char *loc = (unsigned char *)vloc;
-
- PERL_ARGS_ASSERT_MY_BZERO;
-
- while (len--)
- *loc++ = 0;
- return vloc;
-}
-#endif
-
/* this is a drop-in replacement for memcmp() */
#if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
int
d_builtin_expect='undef'
d_builtin_mul_overflow='undef'
d_builtin_sub_overflow='undef'
-d_bzero='undef'
d_c99_variadic_macros='undef'
d_casti32='undef'
d_castneg='define'
d_memmem='undef'
d_memmove='define'
d_memrchr='undef'
-d_memset='define'
d_mkdir='define'
d_mkdtemp='undef'
d_mkfifo='undef'
d_builtin_expect='undef'
d_builtin_mul_overflow='undef'
d_builtin_sub_overflow='undef'
-d_bzero='undef'
d_c99_variadic_macros='undef'
d_casti32='define'
d_castneg='define'
d_memmem='undef'
d_memmove='define'
d_memrchr='undef'
-d_memset='define'
d_mkdir='define'
d_mkdtemp='undef'
d_mkfifo='undef'
d_builtin_expect='undef'
d_builtin_mul_overflow='undef'
d_builtin_sub_overflow='undef'
-d_bzero='undef'
d_c99_variadic_macros='undef'
d_casti32='undef'
d_castneg='define'
d_memmem='undef'
d_memmove='define'
d_memrchr='undef'
-d_memset='define'
d_mkdir='define'
d_mkdtemp='undef'
d_mkfifo='undef'
*/
/*#define HAS_BCOPY /**/
-/* HAS_BZERO:
- * This symbol is defined if the bzero() routine is available to
- * set a memory block to 0.
- */
-/*#define HAS_BZERO /**/
-
/* HAS_CHOWN:
* This symbol, if defined, indicates that the chown routine is
* available.
*/
#define HAS_MEMMOVE /**/
-/* HAS_MEMSET:
- * This symbol, if defined, indicates that the memset routine is available
- * to set blocks of memory.
- */
-#define HAS_MEMSET /**/
-
/* HAS_MKDIR:
* This symbol, if defined, indicates that the mkdir routine is available
* to create directories. Otherwise you should fork off a new process to
*/
/*#define HAS_BCOPY / **/
-/* HAS_BZERO:
- * This symbol is defined if the bzero() routine is available to
- * set a memory block to 0.
- */
-/*#define HAS_BZERO / **/
-
/* HAS_CBRT:
* This symbol, if defined, indicates that the cbrt() (cube root)
* function is available.
*/
#define HAS_MEMMOVE /**/
-/* HAS_MEMSET:
- * This symbol, if defined, indicates that the memset routine is available
- * to set blocks of memory.
- */
-#define HAS_MEMSET /**/
-
/* HAS_MKDIR:
* This symbol, if defined, indicates that the mkdir routine is available
* to create directories. Otherwise you should fork off a new process to
*/
/*#define HAS_BCOPY / **/
-/* HAS_BZERO:
- * This symbol is defined if the bzero() routine is available to
- * set a memory block to 0.
- */
-/*#define HAS_BZERO / **/
-
/* HAS_CBRT:
* This symbol, if defined, indicates that the cbrt() (cube root)
* function is available.
*/
#define HAS_MEMMOVE /**/
-/* HAS_MEMSET:
- * This symbol, if defined, indicates that the memset routine is available
- * to set blocks of memory.
- */
-#define HAS_MEMSET /**/
-
/* HAS_MKDIR:
* This symbol, if defined, indicates that the mkdir routine is available
* to create directories. Otherwise you should fork off a new process to