diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-24 19:10:33 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-24 19:10:33 +0000 |
commit | 5b8c1387d8b2fe34154451bb2cea5895305c0541 (patch) | |
tree | 680d845faf19276a6a289bdc66c419ef12e0f60d /vos | |
parent | a7ffa9b9a1a8caeff31a83d25b70b5aca6ba0d12 (diff) | |
download | perl-5b8c1387d8b2fe34154451bb2cea5895305c0541.tar.gz |
Stratus VOS updates from Paul Green.
p4raw-id: //depot/perl@7428
Diffstat (limited to 'vos')
-rw-r--r-- | vos/Changes | 26 | ||||
-rw-r--r-- | vos/build.cm | 80 | ||||
-rw-r--r-- | vos/compile_perl.cm | 10 | ||||
-rw-r--r-- | vos/config.alpha.def (renamed from vos/config.def) | 27 | ||||
-rw-r--r-- | vos/config.alpha.h (renamed from vos/config.h) | 41 | ||||
-rw-r--r-- | vos/config.ga.def | 487 | ||||
-rw-r--r--[-rwxr-xr-x] | vos/config.ga.h (renamed from vos/config_h.SH_orig) | 1006 | ||||
-rw-r--r-- | vos/config.pl | 35 | ||||
-rw-r--r-- | vos/configure_perl.cm | 24 | ||||
-rw-r--r-- | vos/install_perl.cm | 69 | ||||
-rw-r--r-- | vos/perl.bind | 5 | ||||
-rw-r--r-- | vos/vosish.h | 141 |
12 files changed, 1226 insertions, 725 deletions
diff --git a/vos/Changes b/vos/Changes index 9af03d1c5f..ba0856ac94 100644 --- a/vos/Changes +++ b/vos/Changes @@ -1,6 +1,32 @@ This file documents the changes made to port Perl to the Stratus VOS operating system. +For 5.7: + Updated "build.cm" to build perl using either the alpha or GA + version of POSIX. + Updated "Changes". + Updated "compile_perl.cm" to use either the alpha or GA + version of POSIX. + Split "config.def" into config.alpha.def and config.ga.def; + one for each version. Use the configure_perl.cm macro + to select the appropriate version. + Split "config.h" into config.alpha.h and config.ga.h. Use the + configure_perl.cm macro to select the appropriate version. + Updated "config.pl". It now diagnoses undefined (missing) and + unused substitution variables. When a new version of + Perl comes out, run "configure_perl.cm", add any missing + definitions to config.*.def, and remove any unused + definitions. + Removed "config_h.SH_orig". It is no longer needed. + Added "configure_perl.cm". It is used to configure perl so that + it can be built with either version of VOS POSIX.1 support. + Added "install_perl.cm" to install Perl into the appropriate + system directories. + Updated "perl.bind" to work with either the alpha or GA + version of POSIX. + Updated "vosish.h" to just use the standard "unixish.h" since + there are no changes needed at this time. + After 5.005_63: Supplied "config.pl" perl script that takes "config_h.SH_orig" and "config.def" as input and produces "config.h.new". diff --git a/vos/build.cm b/vos/build.cm index 8719d050c4..f749538231 100644 --- a/vos/build.cm +++ b/vos/build.cm @@ -2,6 +2,8 @@ cpu option(-processor)name,allow(mc68020,i80860,pa7100,pa8000),=mc68020 recompile switch(-recompile),=1 rebind switch(-rebind),=1 + tgt_mod option(-target_module)module_name,='(current_module)' + version option(-version)name,allow(alpha,ga),=ga &end_parameters &echo command_lines & @@ -11,14 +13,22 @@ & necessary, to assign the correct pathname of the directory that & contains VOS POSIX.1 support. & -&set_string POSIX >vos_ftp_site>pub>vos>alpha>posix +&if &version& = alpha +&then &set_string POSIX >vos_ftp_site>pub>vos>alpha>posix +&else &set_string POSIX >system>posix_object_library & & See if the site has VOS POSIX.1 support loaded. If not, quit now. & &if ^ (exists &POSIX& -directory) &then &do &display_line build: VOS POSIX.1 support not found. &POSIX& - &return + &return 1 + &end +& +&if &cpu& = mc68020 & &version& = ga | &cpu& = i80860 & &version& = ga +&then &do + &display_line build: "-version ga" is incompatible with "-processor mc68020 or i80860" + &return 1 &end & & Set up the appropriate directory suffix for each architecture. @@ -43,7 +53,11 @@ &if &recompile& = 0 &then &goto CHECK_REBIND & -!set_library_paths include << < &POSIX&>incl &+ +&if &version& = alpha +&then !set_library_paths include << < &POSIX&>incl &+ + (master_disk)>system>include_library +&else !set_library_paths include << < &+ + (master_disk)>system>stcp>include_library &+ (master_disk)>system>include_library & &if (exists *.obj -link) @@ -52,7 +66,12 @@ & Suppress several harmless compiler warning and advice messages. & Use -list -show_include all -show_macros both_ways when debugging. & -&set_string cflags '-u -O4 -D_POSIX_C_SOURCE=199309L -DPERL_CORE' +&set_string cflags '-u -O4 -D_POSIX_C_SOURCE=199506L -DPERL_CORE' +& +& The following is a work-around for stcp-1437,8,9 +& +&if &version& = ga +&then &set_string cflags &cflags& -D_BSD_SOURCE & !cc <<av.c -suppress_diag 2006 2064 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return @@ -76,15 +95,26 @@ & &if (command_status) ^= 0 &then &return !cc <<mg.c -suppress_diag 2006 2064 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<miniperlmain.c -suppress_diag 2006 &cpu& &cflags& +!cc <<miniperlmain.c -suppress_diag 2006 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return !cc <<op.c -suppress_diag 2006 2064 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return +& +& We are essentially building miniperl for now. Until we +& get a POSIX shell on VOS we won't add any of the extensions. +& +& !link <<op.c opmini.c -delete +& &if (command_status) ^= 0 &then &return +& !cc opmini.c -suppress_diag 2006 2064 2065 &cpu& &cflags& -DPERL_EXTERNAL_GLOB +& &if (command_status) ^= 0 &then &return +& !unlink opmini.c +& &if (command_status) ^= 0 &then &return +& !cc <<perl.c -suppress_diag 2006 2053 2065 &cpu& &cflags& &+ - -DARCHLIB="/system/ported/perl/lib/5.005&obj2&" &+ - -DARCHLIB_EXP="/system/ported/perl/lib/5.005&obj2&" &+ - -DSITEARCH="/system/ported/perl/lib/site/5.005&obj2&" &+ - -DSITEARCH_EXP="/system/ported/perl/lib/site/5.005&obj2&" + -DARCHLIB="/system/ported/perl/lib/5.7&obj2&" &+ + -DARCHLIB_EXP="/system/ported/perl/lib/5.7&obj2&" &+ + -DSITEARCH="/system/ported/perl/lib/site/5.7&obj2&" &+ + -DSITEARCH_EXP="/system/ported/perl/lib/site/5.7&obj2&" &if (command_status) ^= 0 &then &return !cc <<perlapi.c &cpu& &cflags& &if (command_status) ^= 0 &then &return @@ -126,8 +156,11 @@ &if (command_status) ^= 0 &then &return !cc <<xsutils.c &cpu& &cflags& &if (command_status) ^= 0 &then &return +&if &version& = alpha +&then &do !cc <vos_dummies.c &cpu& -O4 &if (command_status) ^= 0 &then &return +&end & & If requested, bind the executable program module. & @@ -139,6 +172,10 @@ &then &set_string tcp_objlib (master_disk)>system>tcp_os>object_library&obj2& &else &set_string tcp_objlib (master_disk)>system>tcp_os>object_library & +&if (exists -directory (master_disk)>system>stcp>object_library&obj2&) +&then &set_string stcp_objlib (master_disk)>system>stcp>object_library&obj2& +&else &set_string stcp_objlib (master_disk)>system>stcp>object_library +& &if (exists -directory (master_disk)>system>object_library&obj2&) &then &set_string objlib (master_disk)>system>object_library&obj2& &else &set_string objlib (master_disk)>system>object_library @@ -147,11 +184,28 @@ &then &set_string c_objlib (master_disk)>system>c_object_library&obj2& &else &set_string c_objlib (master_disk)>system>c_object_library & -!set_library_paths object . &+ - &POSIX&>c>runtime>obj&obj& &+ +&if (exists -directory (master_disk)>system>posix_object_library&obj2&) +&then &set_string posix_objlib (master_disk)>system>posix_object_library&obj2& +&else &set_string posix_objlib (master_disk)>system>posix_object_library +& +&if &version& = alpha +&then !set_library_paths object . &tcp_objlib& &+ &POSIX&>c>sysv_runtime>obj&obj& &+ - &tcp_objlib& &objlib& &c_objlib& -!bind -control <perl.bind &cpu& -map + &POSIX&>c>runtime>obj&obj& &+ + &c_objlib& &objlib& +&else !set_library_paths object . &stcp_objlib& &+ + &stcp_objlib&>common &+ + &stcp_objlib&>net &+ + &stcp_objlib&>sbsd &+ + &stcp_objlib&>socket &+ + &posix_objlib&>bsd &+ + &posix_objlib& &+ + &c_objlib& &objlib& +&if &version& = alpha +&then !bind -control <perl.bind vos_dummies &+ + &tcp_objlib&>tcp_runtime &tcp_objlib&>tcp_gethost &+ + &cpu& -target_module &tgt_mod& -map +&else !bind -control <perl.bind &cpu& -target_module &tgt_mod& -map &if (command_status) ^= 0 &then &return !delete_file *.obj -no_ask -brief !unlink *.obj -no_ask -brief diff --git a/vos/compile_perl.cm b/vos/compile_perl.cm index 86a8d6a182..f8ecf3ba22 100644 --- a/vos/compile_perl.cm +++ b/vos/compile_perl.cm @@ -3,12 +3,15 @@ & build macro in that subdirectory to create the perl & executable program module file. & Written 99-02-03 by Paul Green (Paul_Green@stratus.com) +& Modified 00-10-24 by Paul Green & &begin_parameters - cpu option(-processor)name,allow(mc68020,i80860,pa7100,pa8000),=mc68020 + cpu option(-processor)name,allow(mc68020,i80860,pa7100,pa8000),=pa7100 recompile switch(-recompile),=1 rebind switch(-rebind),=1 module option(-module)module_name,='(current_module)' + tgt_mod option(-target_module)module_name,='(current_module)' + version option(-version)name,allow(alpha,ga),=ga &end_parameters &echo command_lines & @@ -35,6 +38,9 @@ &if ^ (exists obj&obj&>build.out) &then !create_file obj&obj&>build.out ; set_implicit_locking obj&obj&>build.out & +!configure_perl -version &version& +& !change_current_dir obj&obj& -!start_process (string <build -processor &cpu& &recompile& &rebind&) -module &module& +!start_process (string <build -processor &cpu& &recompile& &rebind& &+ + -target_module &tgt_mod& -version &version&) -module &module& !change_current_dir < diff --git a/vos/config.def b/vos/config.alpha.def index 0f67dee19a..84e1e0e108 100644 --- a/vos/config.def +++ b/vos/config.alpha.def @@ -8,7 +8,8 @@ $binexp='/system/ported/command_library' $byteorder='4321' $castflags='0' $cf_by='Paul_Green@stratus.com' -$cf_time='2000-02-03 19:13 UCT' +$cf_time='2000-10-23 18:48 UCT' +$CONFIG_SH='config.sh' $cpp_stuff='42' $cpplast='-' $cppminus='-' @@ -115,7 +116,7 @@ $d_index='undef' $d_inetaton='undef' $d_int64_t='undef' $d_isascii='define' -$d_isnan='define' +$d_isnan='undef' $d_isnanl='undef' $d_killpg='undef' $d_lchown='undef' @@ -170,9 +171,6 @@ $d_poll='define' $d_PRIeldbl='define' $d_PRIfldbl='define' $d_PRIgldbl='define' -$d_PRIEUldbl='define' -$d_PRIFUldbl='define' -$d_PRIGUldbl='define' $d_pthread_yield='undef' $d_pwage='undef' $d_pwchange='undef' @@ -182,7 +180,6 @@ $d_pwexpire='undef' $d_pwgecos='undef' $d_pwpasswd='undef' $d_pwquota='undef' -$d_qgcvt='undef' $d_quad='undef' $d_readdir='define' $d_readlink='define' @@ -194,6 +191,7 @@ $d_safemcpy='undef' $d_sanemcmp='define' $d_sched_yield='undef' $d_scm_rights='undef' +$d_SCNfldbl='define' $d_seekdir='undef' $d_select='define' $d_sem='undef' @@ -228,7 +226,6 @@ $d_shm='undef' $d_shmatprototype='define' $d_sigaction='undef' $d_sigsetjmp='undef' -$d_sitearch='undef' $d_socket='define' $d_sockpair='undef' $d_socks5_init='undef' @@ -316,7 +313,7 @@ $i_dirent='define' $i_dlfcn='undef' $i_fcntl='define' $i_float='define' -$i_grp='undef' +$i_grp='define' $i_iconv='undef' $i_ieeefp='undef' $i_inttypes='undef' @@ -335,7 +332,7 @@ $i_niin='define' $i_poll='undef' $i_prot='undef' $i_pthread='undef' -$i_pwd='undef' +$i_pwd='define' $i_rpcsvcdbm='undef' $i_sfio='undef' $i_sgtty='undef' @@ -392,6 +389,7 @@ $longsize='4' $lseeksize='4' $lseektype='off_t' $malloctype='void *' +$mmaptype='void *' $modetype='mode_t' $multiarch='undef' $myuname='VOS' @@ -432,15 +430,17 @@ $sig_num_init='0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24, $signal_t='void' $sitearch='' $sitearchexp='' -$sitelib='/system/ported/perl/lib/site/5.005' -$sitelibexp='/system/ported/perl/lib/site/5.005' +$sitelib='/system/ported/perl/lib/site/5.7' +$sitelibexp='/system/ported/perl/lib/site/5.7' $sitelib_stem='/system/ported/perl/lib/site' $sizesize='4' $sizetype='size_t' $socksizetype='int' +$sPRIeldbl='"Le"' $sPRIfldbl='"Lf"' $sPRIgldbl='"Lg"' -$src='%es#lang/vos_ftp_site/pub/vos/alpha/perl' +$src='/vos_ftp_site/pub/vos/posix/(alpha|ga)/perl' +$sSCNfldbl='"Lf"' $ssizetype='ssize_t' $startperl='!perl.pm' $stdchar='unsigned char' @@ -462,6 +462,7 @@ $uidformat='"d"' $uidsize='4' $uidsign='-1' $uidtype='uid_t' +$undef='$undef' $uquadtype='_error_' $use5005threads='undef' $use64bitall='undef' @@ -474,7 +475,6 @@ $usemorebits='undef' $usemultiplicity='undef' $useperlio='undef' $usesocks='undef' -$usethreads='undef' $uvoformat='"o"' $uvsize='4' $uvtype='unsigned int' @@ -484,6 +484,5 @@ $vendorarch='' $vendorarchexp='' $vendorlib_stem='' $vendorlibexp='' -$versiononly='undef' $voidflags='15' $xs_apiversion='5.00563' diff --git a/vos/config.h b/vos/config.alpha.h index 5c1e020e45..30463bef9e 100644 --- a/vos/config.h +++ b/vos/config.alpha.h @@ -1,19 +1,19 @@ /* * This file was produced by running the config_h.SH script, which - * gets its values from $CONFIG_SH, which is generally produced by + * gets its values from config.sh, which is generally produced by * running Configure. * * Feel free to modify any of this as the need arises. Note, however, * that running config_h.SH again will wipe out any changes you've made. - * For a more permanent change edit $CONFIG_SH and rerun config_h.SH. + * For a more permanent change edit config.sh and rerun config_h.SH. * * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $ */ /* * Package name : perl5 - * Source directory : %es#lang/vos_ftp_site/pub/vos/alpha/perl - * Configuration time: 2000-02-03 19:13 UCT + * Source directory : /vos_ftp_site/pub/vos/posix/(alpha|ga)/perl + * Configuration time: 2000-10-23 18:48 UCT * Configured by : Paul_Green@stratus.com * Target system : VOS */ @@ -1614,7 +1614,7 @@ * This symbol, if defined, indicates that the isnan routine is * available to check whether a double is a NaN. */ -#define HAS_ISNAN /**/ +/*#define HAS_ISNAN /**/ /* HAS_ISNANL: * This symbol, if defined, indicates that the isnanl routine is @@ -1714,7 +1714,7 @@ * Usually set to 'void *' or 'cadd_t'. */ /*#define HAS_MMAP /**/ -#define Mmap_t $mmaptype /**/ +#define Mmap_t void * /**/ /* HAS_MODFL: * This symbol, if defined, indicates that the modfl routine is @@ -2024,23 +2024,12 @@ * This symbol is defined if the FILE_cnt macro can be used as an * lvalue. */ -/* STDIO_PTR_LVAL_SETS_CNT: - * This symbol is defined if using the FILE_ptr macro as an lvalue - * to increase the pointer by n has the side effect of decreasing the - * value of File_cnt(fp) by n. - */ -/* STDIO_PTR_LVAL_NOCHANGE_CNT: - * This symbol is defined if using the FILE_ptr macro as an lvalue - * to increase the pointer by n leaves File_cnt(fp) unchanged. - */ #define USE_STDIO_PTR /**/ #ifdef USE_STDIO_PTR #define FILE_ptr(fp) ((fp)->_ptr) #define STDIO_PTR_LVALUE /**/ #define FILE_cnt(fp) ((fp)->_cnt) #define STDIO_CNT_LVALUE /**/ -/*#define STDIO_PTR_LVAL_SETS_CNT /**/ -/*#define STDIO_PTR_LVAL_NOCHANGE_CNT /**/ #endif /* USE_STDIO_BASE: @@ -2287,7 +2276,7 @@ * This symbol, if defined, indicates to the C program that struct group * in <grp.h> contains gr_passwd. */ -/*#define I_GRP /**/ +#define I_GRP /**/ /*#define GRPASSWD /**/ /* I_ICONV: @@ -2392,7 +2381,7 @@ * This symbol, if defined, indicates to the C program that struct passwd * contains pw_passwd. */ -/*#define I_PWD /**/ +#define I_PWD /**/ /*#define PWQUOTA /**/ /*#define PWAGE /**/ /*#define PWCHANGE /**/ @@ -2522,8 +2511,8 @@ */ #define PERL_PRIfldbl "Lf" /**/ #define PERL_PRIgldbl "Lg" /**/ -#define PERL_PRIeldbl $sPRIeldbl /**/ -# PERL_SCNfldbl $sSCNfldbl /**/ +#define PERL_PRIeldbl "Le" /**/ +#define PERL_SCNfldbl "Lf" /**/ /* Off_t: * This symbol holds the type used to declare offsets in the kernel. @@ -2876,8 +2865,8 @@ * This symbol contains the ~name expanded version of SITEARCH, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define SITEARCH "" /**/ -#define SITEARCH_EXP "" /**/ +/*#define SITEARCH "" /**/ +/*#define SITEARCH_EXP "" /**/ /* SITELIB: * This symbol contains the name of the private library for this package. @@ -2899,8 +2888,8 @@ * removed. The elements in inc_version_list (inc_version_list.U) can * be tacked onto this variable to generate a list of directories to search. */ -#define SITELIB "/system/ported/perl/lib/site/5.005" /**/ -#define SITELIB_EXP "/system/ported/perl/lib/site/5.005" /**/ +#define SITELIB "/system/ported/perl/lib/site/5.7" /**/ +#define SITELIB_EXP "/system/ported/perl/lib/site/5.7" /**/ #define SITELIB_STEM "/system/ported/perl/lib/site" /**/ /* Size_t_size: @@ -3144,7 +3133,7 @@ * compatible with the present perl. (That is, pure perl modules * written for pm_apiversion will still work for the current * version). perl.c:incpush() and lib/lib.pm will automatically - * search in /system/ported/perl/lib/site/5.005 for older directories across major versions + * search in /system/ported/perl/lib/site/5.7 for older directories across major versions * back to pm_apiversion. This is only useful if you have a perl * library directory tree structured like the default one. The * versioned site_perl library was introduced in 5.005, so that's diff --git a/vos/config.ga.def b/vos/config.ga.def new file mode 100644 index 0000000000..c6ab96b1f6 --- /dev/null +++ b/vos/config.ga.def @@ -0,0 +1,487 @@ +$alignbytes='8' +$aphostname='' +$archlib='' +$archlibexp='' +$archname='vos' +$bin='/system/ported/command_library' +$binexp='/system/ported/command_library' +$byteorder='4321' +$castflags='0' +$cf_by='Paul_Green@stratus.com' +$cf_time='2000-10-24 15:35 UCT' +$CONFIG_SH='config.sh' +$cpp_stuff='42' +$cpplast='-' +$cppminus='-' +$cpprun='cc -E -' +$cppstdin='cc -E' +$crosscompile='undef' +$d_access='define' +$d_accessx='undef' +$d_alarm='define' +$d_archlib='undef' +$d_atolf='undef' +$d_atoll='undef' +$d_attribut='undef' +$d_bcmp='undef' +$d_bcopy='undef' +$d_bincompat5005='undef' +$d_bsdgetpgrp='undef' +$d_bsdsetpgrp='undef' +$d_bzero='undef' +$d_casti32='undef' +$d_castneg='define' +$d_charvspr='undef' +$d_chown='define' +$d_chroot='undef' +$d_chsize='undef' +$d_const='define' +$d_crypt='undef' +$d_csh='define' +$d_cuserid='undef' +$d_dbl_dig='define' +$d_difftime='define' +$d_dirnamlen='undef' +$d_dlerror='undef' +$d_dlsymun='undef' +$d_dosuid='undef' +$d_drand48proto='undef' +$d_dup2='define' +$d_eaccess='undef' +$d_endgrent='undef' +$d_endhent='define' +$d_endnent='define' +$d_endpent='define' +$d_endpwent='undef' +$d_endsent='define' +$d_eofnblk='define' +$d_fchmod='define' +$d_fchown='undef' +$d_fcntl='define' +$d_fd_set='undef' +$d_fgetpos='define' +$d_flexfnam='define' +$d_flock='undef' +$d_fork='define' +$d_fpathconf='define' +$d_fpos64_t='undef' +$d_frexpl='undef' +$d_fs_data_s='undef' +$d_fseeko='undef' +$d_fsetpos='define' +$d_fstatfs='undef' +$d_fstatvfs='undef' +$d_ftello='undef' +$d_Gconvert='sprintf((b),"%.*g",(n),(x))' +$d_getcwd='define' +$d_getespwnam='undef' +$d_getfsstat='undef' +$d_getgrent='undef' +$d_getgrps='undef' +$d_gethbyaddr='define' +$d_gethbyname='define' +$d_gethent='define' +$d_gethname='define' +$d_gethostprotos='define' +$d_getlogin='define' +$d_getmnt='undef' +$d_getmntent='undef' +$d_getnbyaddr='define' +$d_getnbyname='define' +$d_getnent='define' +$d_getnetprotos='define' +$d_getpbyname='define' +$d_getpbynumber='define' +$d_getpent='define' +$d_getpgid='undef' +$d_getpgrp2='undef' +$d_getpgrp='define' +$d_getppid='define' +$d_getprior='undef' +$d_getprotoprotos='define' +$d_getprpwnam='undef' +$d_getpwent='undef' +$d_getsbyname='define' +$d_getsbyport='define' +$d_getsent='define' +$d_getservprotos='define' +$d_getspnam='undef' +$d_gettimeod='undef' +$d_gnulibc='undef' +$d_grpasswd='undef' +$d_hasmntopt='undef' +$d_htonl='define' +$d_iconv='undef' +$d_index='undef' +$d_inetaton='undef' +$d_int64_t='undef' +$d_isascii='define' +$d_isnan='undef' +$d_isnanl='undef' +$d_killpg='undef' +$d_lchown='undef' +$d_ldbl_dig='define' +$d_link='undef' +$d_locconv='define' +$d_lockf='define' +$d_longdbl='define' +$d_longlong='undef' +$d_lseekproto='define' +$d_lstat='define' +$d_madvise='undef' +$d_mblen='define' +$d_mbstowcs='define' +$d_mbtowc='define' +$d_memchr='define' +$d_memcmp='define' +$d_memcpy='define' +$d_memmove='define' +$d_memset='define' +$d_mkdir='define' +$d_mkdtemp='undef' +$d_mkstemp='undef' +$d_mkstemps='undef' +$d_mkfifo='define' +$d_mktime='define' +$d_mmap='define' +$d_modfl='undef' +$d_mprotect='undef' +$d_msg='undef' +$d_msg_ctrunc='undef' +$d_msg_dontroute='undef' +$d_msg_oob='undef' +$d_msg_peek='undef' +$d_msg_proxy='undef' +$d_msync='undef' +$d_munmap='define' +$d_mymalloc='undef' +$d_nice='undef' +$d_nv_preserves_uv='define' +$d_nv_preserves_uv_bits='32' +$d_off64_t='undef' +$d_old_pthread_create_joinable='undef' +$d_oldpthreads='undef' +$d_open3='define' +$d_pathconf='define' +$d_perl_otherlibdirs='undef' +$d_pause='define' +$d_phostname='undef' +$d_pipe='define' +$d_poll='define' +$d_PRIeldbl='define' +$d_PRIfldbl='define' +$d_PRIgldbl='define' +$d_pthread_yield='undef' +$d_pwage='undef' +$d_pwchange='undef' +$d_pwclass='undef' +$d_pwcomment='undef' +$d_pwexpire='undef' +$d_pwgecos='undef' +$d_pwpasswd='undef' +$d_pwquota='undef' +$d_quad='undef' +$d_readdir='define' +$d_readlink='define' +$d_rename='define' +$d_rewinddir='define' +$d_rmdir='define' +$d_safebcpy='undef' +$d_safemcpy='undef' +$d_sanemcmp='define' +$d_sched_yield='undef' +$d_scm_rights='undef' +$d_SCNfldbl='define' +$d_seekdir='undef' +$d_select='define' +$d_sem='undef' +$d_semctl_semid_ds='undef' +$d_semctl_semun='undef' +$d_setegid='define' +$d_seteuid='define' +$d_setgrent='undef' +$d_setgrps='undef' +$d_sethent='define' +$d_setlinebuf='define' +$d_setlocale='define' +$d_setnent='define' +$d_setpent='define' +$d_setpgid='define' +$d_setpgrp2='undef' +$d_setpgrp='undef' +$d_setprior='undef' +$d_setproctitle='undef' +$d_setpwent='undef' +$d_setregid='undef' +$d_setresgid='undef' +$d_setresuid='undef' +$d_setreuid='undef' +$d_setrgid='undef' +$d_setruid='undef' +$d_setsent='define' +$d_setsid='define' +$d_setvbuf='define' +$d_sfio='undef' +$d_shm='undef' +$d_shmatprototype='define' +$d_sigaction='define' +$d_sigsetjmp='define' +$d_socket='define' +$d_sockpair='undef' +$d_socks5_init='undef' +$d_sqrtl='undef' +$d_statblks='undef' +$d_statfs_f_flags='undef' +$d_statfs_s='undef' +$d_stdio_cnt_lval='define' +$d_stdio_ptr_lval_sets_cnt='undef' +$d_stdio_ptr_lval_nochange_cnt='undef' +$d_stdio_stream_array='define' +$d_stdiobase='define' +$d_stdstdio='define' +$d_strchr='define' +$d_strcoll='define' +$d_strctcpy='define' +$d_strerrm='strerror(e)' +$d_strerror='define' +$d_strtod='define' +$d_strtol='define' +$d_strtold='undef' +$d_strtoll='undef' +$d_strtoul='define' +$d_strtoull='undef' +$d_strtouq='undef' +$d_strxfrm='define' +$d_suidsafe='define' +$d_symlink='define' +$d_syscall='undef' +$d_sysconf='define' +$d_syserrlst='define' +$d_system='define' +$d_tcgetpgrp='define' +$d_tcsetpgrp='define' +$d_telldir='undef' +$d_telldirproto='undef' +$d_times='define' +$d_truncate='undef' +$d_tzname='define' +$d_umask='define' +$d_uname='define' +$d_union_semun='undef' +$d_ustat='undef' +$d_vendorarch='define' +$d_vendorlib='define' +$d_vfork='undef' +$d_void_closedir='undef' +$d_volatile='define' +$d_vprintf='define' +$d_wait4='define' +$d_waitpid='define' +$d_wcstombs='define' +$d_wctomb='define' +$db_hashtype='int' +$db_prefixtype='int' +$defvoidused='15' +$direntrytype='struct dirent' +$doublesize='8' +$drand01='rand()/(RAND_MAX+1)' +$eagain='EAGAIN' +$ebcdic='undef' +$fflushall='undef' +$fflushNULL='define' +$fpostype='fpos_t' +$freetype='void' +$full_csh='/system/ported/command_library/bash.pm' +$full_sed='/system/ported/command_library/sed.pm' +$gidformat='"d"' +$gidsize='4' +$gidsign='-1' +$gidtype='gid_t' +$groupstype='gid_t' +$i16size='2' +$i16type='short' +$i32size='4' +$i32type='int' +$i64size='_error_' +$i64type='_error_' +$i8size='1' +$i8type='char' +$i_arpainet='define' +$i_dbm='undef' +$i_dirent='define' +$i_dlfcn='undef' +$i_fcntl='define' +$i_float='define' +$i_grp='define' +$i_iconv='undef' +$i_ieeefp='undef' +$i_inttypes='undef' +$i_libutil='undef' +$i_limits='define' +$i_locale='define' +$i_machcthr='undef' +$i_math='define' +$i_memory='undef' +$i_mntent='undef' +$i_ndbm='undef' +$i_netdb='define' +$i_neterrno='undef' +$i_netinettcp='define' +$i_niin='define' +$i_poll='undef' +$i_prot='undef' +$i_pthread='undef' +$i_pwd='define' +$i_rpcsvcdbm='undef' +$i_sfio='undef' +$i_sgtty='undef' +$i_shadow='undef' +$i_socks='undef' +$i_stdarg='define' +$i_stddef='define' +$i_stdlib='define' +$i_string='define' +$i_sunmath='undef' +$i_sysaccess='undef' +$i_sysdir='undef' +$i_sysfile='undef' +$i_sysioctl='define' +$i_syslog='undef' +$i_sysmode='undef' +$i_sysmount='undef' +$i_sysndir='undef' +$i_sysparam='undef' +$i_sysresrc='undef' +$i_syssecrt='undef' +$i_sysselct='define' +$i_sysstat='define' +$i_sysstatfs='undef' +$i_sysstatvfs='undef' +$i_systime='define' +$i_systimek='undef' +$i_systimes='define' +$i_systypes='define' +$i_sysuio='undef' +$i_sysun='undef' +$i_sysutsname='define' +$i_sysvfs='undef' +$i_syswait='define' +$i_termio='undef' +$i_termios='define' +$i_time='undef' +$i_unistd='define' +$i_ustat='undef' +$i_utime='define' +$i_values='define' +$i_varargs='undef' +$i_vfork='undef' +$Id='$Id' +$inc_version_list_init='0' +$installusrbinperl='undef' +$intsize='4' +$ivdformat='"d"' +$ivsize='4' +$ivtype='int' +$longdblsize='8' +$longlongsize='_error_' +$longsize='4' +$lseeksize='4' +$lseektype='off_t' +$malloctype='void *' +$mmaptype='void *' +$modetype='mode_t' +$multiarch='undef' +$myuname='VOS' +$netdb_hlen_type='int' +$netdb_host_type='char *' +$netdb_name_type='char *' +$netdb_net_type='long' +$nveformat='"e"' +$nvfformat='"f"' +$nvgformat='"g"' +$nvsize='8' +$nvtype='double' +$o_nonblock='O_NONBLOCK' +$old_pthread_create_joinable='' +$osname='VOS' +$otherlibdirs='' +$package='perl5' +$pidtype='pid_t' +$pm_apiversion='5.005' +$privlib='/system/ported/perl/lib/5.7' +$privlibexp='/system/ported/perl/lib/5.7' +$prototype='define' +$ptrsize='4' +$quadkind='_error_' +$quadtype='_error_' +$randbits='15' +$randseedtype='unsigned int' +$rd_nodata='-1' +$sched_yield='' +$seedfunc='srand' +$selectminbits='1' +$selecttype='fd_set *' +$sh='/system/ported/command_library/bash.pm' +$shmattype='void *' +$shortsize='2' +$sig_name_init='"ZERO","ABRT","FPE","ILL","INT","SEGV","TERM","USR1","USR2","IO","HUP","URG","ALRM","CHLD","CONT","KILL","STOP","PIPE","QUIT","BUS","TRAP","TSTP","TTIN","TTOU","RT1","RT2","RT3","RT4","RT5","RT6","RT7","RT8",0' +$sig_num_init='0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,0' +$signal_t='void' +$sitearch='' +$sitearchexp='' +$sitelib='/system/ported/perl/lib/site/5.7' +$sitelibexp='/system/ported/perl/lib/site/5.7' +$sitelib_stem='/system/ported/perl/lib/site' +$sizesize='4' +$sizetype='size_t' +$socksizetype='int' +$sPRIeldbl='"Le"' +$sPRIfldbl='"Lf"' +$sPRIgldbl='"Lg"' +$src='/vos_ftp_site/pub/vos/posix/(alpha|ga)/perl' +$sSCNfldbl='"Lf"' +$ssizetype='ssize_t' +$startperl='!perl.pm' +$stdchar='unsigned char' +$stdio_base='((fp)->_base)' +$stdio_bufsiz='((fp)->_cnt + (fp)->_ptr - (fp)->_base)' +$stdio_cnt='((fp)->_cnt)' +$stdio_ptr='((fp)->_ptr)' +$stdio_stream_array='_iob' +$timetype='time_t' +$u16size='2' +$u16type='unsigned short' +$u32size='4' +$u32type='unsigned int' +$u64size='_error_' +$u64type='_error_' +$u8size='1' +$u8type='unsigned char' +$uidformat='"d"' +$uidsize='4' +$uidsign='-1' +$uidtype='uid_t' +$undef='$undef' +$uquadtype='_error_' +$use5005threads='undef' +$use64bitall='undef' +$use64bitint='undef' +$usedl='undef' +$useithreads='undef' +$uselargefiles='undef' +$uselongdouble='define' +$usemorebits='undef' +$usemultiplicity='undef' +$useperlio='undef' +$usesocks='undef' +$uvoformat='"o"' +$uvsize='4' +$uvtype='unsigned int' +$uvuformat='"u"' +$uvxformat='"x"' +$vendorarch='' +$vendorarchexp='' +$vendorlib_stem='' +$vendorlibexp='' +$voidflags='15' +$xs_apiversion='5.00563' diff --git a/vos/config_h.SH_orig b/vos/config.ga.h index e34d920718..ae5cf93129 100755..100644 --- a/vos/config_h.SH_orig +++ b/vos/config.ga.h @@ -1,45 +1,21 @@ -case "$CONFIG_SH" in -'') CONFIG_SH=config.sh ;; -esac -case "$CONFIG_H" in -'') CONFIG_H=config.h ;; -esac -case $CONFIG in -'') - if test -f $CONFIG_SH; then TOP=.; - elif test -f ../$CONFIG_SH; then TOP=..; - elif test -f ../../$CONFIG_SH; then TOP=../..; - elif test -f ../../../$CONFIG_SH; then TOP=../../..; - elif test -f ../../../../$CONFIG_SH; then TOP=../../../..; - else - echo "Can't find $CONFIG_SH."; exit 1 - fi - . $TOP/$CONFIG_SH - ;; -esac -case "$0" in -*/*) cd `expr X$0 : 'X\(.*\)/'` ;; -esac -echo "Extracting $CONFIG_H (with variable substitutions)" -sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!' /* * This file was produced by running the config_h.SH script, which - * gets its values from $CONFIG_SH, which is generally produced by + * gets its values from config.sh, which is generally produced by * running Configure. * * Feel free to modify any of this as the need arises. Note, however, * that running config_h.SH again will wipe out any changes you've made. - * For a more permanent change edit $CONFIG_SH and rerun config_h.SH. + * For a more permanent change edit config.sh and rerun config_h.SH. * * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $ */ /* - * Package name : $package - * Source directory : $src - * Configuration time: $cf_time - * Configured by : $cf_by - * Target system : $myuname + * Package name : perl5 + * Source directory : /vos_ftp_site/pub/vos/posix/(alpha|ga)/perl + * Configuration time: 2000-10-24 15:35 UCT + * Configured by : Paul_Green@stratus.com + * Target system : VOS */ #ifndef _config_h_ @@ -48,19 +24,19 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un /* LOC_SED: * This symbol holds the complete pathname to the sed program. */ -#define LOC_SED "$full_sed" /**/ +#define LOC_SED "/system/ported/command_library/sed.pm" /**/ /* HAS_ALARM: * This symbol, if defined, indicates that the alarm routine is * available. */ -#$d_alarm HAS_ALARM /**/ +#define HAS_ALARM /**/ /* HASATTRIBUTE: * This symbol indicates the C compiler can check for function attributes, * such as printf formats. This is normally only supported by GNU cc. */ -#$d_attribut HASATTRIBUTE /**/ +/*#define HASATTRIBUTE /**/ #ifndef HASATTRIBUTE #define __attribute__(_arg_) #endif @@ -69,37 +45,37 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol is defined if the bcmp() routine is available to * compare blocks of memory. */ -#$d_bcmp HAS_BCMP /**/ +/*#define HAS_BCMP /**/ /* HAS_BCOPY: * This symbol is defined if the bcopy() routine is available to * copy blocks of memory. */ -#$d_bcopy HAS_BCOPY /**/ +/*#define 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 /**/ +/*#define HAS_BZERO /**/ /* HAS_CHOWN: * This symbol, if defined, indicates that the chown routine is * available. */ -#$d_chown HAS_CHOWN /**/ +#define HAS_CHOWN /**/ /* HAS_CHROOT: * This symbol, if defined, indicates that the chroot routine is * available. */ -#$d_chroot HAS_CHROOT /**/ +/*#define HAS_CHROOT /**/ /* HAS_CHSIZE: * This symbol, if defined, indicates that the chsize routine is available * to truncate files. You might need a -lx to get this routine. */ -#$d_chsize HAS_CHSIZE /**/ +/*#define HAS_CHSIZE /**/ /* HASCONST: * This symbol, if defined, indicates that this C compiler knows about @@ -107,7 +83,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * within your programs. The mere use of the "const" keyword will * trigger the necessary tests. */ -#$d_const HASCONST /**/ +#define HASCONST /**/ #ifndef HASCONST #define const #endif @@ -116,13 +92,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates that the crypt routine is available * to encrypt passwords and the like. */ -#$d_crypt HAS_CRYPT /**/ +/*#define HAS_CRYPT /**/ /* HAS_CUSERID: * This symbol, if defined, indicates that the cuserid routine is * available to get character login names. */ -#$d_cuserid HAS_CUSERID /**/ +/*#define HAS_CUSERID /**/ /* HAS_DBL_DIG: * This symbol, if defined, indicates that this system's <float.h> @@ -130,20 +106,20 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * of significant digits in a double precision number. If this * symbol is not defined, a guess of 15 is usually pretty good. */ -#$d_dbl_dig HAS_DBL_DIG /* */ +#define HAS_DBL_DIG /* */ /* HAS_DIFFTIME: * This symbol, if defined, indicates that the difftime routine is * available. */ -#$d_difftime HAS_DIFFTIME /**/ +#define HAS_DIFFTIME /**/ /* HAS_DLERROR: * This symbol, if defined, indicates that the dlerror routine is * available to return a string describing the last error that * occurred from a call to dlopen(), dlclose() or dlsym(). */ -#$d_dlerror HAS_DLERROR /**/ +/*#define HAS_DLERROR /**/ /* SETUID_SCRIPTS_ARE_SECURE_NOW: * This symbol, if defined, indicates that the bug that prevents @@ -162,56 +138,56 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * subprocesses to which it must pass the filename rather than the * file descriptor of the script to be executed. */ -#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/ -#$d_dosuid DOSUID /**/ +#define SETUID_SCRIPTS_ARE_SECURE_NOW /**/ +/*#define DOSUID /**/ /* HAS_DUP2: * This symbol, if defined, indicates that the dup2 routine is * available to duplicate file descriptors. */ -#$d_dup2 HAS_DUP2 /**/ +#define HAS_DUP2 /**/ /* HAS_FCHMOD: * This symbol, if defined, indicates that the fchmod routine is available * to change mode of opened files. If unavailable, use chmod(). */ -#$d_fchmod HAS_FCHMOD /**/ +#define HAS_FCHMOD /**/ /* HAS_FCHOWN: * This symbol, if defined, indicates that the fchown routine is available * to change ownership of opened files. If unavailable, use chown(). */ -#$d_fchown HAS_FCHOWN /**/ +/*#define HAS_FCHOWN /**/ /* HAS_FCNTL: * This symbol, if defined, indicates to the C program that * the fcntl() function exists. */ -#$d_fcntl HAS_FCNTL /**/ +#define HAS_FCNTL /**/ /* HAS_FGETPOS: * This symbol, if defined, indicates that the fgetpos routine is * available to get the file position indicator, similar to ftell(). */ -#$d_fgetpos HAS_FGETPOS /**/ +#define HAS_FGETPOS /**/ /* HAS_FLOCK: * This symbol, if defined, indicates that the flock routine is * available to do file locking. */ -#$d_flock HAS_FLOCK /**/ +/*#define HAS_FLOCK /**/ /* HAS_FORK: * This symbol, if defined, indicates that the fork routine is * available. */ -#$d_fork HAS_FORK /**/ +#define HAS_FORK /**/ /* HAS_FSETPOS: * This symbol, if defined, indicates that the fsetpos routine is * available to set the file position indicator, similar to fseek(). */ -#$d_fsetpos HAS_FSETPOS /**/ +#define HAS_FSETPOS /**/ /* HAS_GETTIMEOFDAY: * This symbol, if defined, indicates that the gettimeofday() system @@ -219,7 +195,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * <sys/resource.h> needs to be included (see I_SYS_RESOURCE). * The type "Timeval" should be used to refer to "struct timeval". */ -#$d_gettimeod HAS_GETTIMEOFDAY /**/ +/*#define HAS_GETTIMEOFDAY /**/ #ifdef HAS_GETTIMEOFDAY #define Timeval struct timeval /* Structure used by gettimeofday() */ #endif @@ -229,106 +205,106 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * available to get the list of process groups. If unavailable, multiple * groups are probably not supported. */ -#$d_getgrps HAS_GETGROUPS /**/ +/*#define HAS_GETGROUPS /**/ /* HAS_GETLOGIN: * This symbol, if defined, indicates that the getlogin routine is * available to get the login name. */ -#$d_getlogin HAS_GETLOGIN /**/ +#define HAS_GETLOGIN /**/ /* HAS_GETPGID: * This symbol, if defined, indicates to the C program that * the getpgid(pid) function is available to get the * process group id. */ -#$d_getpgid HAS_GETPGID /**/ +/*#define HAS_GETPGID /**/ /* HAS_GETPGRP2: * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) * routine is available to get the current process group. */ -#$d_getpgrp2 HAS_GETPGRP2 /**/ +/*#define HAS_GETPGRP2 /**/ /* HAS_GETPPID: * This symbol, if defined, indicates that the getppid routine is * available to get the parent process ID. */ -#$d_getppid HAS_GETPPID /**/ +#define HAS_GETPPID /**/ /* HAS_GETPRIORITY: * This symbol, if defined, indicates that the getpriority routine is * available to get a process's priority. */ -#$d_getprior HAS_GETPRIORITY /**/ +/*#define HAS_GETPRIORITY /**/ /* HAS_INET_ATON: * This symbol, if defined, indicates to the C program that the * inet_aton() function is available to parse IP address "dotted-quad" * strings. */ -#$d_inetaton HAS_INET_ATON /**/ +/*#define HAS_INET_ATON /**/ /* HAS_KILLPG: * This symbol, if defined, indicates that the killpg routine is available * to kill process groups. If unavailable, you probably should use kill * with a negative process number. */ -#$d_killpg HAS_KILLPG /**/ +/*#define HAS_KILLPG /**/ /* HAS_LINK: * This symbol, if defined, indicates that the link routine is * available to create hard links. */ -#$d_link HAS_LINK /**/ +/*#define HAS_LINK /**/ /* HAS_LOCALECONV: * This symbol, if defined, indicates that the localeconv routine is * available for numeric and monetary formatting conventions. */ -#$d_locconv HAS_LOCALECONV /**/ +#define HAS_LOCALECONV /**/ /* HAS_LOCKF: * This symbol, if defined, indicates that the lockf routine is * available to do file locking. */ -#$d_lockf HAS_LOCKF /**/ +#define HAS_LOCKF /**/ /* HAS_LSTAT: * This symbol, if defined, indicates that the lstat routine is * available to do file stats on symbolic links. */ -#$d_lstat HAS_LSTAT /**/ +#define HAS_LSTAT /**/ /* HAS_MBLEN: * This symbol, if defined, indicates that the mblen routine is available * to find the number of bytes in a multibye character. */ -#$d_mblen HAS_MBLEN /**/ +#define HAS_MBLEN /**/ /* HAS_MBSTOWCS: * This symbol, if defined, indicates that the mbstowcs routine is * available to covert a multibyte string into a wide character string. */ -#$d_mbstowcs HAS_MBSTOWCS /**/ +#define HAS_MBSTOWCS /**/ /* HAS_MBTOWC: * This symbol, if defined, indicates that the mbtowc routine is available * to covert a multibyte to a wide character. */ -#$d_mbtowc HAS_MBTOWC /**/ +#define HAS_MBTOWC /**/ /* HAS_MEMCMP: * This symbol, if defined, indicates that the memcmp routine is available * to compare blocks of memory. */ -#$d_memcmp HAS_MEMCMP /**/ +#define HAS_MEMCMP /**/ /* HAS_MEMCPY: * This symbol, if defined, indicates that the memcpy routine is available * to copy blocks of memory. */ -#$d_memcpy HAS_MEMCPY /**/ +#define HAS_MEMCPY /**/ /* HAS_MEMMOVE: * This symbol, if defined, indicates that the memmove routine is available @@ -336,20 +312,20 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your * own version. */ -#$d_memmove HAS_MEMMOVE /**/ +#define HAS_MEMMOVE /**/ /* HAS_MEMSET: * This symbol, if defined, indicates that the memset routine is available * to set blocks of memory. */ -#$d_memset HAS_MEMSET /**/ +#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 * exec /bin/mkdir. */ -#$d_mkdir HAS_MKDIR /**/ +#define HAS_MKDIR /**/ /* HAS_MKFIFO: * This symbol, if defined, indicates that the mkfifo routine is @@ -357,31 +333,31 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * do it for you. However, if mkfifo is there, mknod might require * super-user privileges which mkfifo will not. */ -#$d_mkfifo HAS_MKFIFO /**/ +#define HAS_MKFIFO /**/ /* HAS_MKTIME: * This symbol, if defined, indicates that the mktime routine is * available. */ -#$d_mktime HAS_MKTIME /**/ +#define HAS_MKTIME /**/ /* HAS_MSYNC: * This symbol, if defined, indicates that the msync system call is * available to synchronize a mapped file. */ -#$d_msync HAS_MSYNC /**/ +/*#define HAS_MSYNC /**/ /* HAS_MUNMAP: * This symbol, if defined, indicates that the munmap system call is * available to unmap a region, usually mapped by mmap(). */ -#$d_munmap HAS_MUNMAP /**/ +#define HAS_MUNMAP /**/ /* HAS_NICE: * This symbol, if defined, indicates that the nice routine is * available. */ -#$d_nice HAS_NICE /**/ +/*#define HAS_NICE /**/ /* HAS_PATHCONF: * This symbol, if defined, indicates that pathconf() is available @@ -393,122 +369,122 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * to determine file-system related limits and options associated * with a given open file descriptor. */ -#$d_pathconf HAS_PATHCONF /**/ -#$d_fpathconf HAS_FPATHCONF /**/ +#define HAS_PATHCONF /**/ +#define HAS_FPATHCONF /**/ /* HAS_PAUSE: * This symbol, if defined, indicates that the pause routine is * available to suspend a process until a signal is received. */ -#$d_pause HAS_PAUSE /**/ +#define HAS_PAUSE /**/ /* HAS_PIPE: * This symbol, if defined, indicates that the pipe routine is * available to create an inter-process channel. */ -#$d_pipe HAS_PIPE /**/ +#define HAS_PIPE /**/ /* HAS_POLL: * This symbol, if defined, indicates that the poll routine is * available to poll active file descriptors. You may safely * include <poll.h> when this symbol is defined. */ -#$d_poll HAS_POLL /**/ +#define HAS_POLL /**/ /* HAS_READDIR: * This symbol, if defined, indicates that the readdir routine is * available to read directory entries. You may have to include * <dirent.h>. See I_DIRENT. */ -#$d_readdir HAS_READDIR /**/ +#define HAS_READDIR /**/ /* HAS_SEEKDIR: * This symbol, if defined, indicates that the seekdir routine is * available. You may have to include <dirent.h>. See I_DIRENT. */ -#$d_seekdir HAS_SEEKDIR /**/ +/*#define HAS_SEEKDIR /**/ /* HAS_TELLDIR: * This symbol, if defined, indicates that the telldir routine is * available. You may have to include <dirent.h>. See I_DIRENT. */ -#$d_telldir HAS_TELLDIR /**/ +/*#define HAS_TELLDIR /**/ /* HAS_REWINDDIR: * This symbol, if defined, indicates that the rewinddir routine is * available. You may have to include <dirent.h>. See I_DIRENT. */ -#$d_rewinddir HAS_REWINDDIR /**/ +#define HAS_REWINDDIR /**/ /* HAS_READLINK: * This symbol, if defined, indicates that the readlink routine is * available to read the value of a symbolic link. */ -#$d_readlink HAS_READLINK /**/ +#define HAS_READLINK /**/ /* HAS_RENAME: * This symbol, if defined, indicates that the rename routine is available * to rename files. Otherwise you should do the unlink(), link(), unlink() * trick. */ -#$d_rename HAS_RENAME /**/ +#define HAS_RENAME /**/ /* HAS_RMDIR: * This symbol, if defined, indicates that the rmdir routine is * available to remove directories. Otherwise you should fork off a * new process to exec /bin/rmdir. */ -#$d_rmdir HAS_RMDIR /**/ +#define HAS_RMDIR /**/ /* HAS_SELECT: * This symbol, if defined, indicates that the select routine is * available to select active file descriptors. If the timeout field * is used, <sys/time.h> may need to be included. */ -#$d_select HAS_SELECT /**/ +#define HAS_SELECT /**/ /* HAS_SETEGID: * This symbol, if defined, indicates that the setegid routine is available * to change the effective gid of the current program. */ -#$d_setegid HAS_SETEGID /**/ +#define HAS_SETEGID /**/ /* HAS_SETEUID: * This symbol, if defined, indicates that the seteuid routine is available * to change the effective uid of the current program. */ -#$d_seteuid HAS_SETEUID /**/ +#define HAS_SETEUID /**/ /* HAS_SETLINEBUF: * This symbol, if defined, indicates that the setlinebuf routine is * available to change stderr or stdout from block-buffered or unbuffered * to a line-buffered mode. */ -#$d_setlinebuf HAS_SETLINEBUF /**/ +#define HAS_SETLINEBUF /**/ /* HAS_SETLOCALE: * This symbol, if defined, indicates that the setlocale routine is * available to handle locale-specific ctype implementations. */ -#$d_setlocale HAS_SETLOCALE /**/ +#define HAS_SETLOCALE /**/ /* HAS_SETPGID: * This symbol, if defined, indicates that the setpgid(pid, gpid) * routine is available to set process group ID. */ -#$d_setpgid HAS_SETPGID /**/ +#define HAS_SETPGID /**/ /* HAS_SETPGRP2: * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) * routine is available to set the current process group. */ -#$d_setpgrp2 HAS_SETPGRP2 /**/ +/*#define HAS_SETPGRP2 /**/ /* HAS_SETPRIORITY: * This symbol, if defined, indicates that the setpriority routine is * available to set a process's priority. */ -#$d_setprior HAS_SETPRIORITY /**/ +/*#define HAS_SETPRIORITY /**/ /* HAS_SETREGID: * This symbol, if defined, indicates that the setregid routine is @@ -520,8 +496,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * available to change the real, effective and saved gid of the current * process. */ -#$d_setregid HAS_SETREGID /**/ -#$d_setresgid HAS_SETRESGID /**/ +/*#define HAS_SETREGID /**/ +/*#define HAS_SETRESGID /**/ /* HAS_SETREUID: * This symbol, if defined, indicates that the setreuid routine is @@ -533,26 +509,26 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * available to change the real, effective and saved uid of the current * process. */ -#$d_setreuid HAS_SETREUID /**/ -#$d_setresuid HAS_SETRESUID /**/ +/*#define HAS_SETREUID /**/ +/*#define HAS_SETRESUID /**/ /* HAS_SETRGID: * This symbol, if defined, indicates that the setrgid routine is available * to change the real gid of the current program. */ -#$d_setrgid HAS_SETRGID /**/ +/*#define HAS_SETRGID /**/ /* HAS_SETRUID: * This symbol, if defined, indicates that the setruid routine is available * to change the real uid of the current program. */ -#$d_setruid HAS_SETRUID /**/ +/*#define HAS_SETRUID /**/ /* HAS_SETSID: * This symbol, if defined, indicates that the setsid routine is * available to set the process group ID. */ -#$d_setsid HAS_SETSID /**/ +#define HAS_SETSID /**/ /* Shmat_t: * This symbol holds the return type of the shmat() system call. @@ -565,8 +541,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * but not always right so it should be emitted by the program only * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. */ -#define Shmat_t $shmattype /**/ -#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/ +#define Shmat_t void * /**/ +#define HAS_SHMAT_PROTOTYPE /**/ /* HAS_STRCHR: * This symbol is defined to indicate that the strchr()/strrchr() @@ -577,105 +553,105 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol is defined to indicate that the index()/rindex() * functions are available for string searching. */ -#$d_strchr HAS_STRCHR /**/ -#$d_index HAS_INDEX /**/ +#define HAS_STRCHR /**/ +/*#define HAS_INDEX /**/ /* HAS_STRCOLL: * This symbol, if defined, indicates that the strcoll routine is * available to compare strings using collating information. */ -#$d_strcoll HAS_STRCOLL /**/ +#define HAS_STRCOLL /**/ /* USE_STRUCT_COPY: * This symbol, if defined, indicates that this C compiler knows how * to copy structures. If undefined, you'll need to use a block copy * routine of some sort instead. */ -#$d_strctcpy USE_STRUCT_COPY /**/ +#define USE_STRUCT_COPY /**/ /* HAS_STRTOD: * This symbol, if defined, indicates that the strtod routine is * available to provide better numeric string conversion than atof(). */ -#$d_strtod HAS_STRTOD /**/ +#define HAS_STRTOD /**/ /* HAS_STRTOL: * This symbol, if defined, indicates that the strtol routine is available * to provide better numeric string conversion than atoi() and friends. */ -#$d_strtol HAS_STRTOL /**/ +#define HAS_STRTOL /**/ /* HAS_STRTOUL: * This symbol, if defined, indicates that the strtoul routine is * available to provide conversion of strings to unsigned long. */ -#$d_strtoul HAS_STRTOUL /**/ +#define HAS_STRTOUL /**/ /* HAS_STRXFRM: * This symbol, if defined, indicates that the strxfrm() routine is * available to transform strings. */ -#$d_strxfrm HAS_STRXFRM /**/ +#define HAS_STRXFRM /**/ /* HAS_SYMLINK: * This symbol, if defined, indicates that the symlink routine is available * to create symbolic links. */ -#$d_symlink HAS_SYMLINK /**/ +#define HAS_SYMLINK /**/ /* HAS_SYSCALL: * This symbol, if defined, indicates that the syscall routine is * available to call arbitrary system calls. If undefined, that's tough. */ -#$d_syscall HAS_SYSCALL /**/ +/*#define HAS_SYSCALL /**/ /* HAS_SYSCONF: * This symbol, if defined, indicates that sysconf() is available * to determine system related limits and options. */ -#$d_sysconf HAS_SYSCONF /**/ +#define HAS_SYSCONF /**/ /* HAS_SYSTEM: * This symbol, if defined, indicates that the system routine is * available to issue a shell command. */ -#$d_system HAS_SYSTEM /**/ +#define HAS_SYSTEM /**/ /* HAS_TCGETPGRP: * This symbol, if defined, indicates that the tcgetpgrp routine is * available to get foreground process group ID. */ -#$d_tcgetpgrp HAS_TCGETPGRP /**/ +#define HAS_TCGETPGRP /**/ /* HAS_TCSETPGRP: * This symbol, if defined, indicates that the tcsetpgrp routine is * available to set foreground process group ID. */ -#$d_tcsetpgrp HAS_TCSETPGRP /**/ +#define HAS_TCSETPGRP /**/ /* HAS_TRUNCATE: * This symbol, if defined, indicates that the truncate routine is * available to truncate files. */ -#$d_truncate HAS_TRUNCATE /**/ +/*#define HAS_TRUNCATE /**/ /* HAS_TZNAME: * This symbol, if defined, indicates that the tzname[] array is * available to access timezone names. */ -#$d_tzname HAS_TZNAME /**/ +#define HAS_TZNAME /**/ /* HAS_UMASK: * This symbol, if defined, indicates that the umask routine is * available to set and get the value of the file creation mask. */ -#$d_umask HAS_UMASK /**/ +#define HAS_UMASK /**/ /* HASVOLATILE: * This symbol, if defined, indicates that this C compiler knows about * the volatile declaration. */ -#$d_volatile HASVOLATILE /**/ +#define HASVOLATILE /**/ #ifndef HASVOLATILE #define volatile #endif @@ -683,31 +659,31 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un /* HAS_WAIT4: * This symbol, if defined, indicates that wait4() exists. */ -#$d_wait4 HAS_WAIT4 /**/ +#define HAS_WAIT4 /**/ /* HAS_WAITPID: * This symbol, if defined, indicates that the waitpid routine is * available to wait for child process. */ -#$d_waitpid HAS_WAITPID /**/ +#define HAS_WAITPID /**/ /* HAS_WCSTOMBS: * This symbol, if defined, indicates that the wcstombs routine is * available to convert wide character strings to multibyte strings. */ -#$d_wcstombs HAS_WCSTOMBS /**/ +#define HAS_WCSTOMBS /**/ /* HAS_WCTOMB: * This symbol, if defined, indicates that the wctomb routine is available * to covert a wide character to a multibyte. */ -#$d_wctomb HAS_WCTOMB /**/ +#define HAS_WCTOMB /**/ /* I_ARPA_INET: * This symbol, if defined, indicates to the C program that it should * include <arpa/inet.h> to get inet_addr and friends declarations. */ -#$i_arpainet I_ARPA_INET /**/ +#define I_ARPA_INET /**/ /* I_DBM: * This symbol, if defined, indicates that <dbm.h> exists and should @@ -717,8 +693,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and * should be included. */ -#$i_dbm I_DBM /**/ -#$i_rpcsvcdbm I_RPCSVC_DBM /**/ +/*#define I_DBM /**/ +/*#define I_RPCSVC_DBM /**/ /* I_DIRENT: * This symbol, if defined, indicates to the C program that it should @@ -736,166 +712,166 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * whether dirent is available or not. You should use this pseudo type to * portably declare your directory entries. */ -#$i_dirent I_DIRENT /**/ -#$d_dirnamlen DIRNAMLEN /**/ -#define Direntry_t $direntrytype +#define I_DIRENT /**/ +/*#define DIRNAMLEN /**/ +#define Direntry_t struct dirent /* I_DLFCN: * This symbol, if defined, indicates that <dlfcn.h> exists and should * be included. */ -#$i_dlfcn I_DLFCN /**/ +/*#define I_DLFCN /**/ /* I_FCNTL: * This manifest constant tells the C program to include <fcntl.h>. */ -#$i_fcntl I_FCNTL /**/ +#define I_FCNTL /**/ /* I_FLOAT: * This symbol, if defined, indicates to the C program that it should * include <float.h> to get definition of symbols like DBL_MAX or * DBL_MIN, i.e. machine dependent floating point values. */ -#$i_float I_FLOAT /**/ +#define I_FLOAT /**/ /* I_LIMITS: * This symbol, if defined, indicates to the C program that it should * include <limits.h> to get definition of symbols like WORD_BIT or * LONG_MAX, i.e. machine dependant limitations. */ -#$i_limits I_LIMITS /**/ +#define I_LIMITS /**/ /* I_LOCALE: * This symbol, if defined, indicates to the C program that it should * include <locale.h>. */ -#$i_locale I_LOCALE /**/ +#define I_LOCALE /**/ /* I_MATH: * This symbol, if defined, indicates to the C program that it should * include <math.h>. */ -#$i_math I_MATH /**/ +#define I_MATH /**/ /* I_MEMORY: * This symbol, if defined, indicates to the C program that it should * include <memory.h>. */ -#$i_memory I_MEMORY /**/ +/*#define I_MEMORY /**/ /* I_NDBM: * This symbol, if defined, indicates that <ndbm.h> exists and should * be included. */ -#$i_ndbm I_NDBM /**/ +/*#define I_NDBM /**/ /* I_NET_ERRNO: * This symbol, if defined, indicates that <net/errno.h> exists and * should be included. */ -#$i_neterrno I_NET_ERRNO /**/ +/*#define I_NET_ERRNO /**/ /* I_NETINET_IN: * This symbol, if defined, indicates to the C program that it should * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. */ -#$i_niin I_NETINET_IN /**/ +#define I_NETINET_IN /**/ /* I_SFIO: * This symbol, if defined, indicates to the C program that it should * include <sfio.h>. */ -#$i_sfio I_SFIO /**/ +/*#define I_SFIO /**/ /* I_STDDEF: * This symbol, if defined, indicates that <stddef.h> exists and should * be included. */ -#$i_stddef I_STDDEF /**/ +#define I_STDDEF /**/ /* I_STDLIB: * This symbol, if defined, indicates that <stdlib.h> exists and should * be included. */ -#$i_stdlib I_STDLIB /**/ +#define I_STDLIB /**/ /* I_STRING: * This symbol, if defined, indicates to the C program that it should * include <string.h> (USG systems) instead of <strings.h> (BSD systems). */ -#$i_string I_STRING /**/ +#define I_STRING /**/ /* I_SYS_DIR: * This symbol, if defined, indicates to the C program that it should * include <sys/dir.h>. */ -#$i_sysdir I_SYS_DIR /**/ +/*#define I_SYS_DIR /**/ /* I_SYS_FILE: * This symbol, if defined, indicates to the C program that it should * include <sys/file.h> to get definition of R_OK and friends. */ -#$i_sysfile I_SYS_FILE /**/ +/*#define I_SYS_FILE /**/ /* I_SYS_IOCTL: * This symbol, if defined, indicates that <sys/ioctl.h> exists and should * be included. Otherwise, include <sgtty.h> or <termio.h>. */ -#$i_sysioctl I_SYS_IOCTL /**/ +#define I_SYS_IOCTL /**/ /* I_SYS_NDIR: * This symbol, if defined, indicates to the C program that it should * include <sys/ndir.h>. */ -#$i_sysndir I_SYS_NDIR /**/ +/*#define I_SYS_NDIR /**/ /* I_SYS_PARAM: * This symbol, if defined, indicates to the C program that it should * include <sys/param.h>. */ -#$i_sysparam I_SYS_PARAM /**/ +/*#define I_SYS_PARAM /**/ /* I_SYS_RESOURCE: * This symbol, if defined, indicates to the C program that it should * include <sys/resource.h>. */ -#$i_sysresrc I_SYS_RESOURCE /**/ +/*#define I_SYS_RESOURCE /**/ /* I_SYS_SELECT: * This symbol, if defined, indicates to the C program that it should * include <sys/select.h> in order to get definition of struct timeval. */ -#$i_sysselct I_SYS_SELECT /**/ +#define I_SYS_SELECT /**/ /* I_SYS_STAT: * This symbol, if defined, indicates to the C program that it should * include <sys/stat.h>. */ -#$i_sysstat I_SYS_STAT /**/ +#define I_SYS_STAT /**/ /* I_SYS_TIMES: * This symbol, if defined, indicates to the C program that it should * include <sys/times.h>. */ -#$i_systimes I_SYS_TIMES /**/ +#define I_SYS_TIMES /**/ /* I_SYS_TYPES: * This symbol, if defined, indicates to the C program that it should * include <sys/types.h>. */ -#$i_systypes I_SYS_TYPES /**/ +#define I_SYS_TYPES /**/ /* I_SYS_UN: * This symbol, if defined, indicates to the C program that it should * include <sys/un.h> to get UNIX domain socket definitions. */ -#$i_sysun I_SYS_UN /**/ +/*#define I_SYS_UN /**/ /* I_SYS_WAIT: * This symbol, if defined, indicates to the C program that it should * include <sys/wait.h>. */ -#$i_syswait I_SYS_WAIT /**/ +#define I_SYS_WAIT /**/ /* I_TERMIO: * This symbol, if defined, indicates that the program should include @@ -913,21 +889,21 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * <sgtty.h> rather than <termio.h>. There are also differences in * the ioctl() calls that depend on the value of this symbol. */ -#$i_termio I_TERMIO /**/ -#$i_termios I_TERMIOS /**/ -#$i_sgtty I_SGTTY /**/ +/*#define I_TERMIO /**/ +#define I_TERMIOS /**/ +/*#define I_SGTTY /**/ /* I_UNISTD: * This symbol, if defined, indicates to the C program that it should * include <unistd.h>. */ -#$i_unistd I_UNISTD /**/ +#define I_UNISTD /**/ /* I_UTIME: * This symbol, if defined, indicates to the C program that it should * include <utime.h>. */ -#$i_utime I_UTIME /**/ +#define I_UTIME /**/ /* I_VALUES: * This symbol, if defined, indicates to the C program that it should @@ -935,7 +911,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * MAXLONG, i.e. machine dependant limitations. Probably, you * should use <limits.h> instead, if it is available. */ -#$i_values I_VALUES /**/ +#define I_VALUES /**/ /* I_STDARG: * This symbol, if defined, indicates that <stdarg.h> exists and should @@ -945,14 +921,14 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates to the C program that it should * include <varargs.h>. */ -#$i_stdarg I_STDARG /**/ -#$i_varargs I_VARARGS /**/ +#define I_STDARG /**/ +/*#define I_VARARGS /**/ /* I_VFORK: * This symbol, if defined, indicates to the C program that it should * include vfork.h. */ -#$i_vfork I_VFORK /**/ +/*#define I_VFORK /**/ /* CAN_PROTOTYPE: * If defined, this macro indicates that the C compiler can handle @@ -965,7 +941,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * * int main _((int argc, char *argv[])); */ -#$prototype CAN_PROTOTYPE /**/ +#define CAN_PROTOTYPE /**/ #ifdef CAN_PROTOTYPE #define _(args) args #else @@ -979,19 +955,19 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * /bin/pdksh, /bin/ash, /bin/bash, or even something such as * D:/bin/sh.exe. */ -#define SH_PATH "$sh" /**/ +#define SH_PATH "/system/ported/command_library/bash.pm" /**/ /* STDCHAR: * This symbol is defined to be the type of char used in stdio.h. * It has the values "unsigned char" or "char". */ -#define STDCHAR $stdchar /**/ +#define STDCHAR unsigned char /**/ /* CROSSCOMPILE: * This symbol, if defined, signifies that we our * build process is a cross-compilation. */ -#$crosscompile CROSSCOMPILE /**/ +/*#define CROSSCOMPILE /**/ /* INTSIZE: * This symbol contains the value of sizeof(int) so that the C @@ -1005,9 +981,9 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol contains the value of sizeof(short) so that the C * preprocessor can make decisions based on it. */ -#define INTSIZE $intsize /**/ -#define LONGSIZE $longsize /**/ -#define SHORTSIZE $shortsize /**/ +#define INTSIZE 4 /**/ +#define LONGSIZE 4 /**/ +#define SHORTSIZE 2 /**/ /* MULTIARCH: * This symbol, if defined, signifies that the build @@ -1016,18 +992,18 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * example with the NeXT "fat" binaries that contain executables * for several CPUs. */ -#$multiarch MULTIARCH /**/ +/*#define MULTIARCH /**/ /* HAS_QUAD: * This symbol, if defined, tells that there's a 64-bit integer type, * Quad_t, and its unsigned counterpar, Uquad_t. QUADKIND will be one * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, or QUAD_IS_INT64_T. */ -#$d_quad HAS_QUAD /**/ +/*#define HAS_QUAD /**/ #ifdef HAS_QUAD -# define Quad_t $quadtype /**/ -# define Uquad_t $uquadtype /**/ -# define QUADKIND $quadkind /**/ +# define Quad_t _error_ /**/ +# define Uquad_t _error_ /**/ +# define QUADKIND _error_ /**/ # define QUAD_IS_INT 1 # define QUAD_IS_LONG 2 # define QUAD_IS_LONG_LONG 3 @@ -1038,32 +1014,32 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates that the accessx routine is * available to do extended access checks. */ -#$d_accessx HAS_ACCESSX /**/ +/*#define HAS_ACCESSX /**/ /* HAS_EACCESS: * This symbol, if defined, indicates that the eaccess routine is * available to do extended access checks. */ -#$d_eaccess HAS_EACCESS /**/ +/*#define HAS_EACCESS /**/ /* I_SYS_ACCESS: * This symbol, if defined, indicates to the C program that it should * include <sys/access.h>. */ -#$i_sysaccess I_SYS_ACCESS /**/ +/*#define I_SYS_ACCESS /**/ /* I_SYS_SECURITY: * This symbol, if defined, indicates to the C program that it should * include <sys/security.h>. */ -#$i_syssecrt I_SYS_SECURITY /**/ +/*#define I_SYS_SECURITY /**/ /* OSNAME: * This symbol contains the name of the operating system, as determined * by Configure. You shouldn't rely on it too much; the specific * feature tests from Configure are generally more reliable. */ -#define OSNAME "$osname" /**/ +#define OSNAME "VOS" /**/ /* MEM_ALIGNBYTES: * This symbol contains the number of bytes required to align a @@ -1073,13 +1049,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un #if defined(CROSSCOMPILE) || defined(MULTIARCH) # define MEM_ALIGNBYTES 8 #else -#define MEM_ALIGNBYTES $alignbytes +#define MEM_ALIGNBYTES 8 #endif /* ARCHLIB: * This variable, if defined, holds the name of the directory in * which the user wants to put architecture-dependent public - * library files for $package. It is most often a local directory + * library files for perl5. It is most often a local directory * such as /usr/local/lib. Programs using this variable must be * prepared to deal with filename expansion. If ARCHLIB is the * same as PRIVLIB, it is not defined, since presumably the @@ -1089,8 +1065,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol contains the ~name expanded version of ARCHLIB, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#$d_archlib ARCHLIB "$archlib" /**/ -#$d_archlib ARCHLIB_EXP "$archlibexp" /**/ +/*#define ARCHLIB "" /**/ +/*#define ARCHLIB_EXP "" /**/ /* ARCHNAME: * This symbol holds a string representing the architecture name. @@ -1098,19 +1074,19 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * where library files may be held under a private library, for * instance. */ -#define ARCHNAME "$archname" /**/ +#define ARCHNAME "vos" /**/ /* HAS_ATOLF: * This symbol, if defined, indicates that the atolf routine is * available to convert strings into long doubles. */ -#$d_atolf HAS_ATOLF /**/ +/*#define HAS_ATOLF /**/ /* HAS_ATOLL: * This symbol, if defined, indicates that the atoll routine is * available to convert strings into long longs. */ -#$d_atoll HAS_ATOLL /**/ +/*#define HAS_ATOLL /**/ /* BIN: * This symbol holds the path of the bin directory where the package will @@ -1120,8 +1096,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol is the filename expanded version of the BIN symbol, for * programs that do not want to deal with that at run-time. */ -#define BIN "$bin" /**/ -#define BIN_EXP "$binexp" /**/ +#define BIN "/system/ported/command_library" /**/ +#define BIN_EXP "/system/ported/command_library" /**/ /* PERL_BINCOMPAT_5005: * This symbol, if defined, indicates that this version of Perl should be @@ -1129,7 +1105,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * that use features like threads and multiplicity it is always $undef * for those versions. */ -#$d_bincompat5005 PERL_BINCOMPAT_5005 /**/ +/*#define PERL_BINCOMPAT_5005 /**/ /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, @@ -1171,7 +1147,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un # define BYTEORDER 0x4321 # endif #else -#define BYTEORDER 0x$byteorder /* large digits for MSB */ +#define BYTEORDER 0x4321 /* large digits for MSB */ #endif /* NeXT */ /* CAT2: @@ -1180,12 +1156,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un /* STRINGIFY: * This macro surrounds its token with double quotes. */ -#if $cpp_stuff == 1 +#if 42 == 1 #define CAT2(a,b) a/**/b #define STRINGIFY(a) "a" /* If you can get stringification with catify, tell me how! */ #endif -#if $cpp_stuff == 42 +#if 42 == 42 #define PeRl_CaTiFy(a, b) a ## b #define PeRl_StGiFy(a) #a /* the additional level of indirection enables these macros to be @@ -1194,7 +1170,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un #define StGiFy(a) PeRl_StGiFy(a) #define STRINGIFY(a) PeRl_StGiFy(a) #endif -#if $cpp_stuff != 1 && $cpp_stuff != 42 +#if 42 != 1 && 42 != 42 # include "Bletch: How does this C preprocessor catenate tokens?" #endif @@ -1223,23 +1199,23 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol is intended to be used along with CPPRUN in the same manner * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "". */ -#define CPPSTDIN "$cppstdin" -#define CPPMINUS "$cppminus" -#define CPPRUN "$cpprun" -#define CPPLAST "$cpplast" +#define CPPSTDIN "cc -E" +#define CPPMINUS "-" +#define CPPRUN "cc -E -" +#define CPPLAST "-" /* HAS_ACCESS: * This manifest constant lets the C program know that the access() * system call is available to check for accessibility using real UID/GID. * (always present on UNIX.) */ -#$d_access HAS_ACCESS /**/ +#define HAS_ACCESS /**/ /* CASTI32: * This symbol is defined if the C compiler can cast negative * or large floating point numbers to 32-bit ints. */ -#$d_casti32 CASTI32 /**/ +/*#define CASTI32 /**/ /* CASTNEGFLOAT: * This symbol is defined if the C compiler can cast negative @@ -1253,14 +1229,14 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * 2 = couldn't cast >= 0x80000000 * 4 = couldn't cast in argument expression list */ -#$d_castneg CASTNEGFLOAT /**/ -#define CASTFLAGS $castflags /**/ +#define CASTNEGFLOAT /**/ +#define CASTFLAGS 0 /**/ /* VOID_CLOSEDIR: * This symbol, if defined, indicates that the closedir() routine * does not return a value. */ -#$d_void_closedir VOID_CLOSEDIR /**/ +/*#define VOID_CLOSEDIR /**/ /* HAS_CSH: * This symbol, if defined, indicates that the C-shell exists. @@ -1268,9 +1244,9 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un /* CSH: * This symbol, if defined, contains the full pathname of csh. */ -#$d_csh HAS_CSH /**/ +#define HAS_CSH /**/ #ifdef HAS_CSH -#define CSH "$full_csh" /**/ +#define CSH "/system/ported/command_library/bash.pm" /**/ #endif /* DLSYM_NEEDS_UNDERSCORE: @@ -1279,7 +1255,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * makes sense if you *have* dlsym, which we will presume is the * case if you're using dl_dlopen.xs. */ -#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/ +/*#define DLSYM_NEEDS_UNDERSCORE /**/ /* HAS_DRAND48_PROTO: * This symbol, if defined, indicates that the system provides @@ -1287,91 +1263,91 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * to the program to supply one. A good guess is * extern double drand48 _((void)); */ -#$d_drand48proto HAS_DRAND48_PROTO /**/ +/*#define HAS_DRAND48_PROTO /**/ /* HAS_ENDGRENT: * This symbol, if defined, indicates that the getgrent routine is * available for finalizing sequential access of the group database. */ -#$d_endgrent HAS_ENDGRENT /**/ +/*#define HAS_ENDGRENT /**/ /* HAS_ENDHOSTENT: * This symbol, if defined, indicates that the endhostent() routine is * available to close whatever was being used for host queries. */ -#$d_endhent HAS_ENDHOSTENT /**/ +#define HAS_ENDHOSTENT /**/ /* HAS_ENDNETENT: * This symbol, if defined, indicates that the endnetent() routine is * available to close whatever was being used for network queries. */ -#$d_endnent HAS_ENDNETENT /**/ +#define HAS_ENDNETENT /**/ /* HAS_ENDPROTOENT: * This symbol, if defined, indicates that the endprotoent() routine is * available to close whatever was being used for protocol queries. */ -#$d_endpent HAS_ENDPROTOENT /**/ +#define HAS_ENDPROTOENT /**/ /* HAS_ENDPWENT: * This symbol, if defined, indicates that the getgrent routine is * available for finalizing sequential access of the passwd database. */ -#$d_endpwent HAS_ENDPWENT /**/ +/*#define HAS_ENDPWENT /**/ /* HAS_ENDSERVENT: * This symbol, if defined, indicates that the endservent() routine is * available to close whatever was being used for service queries. */ -#$d_endsent HAS_ENDSERVENT /**/ +#define HAS_ENDSERVENT /**/ /* HAS_FD_SET: * This symbol, when defined, indicates presence of the fd_set typedef * in <sys/types.h> */ -#$d_fd_set HAS_FD_SET /**/ +/*#define HAS_FD_SET /**/ /* FLEXFILENAMES: * This symbol, if defined, indicates that the system supports filenames * longer than 14 characters. */ -#$d_flexfnam FLEXFILENAMES /**/ +#define FLEXFILENAMES /**/ /* HAS_FPOS64_T: * This symbol will be defined if the C compiler supports fpos64_t. */ -#$d_fpos64_t HAS_FPOS64_T /**/ +/*#define HAS_FPOS64_T /**/ /* HAS_FREXPL: * This symbol, if defined, indicates that the frexpl routine is * available to break a long double floating-point number into * a normalized fraction and an integral power of 2. */ -#$d_frexpl HAS_FREXPL /**/ +/*#define HAS_FREXPL /**/ /* HAS_STRUCT_FS_DATA: * This symbol, if defined, indicates that the struct fs_data * to do statfs() is supported. */ -#$d_fs_data_s HAS_STRUCT_FS_DATA /**/ +/*#define HAS_STRUCT_FS_DATA /**/ /* HAS_FSEEKO: * This symbol, if defined, indicates that the fseeko routine is * available to fseek beyond 32 bits (useful for ILP32 hosts). */ -#$d_fseeko HAS_FSEEKO /**/ +/*#define HAS_FSEEKO /**/ /* HAS_FSTATFS: * This symbol, if defined, indicates that the fstatfs routine is * available to stat filesystems by file descriptors. */ -#$d_fstatfs HAS_FSTATFS /**/ +/*#define HAS_FSTATFS /**/ /* HAS_FTELLO: * This symbol, if defined, indicates that the ftello routine is * available to ftell beyond 32 bits (useful for ILP32 hosts). */ -#$d_ftello HAS_FTELLO /**/ +/*#define HAS_FTELLO /**/ /* Gconvert: * This preprocessor macro is defined to convert a floating point @@ -1388,49 +1364,49 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * d_Gconvert='sprintf((b),"%.*g",(n),(x))' * The last two assume trailing zeros should not be kept. */ -#define Gconvert(x,n,t,b) $d_Gconvert +#define Gconvert(x,n,t,b) sprintf((b),"%.*g",(n),(x)) /* HAS_GETCWD: * This symbol, if defined, indicates that the getcwd routine is * available to get the current working directory. */ -#$d_getcwd HAS_GETCWD /**/ +#define HAS_GETCWD /**/ /* HAS_GETESPWNAM: * This symbol, if defined, indicates that the getespwnam system call is * available to retrieve enchanced (shadow) password entries by name. */ -#$d_getespwnam HAS_GETESPWNAM /**/ +/*#define HAS_GETESPWNAM /**/ /* HAS_GETFSSTAT: * This symbol, if defined, indicates that the getfsstat routine is * available to stat filesystems in bulk. */ -#$d_getfsstat HAS_GETFSSTAT /**/ +/*#define HAS_GETFSSTAT /**/ /* HAS_GETGRENT: * This symbol, if defined, indicates that the getgrent routine is * available for sequential access of the group database. */ -#$d_getgrent HAS_GETGRENT /**/ +/*#define HAS_GETGRENT /**/ /* HAS_GETHOSTBYADDR: * This symbol, if defined, indicates that the gethostbyaddr() routine is * available to look up hosts by their IP addresses. */ -#$d_gethbyaddr HAS_GETHOSTBYADDR /**/ +#define HAS_GETHOSTBYADDR /**/ /* HAS_GETHOSTBYNAME: * This symbol, if defined, indicates that the gethostbyname() routine is * available to look up host names in some data base or other. */ -#$d_gethbyname HAS_GETHOSTBYNAME /**/ +#define HAS_GETHOSTBYNAME /**/ /* HAS_GETHOSTENT: * This symbol, if defined, indicates that the gethostent() routine is * available to look up host names in some data base or another. */ -#$d_gethent HAS_GETHOSTENT /**/ +#define HAS_GETHOSTENT /**/ /* HAS_GETHOSTNAME: * This symbol, if defined, indicates that the C program may use the @@ -1454,11 +1430,11 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * contents of PHOSTNAME as a command to feed to the popen() routine * to derive the host name. */ -#$d_gethname HAS_GETHOSTNAME /**/ -#$d_uname HAS_UNAME /**/ -#$d_phostname HAS_PHOSTNAME /**/ +#define HAS_GETHOSTNAME /**/ +#define HAS_UNAME /**/ +/*#define HAS_PHOSTNAME /**/ #ifdef HAS_PHOSTNAME -#define PHOSTNAME "$aphostname" /* How to get the host name */ +#define PHOSTNAME "" /* How to get the host name */ #endif /* HAS_GETHOST_PROTOS: @@ -1467,37 +1443,37 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * gethostbyaddr(). Otherwise, it is up to the program to guess * them. See netdbtype.U for probing for various Netdb_xxx_t types. */ -#$d_gethostprotos HAS_GETHOST_PROTOS /**/ +#define HAS_GETHOST_PROTOS /**/ /* HAS_GETMNT: * This symbol, if defined, indicates that the getmnt routine is * available to get filesystem mount info by filename. */ -#$d_getmnt HAS_GETMNT /**/ +/*#define HAS_GETMNT /**/ /* HAS_GETMNTENT: * This symbol, if defined, indicates that the getmntent routine is * available to iterate through mounted file systems to get their info. */ -#$d_getmntent HAS_GETMNTENT /**/ +/*#define HAS_GETMNTENT /**/ /* HAS_GETNETBYADDR: * This symbol, if defined, indicates that the getnetbyaddr() routine is * available to look up networks by their IP addresses. */ -#$d_getnbyaddr HAS_GETNETBYADDR /**/ +#define HAS_GETNETBYADDR /**/ /* HAS_GETNETBYNAME: * This symbol, if defined, indicates that the getnetbyname() routine is * available to look up networks by their names. */ -#$d_getnbyname HAS_GETNETBYNAME /**/ +#define HAS_GETNETBYNAME /**/ /* HAS_GETNETENT: * This symbol, if defined, indicates that the getnetent() routine is * available to look up network names in some data base or another. */ -#$d_getnent HAS_GETNETENT /**/ +#define HAS_GETNETENT /**/ /* HAS_GETNET_PROTOS: * This symbol, if defined, indicates that <netdb.h> includes @@ -1505,13 +1481,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * getnetbyaddr(). Otherwise, it is up to the program to guess * them. See netdbtype.U for probing for various Netdb_xxx_t types. */ -#$d_getnetprotos HAS_GETNET_PROTOS /**/ +#define HAS_GETNET_PROTOS /**/ /* HAS_GETPROTOENT: * This symbol, if defined, indicates that the getprotoent() routine is * available to look up protocols in some data base or another. */ -#$d_getpent HAS_GETPROTOENT /**/ +#define HAS_GETPROTOENT /**/ /* HAS_GETPROTOBYNAME: * This symbol, if defined, indicates that the getprotobyname() @@ -1521,8 +1497,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates that the getprotobynumber() * routine is available to look up protocols by their number. */ -#$d_getpbyname HAS_GETPROTOBYNAME /**/ -#$d_getpbynumber HAS_GETPROTOBYNUMBER /**/ +#define HAS_GETPROTOBYNAME /**/ +#define HAS_GETPROTOBYNUMBER /**/ /* HAS_GETPROTO_PROTOS: * This symbol, if defined, indicates that <netdb.h> includes @@ -1530,26 +1506,26 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * getprotobyaddr(). Otherwise, it is up to the program to guess * them. See netdbtype.U for probing for various Netdb_xxx_t types. */ -#$d_getprotoprotos HAS_GETPROTO_PROTOS /**/ +#define HAS_GETPROTO_PROTOS /**/ /* HAS_GETPRPWNAM: * This symbol, if defined, indicates that the getprpwnam system call is * available to retrieve protected (shadow) password entries by name. */ -#$d_getprpwnam HAS_GETPRPWNAM /**/ +/*#define HAS_GETPRPWNAM /**/ /* HAS_GETPWENT: * This symbol, if defined, indicates that the getpwent routine is * available for sequential access of the passwd database. * If this is not available, the older getpw() function may be available. */ -#$d_getpwent HAS_GETPWENT /**/ +/*#define HAS_GETPWENT /**/ /* HAS_GETSERVENT: * This symbol, if defined, indicates that the getservent() routine is * available to look up network services in some data base or another. */ -#$d_getsent HAS_GETSERVENT /**/ +#define HAS_GETSERVENT /**/ /* HAS_GETSERV_PROTOS: * This symbol, if defined, indicates that <netdb.h> includes @@ -1557,13 +1533,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * getservbyaddr(). Otherwise, it is up to the program to guess * them. See netdbtype.U for probing for various Netdb_xxx_t types. */ -#$d_getservprotos HAS_GETSERV_PROTOS /**/ +#define HAS_GETSERV_PROTOS /**/ /* HAS_GETSPNAM: * This symbol, if defined, indicates that the getspnam system call is * available to retrieve SysV shadow password entries by name. */ -#$d_getspnam HAS_GETSPNAM /**/ +/*#define HAS_GETSPNAM /**/ /* HAS_GETSERVBYNAME: * This symbol, if defined, indicates that the getservbyname() @@ -1573,14 +1549,14 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates that the getservbyport() * routine is available to look up services by their port. */ -#$d_getsbyname HAS_GETSERVBYNAME /**/ -#$d_getsbyport HAS_GETSERVBYPORT /**/ +#define HAS_GETSERVBYNAME /**/ +#define HAS_GETSERVBYPORT /**/ /* HAS_GNULIBC: * This symbol, if defined, indicates to the C program that * the GNU C library is being used. */ -#$d_gnulibc HAS_GNULIBC /**/ +/*#define HAS_GNULIBC /**/ #if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE) # define _GNU_SOURCE #endif @@ -1588,7 +1564,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates that the hasmntopt routine is * available to query the mount options of file systems. */ -#$d_hasmntopt HAS_HASMNTOPT /**/ +/*#define HAS_HASMNTOPT /**/ /* HAS_HTONL: * This symbol, if defined, indicates that the htonl() routine (and @@ -1610,48 +1586,48 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * friends htonl() htons() ntohl()) are available to do network * order byte swapping. */ -#$d_htonl HAS_HTONL /**/ -#$d_htonl HAS_HTONS /**/ -#$d_htonl HAS_NTOHL /**/ -#$d_htonl HAS_NTOHS /**/ +#define HAS_HTONL /**/ +#define HAS_HTONS /**/ +#define HAS_NTOHL /**/ +#define HAS_NTOHS /**/ /* HAS_ICONV: * This symbol, if defined, indicates that the iconv routine is * available to do character set conversions. */ -#$d_iconv HAS_ICONV /**/ +/*#define HAS_ICONV /**/ /* HAS_INT64_T: * This symbol will defined if the C compiler supports int64_t. * Usually the <inttypes.h> needs to be included, but sometimes * <sys/types.h> is enough. */ -#$d_int64_t HAS_INT64_T /**/ +/*#define HAS_INT64_T /**/ /* HAS_ISASCII: * This manifest constant lets the C program know that isascii * is available. */ -#$d_isascii HAS_ISASCII /**/ +#define HAS_ISASCII /**/ /* HAS_ISNAN: * This symbol, if defined, indicates that the isnan routine is * available to check whether a double is a NaN. */ -#$d_isnan HAS_ISNAN /**/ +/*#define HAS_ISNAN /**/ /* HAS_ISNANL: * This symbol, if defined, indicates that the isnanl routine is * available to check whether a long double is a NaN. */ -#$d_isnanl HAS_ISNANL /**/ +/*#define HAS_ISNANL /**/ /* HAS_LCHOWN: * This symbol, if defined, indicates that the lchown routine is * available to operate on a symbolic link (instead of following the * link). */ -#$d_lchown HAS_LCHOWN /**/ +/*#define HAS_LCHOWN /**/ /* HAS_LDBL_DIG: * This symbol, if defined, indicates that this system's <float.h> @@ -1659,7 +1635,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * of significant digits in a long double precision number. Unlike * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined. */ -#$d_ldbl_dig HAS_LDBL_DIG /* */ +#define HAS_LDBL_DIG /* */ /* HAS_LONG_DOUBLE: * This symbol will be defined if the C compiler supports long @@ -1670,9 +1646,9 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * C preprocessor can make decisions based on it. It is only * defined if the system supports long doubles. */ -#$d_longdbl HAS_LONG_DOUBLE /**/ +#define HAS_LONG_DOUBLE /**/ #ifdef HAS_LONG_DOUBLE -#define LONG_DOUBLESIZE $longdblsize /**/ +#define LONG_DOUBLESIZE 8 /**/ #endif /* HAS_LONG_LONG: @@ -1683,9 +1659,9 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * C preprocessor can make decisions based on it. It is only * defined if the system supports long long. */ -#$d_longlong HAS_LONG_LONG /**/ +/*#define HAS_LONG_LONG /**/ #ifdef HAS_LONG_LONG -#define LONGLONGSIZE $longlongsize /**/ +#define LONGLONGSIZE _error_ /**/ #endif /* HAS_LSEEK_PROTO: @@ -1694,39 +1670,39 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * to the program to supply one. A good guess is * extern off_t lseek(int, off_t, int); */ -#$d_lseekproto HAS_LSEEK_PROTO /**/ +#define HAS_LSEEK_PROTO /**/ /* HAS_MADVISE: * This symbol, if defined, indicates that the madvise system call is * available to map a file into memory. */ -#$d_madvise HAS_MADVISE /**/ +/*#define HAS_MADVISE /**/ /* HAS_MEMCHR: * This symbol, if defined, indicates that the memchr routine is available * to locate characters within a C string. */ -#$d_memchr HAS_MEMCHR /**/ +#define HAS_MEMCHR /**/ /* HAS_MKDTEMP: * This symbol, if defined, indicates that the mkdtemp routine is * available to exclusively create a uniquely named temporary directory. */ -#$d_mkdtemp HAS_MKDTEMP /**/ +/*#define HAS_MKDTEMP /**/ /* HAS_MKSTEMP: * This symbol, if defined, indicates that the mkstemp routine is * available to exclusively create and open a uniquely named * temporary file. */ -#$d_mkstemp HAS_MKSTEMP /**/ +/*#define HAS_MKSTEMP /**/ /* HAS_MKSTEMPS: * This symbol, if defined, indicates that the mkstemps routine is * available to excluslvely create and open a uniquely named * (with a suffix) temporary file. */ -#$d_mkstemps HAS_MKSTEMPS /**/ +/*#define HAS_MKSTEMPS /**/ /* HAS_MMAP: * This symbol, if defined, indicates that the mmap system call is @@ -1737,38 +1713,38 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * (and simultaneously the type of the first argument). * Usually set to 'void *' or 'cadd_t'. */ -#$d_mmap HAS_MMAP /**/ -#define Mmap_t $mmaptype /**/ +#define HAS_MMAP /**/ +#define Mmap_t void * /**/ /* HAS_MODFL: * This symbol, if defined, indicates that the modfl routine is * available to split a long double x into a fractional part f and * an integer part i such that |f| < 1.0 and (f + i) = x. */ -#$d_modfl HAS_MODFL /**/ +/*#define HAS_MODFL /**/ /* HAS_MPROTECT: * This symbol, if defined, indicates that the mprotect system call is * available to modify the access protection of a memory mapped file. */ -#$d_mprotect HAS_MPROTECT /**/ +/*#define HAS_MPROTECT /**/ /* HAS_MSG: * This symbol, if defined, indicates that the entire msg*(2) library is * supported (IPC mechanism based on message queues). */ -#$d_msg HAS_MSG /**/ +/*#define HAS_MSG /**/ /* HAS_OFF64_T: * This symbol will be defined if the C compiler supports off64_t. */ -#$d_off64_t HAS_OFF64_T /**/ +/*#define HAS_OFF64_T /**/ /* HAS_OPEN3: * This manifest constant lets the C program know that the three * argument form of open(2) is available. */ -#$d_open3 HAS_OPEN3 /**/ +#define HAS_OPEN3 /**/ /* OLD_PTHREAD_CREATE_JOINABLE: * This symbol, if defined, indicates how to create pthread @@ -1778,7 +1754,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * If defined, known values are PTHREAD_CREATE_UNDETACHED * and __UNDETACHED. */ -#$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/ +/*#define OLD_PTHREAD_CREATE_JOINABLE /**/ /* HAS_PTHREAD_YIELD: * This symbol, if defined, indicates that the pthread_yield @@ -1795,9 +1771,9 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * routine is available to yield the execution of the current * thread. sched_yield is preferable to pthread_yield. */ -#$d_pthread_yield HAS_PTHREAD_YIELD /**/ -#define SCHED_YIELD $sched_yield /**/ -#$d_sched_yield HAS_SCHED_YIELD /**/ +/*#define HAS_PTHREAD_YIELD /**/ +#define SCHED_YIELD /**/ +/*#define HAS_SCHED_YIELD /**/ /* HAS_SAFE_BCOPY: * This symbol, if defined, indicates that the bcopy routine is available @@ -1805,7 +1781,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * probably use memmove() or memcpy(). If neither is defined, roll your * own version. */ -#$d_safebcpy HAS_SAFE_BCOPY /**/ +/*#define HAS_SAFE_BCOPY /**/ /* HAS_SAFE_MEMCPY: * This symbol, if defined, indicates that the memcpy routine is available @@ -1813,94 +1789,94 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * probably use memmove() or memcpy(). If neither is defined, roll your * own version. */ -#$d_safemcpy HAS_SAFE_MEMCPY /**/ +/*#define HAS_SAFE_MEMCPY /**/ /* HAS_SANE_MEMCMP: * This symbol, if defined, indicates that the memcmp routine is available * and can be used to compare relative magnitudes of chars with their high * bits set. If it is not defined, roll your own version. */ -#$d_sanemcmp HAS_SANE_MEMCMP /**/ +#define HAS_SANE_MEMCMP /**/ /* HAS_SEM: * This symbol, if defined, indicates that the entire sem*(2) library is * supported. */ -#$d_sem HAS_SEM /**/ +/*#define HAS_SEM /**/ /* HAS_SETGRENT: * This symbol, if defined, indicates that the setgrent routine is * available for initializing sequential access of the group database. */ -#$d_setgrent HAS_SETGRENT /**/ +/*#define HAS_SETGRENT /**/ /* HAS_SETGROUPS: * This symbol, if defined, indicates that the setgroups() routine is * available to set the list of process groups. If unavailable, multiple * groups are probably not supported. */ -#$d_setgrps HAS_SETGROUPS /**/ +/*#define HAS_SETGROUPS /**/ /* HAS_SETHOSTENT: * This symbol, if defined, indicates that the sethostent() routine is * available. */ -#$d_sethent HAS_SETHOSTENT /**/ +#define HAS_SETHOSTENT /**/ /* HAS_SETNETENT: * This symbol, if defined, indicates that the setnetent() routine is * available. */ -#$d_setnent HAS_SETNETENT /**/ +#define HAS_SETNETENT /**/ /* HAS_SETPROTOENT: * This symbol, if defined, indicates that the setprotoent() routine is * available. */ -#$d_setpent HAS_SETPROTOENT /**/ +#define HAS_SETPROTOENT /**/ /* HAS_SETPROCTITLE: * This symbol, if defined, indicates that the setproctitle routine is * available to set process title. */ -#$d_setproctitle HAS_SETPROCTITLE /**/ +/*#define HAS_SETPROCTITLE /**/ /* HAS_SETPWENT: * This symbol, if defined, indicates that the setpwent routine is * available for initializing sequential access of the passwd database. */ -#$d_setpwent HAS_SETPWENT /**/ +/*#define HAS_SETPWENT /**/ /* HAS_SETSERVENT: * This symbol, if defined, indicates that the setservent() routine is * available. */ -#$d_setsent HAS_SETSERVENT /**/ +#define HAS_SETSERVENT /**/ /* HAS_SETVBUF: * This symbol, if defined, indicates that the setvbuf routine is * available to change buffering on an open stdio stream. * to a line-buffered mode. */ -#$d_setvbuf HAS_SETVBUF /**/ +#define HAS_SETVBUF /**/ /* USE_SFIO: * This symbol, if defined, indicates that sfio should * be used. */ -#$d_sfio USE_SFIO /**/ +/*#define USE_SFIO /**/ /* HAS_SHM: * This symbol, if defined, indicates that the entire shm*(2) library is * supported. */ -#$d_shm HAS_SHM /**/ +/*#define HAS_SHM /**/ /* HAS_SIGACTION: * This symbol, if defined, indicates that Vr4's sigaction() routine * is available. */ -#$d_sigaction HAS_SIGACTION /**/ +#define HAS_SIGACTION /**/ /* HAS_SIGSETJMP: * This variable indicates to the C program that the sigsetjmp() @@ -1922,7 +1898,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * traditional longjmp() if siglongjmp isn't available. * See HAS_SIGSETJMP. */ -#$d_sigsetjmp HAS_SIGSETJMP /**/ +#define HAS_SIGSETJMP /**/ #ifdef HAS_SIGSETJMP #define Sigjmp_buf sigjmp_buf #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask)) @@ -1971,33 +1947,33 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * Checking just with #ifdef might not be enough because this symbol * has been known to be an enum. */ -#$d_socket HAS_SOCKET /**/ -#$d_sockpair HAS_SOCKETPAIR /**/ -#$d_msg_ctrunc HAS_MSG_CTRUNC /**/ -#$d_msg_dontroute HAS_MSG_DONTROUTE /**/ -#$d_msg_oob HAS_MSG_OOB /**/ -#$d_msg_peek HAS_MSG_PEEK /**/ -#$d_msg_proxy HAS_MSG_PROXY /**/ -#$d_scm_rights HAS_SCM_RIGHTS /**/ +#define HAS_SOCKET /**/ +/*#define HAS_SOCKETPAIR /**/ +/*#define HAS_MSG_CTRUNC /**/ +/*#define HAS_MSG_DONTROUTE /**/ +/*#define HAS_MSG_OOB /**/ +/*#define HAS_MSG_PEEK /**/ +/*#define HAS_MSG_PROXY /**/ +/*#define HAS_SCM_RIGHTS /**/ /* HAS_SOCKS5_INIT: * This symbol, if defined, indicates that the socks5_init routine is * available to initialize SOCKS 5. */ -#$d_socks5_init HAS_SOCKS5_INIT /**/ +/*#define HAS_SOCKS5_INIT /**/ /* HAS_SQRTL: * This symbol, if defined, indicates that the sqrtl routine is * available to do long double square roots. */ -#$d_sqrtl HAS_SQRTL /**/ +/*#define HAS_SQRTL /**/ /* USE_STAT_BLOCKS: * This symbol is defined if this system has a stat structure declaring * st_blksize and st_blocks. */ #ifndef USE_STAT_BLOCKS -#$d_statblks USE_STAT_BLOCKS /**/ +/*#define USE_STAT_BLOCKS /**/ #endif /* HAS_STRUCT_STATFS_F_FLAGS: @@ -2009,19 +1985,19 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * have statfs() and struct statfs, they have ustat() and getmnt() * with struct ustat and struct fs_data. */ -#$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/ +/*#define HAS_STRUCT_STATFS_F_FLAGS /**/ /* HAS_STRUCT_STATFS: * This symbol, if defined, indicates that the struct statfs * to do statfs() is supported. */ -#$d_statfs_s HAS_STRUCT_STATFS /**/ +/*#define HAS_STRUCT_STATFS /**/ /* HAS_FSTATVFS: * This symbol, if defined, indicates that the fstatvfs routine is * available to stat filesystems by file descriptors. */ -#$d_fstatvfs HAS_FSTATVFS /**/ +/*#define HAS_FSTATVFS /**/ /* USE_STDIO_PTR: * This symbol is defined if the _ptr and _cnt fields (or similar) @@ -2048,23 +2024,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol is defined if the FILE_cnt macro can be used as an * lvalue. */ -/* STDIO_PTR_LVAL_SETS_CNT: - * This symbol is defined if using the FILE_ptr macro as an lvalue - * to increase the pointer by n has the side effect of decreasing the - * value of File_cnt(fp) by n. - */ -/* STDIO_PTR_LVAL_NOCHANGE_CNT: - * This symbol is defined if using the FILE_ptr macro as an lvalue - * to increase the pointer by n leaves File_cnt(fp) unchanged. - */ -#$d_stdstdio USE_STDIO_PTR /**/ +#define USE_STDIO_PTR /**/ #ifdef USE_STDIO_PTR -#define FILE_ptr(fp) $stdio_ptr -#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/ -#define FILE_cnt(fp) $stdio_cnt -#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/ -#$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/ -#$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/ +#define FILE_ptr(fp) ((fp)->_ptr) +#define STDIO_PTR_LVALUE /**/ +#define FILE_cnt(fp) ((fp)->_cnt) +#define STDIO_CNT_LVALUE /**/ #endif /* USE_STDIO_BASE: @@ -2087,10 +2052,10 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * structure pointed to its argument. This macro will always be defined * if USE_STDIO_BASE is defined. */ -#$d_stdiobase USE_STDIO_BASE /**/ +#define USE_STDIO_BASE /**/ #ifdef USE_STDIO_BASE -#define FILE_base(fp) $stdio_base -#define FILE_bufsiz(fp) $stdio_bufsiz +#define FILE_base(fp) ((fp)->_base) +#define FILE_bufsiz(fp) ((fp)->_cnt + (fp)->_ptr - (fp)->_base) #endif /* HAS_STRERROR: @@ -2108,33 +2073,33 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * not available to translate error numbers to strings but sys_errlist[] * array is there. */ -#$d_strerror HAS_STRERROR /**/ -#$d_syserrlst HAS_SYS_ERRLIST /**/ -#define Strerror(e) $d_strerrm +#define HAS_STRERROR /**/ +#define HAS_SYS_ERRLIST /**/ +#define Strerror(e) strerror(e) /* HAS_STRTOLD: * This symbol, if defined, indicates that the strtold routine is * available to convert strings to long doubles. */ -#$d_strtold HAS_STRTOLD /**/ +/*#define HAS_STRTOLD /**/ /* HAS_STRTOLL: * This symbol, if defined, indicates that the strtoll routine is * available to convert strings to long longs. */ -#$d_strtoll HAS_STRTOLL /**/ +/*#define HAS_STRTOLL /**/ /* HAS_STRTOULL: * This symbol, if defined, indicates that the strtoull routine is * available to convert strings to unsigned long longs. */ -#$d_strtoull HAS_STRTOULL /**/ +/*#define HAS_STRTOULL /**/ /* HAS_STRTOUQ: * This symbol, if defined, indicates that the strtouq routine is * available to convert strings to unsigned long longs (quads). */ -#$d_strtouq HAS_STRTOUQ /**/ +/*#define HAS_STRTOUQ /**/ /* HAS_TELLDIR_PROTO: * This symbol, if defined, indicates that the system provides @@ -2142,21 +2107,21 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * to the program to supply one. A good guess is * extern long telldir _((DIR*)); */ -#$d_telldirproto HAS_TELLDIR_PROTO /**/ +/*#define HAS_TELLDIR_PROTO /**/ /* Time_t: * This symbol holds the type returned by time(). It can be long, * or time_t on BSD sites (in which case <sys/types.h> should be * included). */ -#define Time_t $timetype /* Time type */ +#define Time_t time_t /* Time type */ /* HAS_TIMES: * This symbol, if defined, indicates that the times() routine exists. * Note that this became obsolete on some systems (SUNOS), which now * use getrusage(). It may be necessary to include <sys/times.h>. */ -#$d_times HAS_TIMES /**/ +#define HAS_TIMES /**/ /* HAS_UNION_SEMUN: * This symbol, if defined, indicates that the union semun is @@ -2176,20 +2141,20 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates that struct semid_ds * is * used for semctl IPC_STAT. */ -#$d_union_semun HAS_UNION_SEMUN /**/ -#$d_semctl_semun USE_SEMCTL_SEMUN /**/ -#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/ +/*#define HAS_UNION_SEMUN /**/ +/*#define USE_SEMCTL_SEMUN /**/ +/*#define USE_SEMCTL_SEMID_DS /**/ /* HAS_USTAT: * This symbol, if defined, indicates that the ustat system call is * available to query file system statistics by dev_t. */ -#$d_ustat HAS_USTAT /**/ +/*#define HAS_USTAT /**/ /* HAS_VFORK: * This symbol, if defined, indicates that vfork() exists. */ -#$d_vfork HAS_VFORK /**/ +/*#define HAS_VFORK /**/ /* Signal_t: * This symbol's value is either "void" or "int", corresponding to the @@ -2197,7 +2162,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * a signal handler using "Signal_t (*handler)()", and define the * handler using "Signal_t handler(sig)". */ -#define Signal_t $signal_t /* Signal handler's return type */ +#define Signal_t void /* Signal handler's return type */ /* HAS_VPRINTF: * This symbol, if defined, indicates that the vprintf routine is available @@ -2210,26 +2175,26 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * is up to the package author to declare vsprintf correctly based on the * symbol. */ -#$d_vprintf HAS_VPRINTF /**/ -#$d_charvspr USE_CHAR_VSPRINTF /**/ +#define HAS_VPRINTF /**/ +/*#define USE_CHAR_VSPRINTF /**/ /* USE_DYNAMIC_LOADING: * This symbol, if defined, indicates that dynamic loading of * some sort is available. */ -#$usedl USE_DYNAMIC_LOADING /**/ +/*#define USE_DYNAMIC_LOADING /**/ /* DOUBLESIZE: * This symbol contains the size of a double, so that the C preprocessor * can make decisions based on it. */ -#define DOUBLESIZE $doublesize /**/ +#define DOUBLESIZE 8 /**/ /* EBCDIC: * This symbol, if defined, indicates that this system uses * EBCDIC encoding. */ -#$ebcdic EBCDIC /**/ +/*#define EBCDIC /**/ /* FFLUSH_NULL: * This symbol, if defined, tells that fflush(NULL) does flush @@ -2242,31 +2207,31 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * Note that if fflushNULL is defined, fflushall will not * even be probed for and will be left undefined. */ -#$fflushNULL FFLUSH_NULL /**/ -#$fflushall FFLUSH_ALL /**/ +#define FFLUSH_NULL /**/ +/*#define FFLUSH_ALL /**/ /* Fpos_t: * This symbol holds the type used to declare file positions in libc. * It can be fpos_t, long, uint, etc... It may be necessary to include * <sys/types.h> to get any typedef'ed information. */ -#define Fpos_t $fpostype /* File position type */ +#define Fpos_t fpos_t /* File position type */ /* Gid_t_f: * This symbol defines the format string used for printing a Gid_t. */ -#define Gid_t_f $gidformat /**/ +#define Gid_t_f "d" /**/ /* Gid_t_sign: * This symbol holds the signedess of a Gid_t. * 1 for unsigned, -1 for signed. */ -#define Gid_t_sign $gidsign /* GID sign */ +#define Gid_t_sign -1 /* GID sign */ /* Gid_t_size: * This symbol holds the size of a Gid_t in bytes. */ -#define Gid_t_size $gidsize /* GID size */ +#define Gid_t_size 4 /* GID size */ /* Gid_t: * This symbol holds the return type of getgid() and the type of @@ -2275,7 +2240,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * gid_t, etc... It may be necessary to include <sys/types.h> to get * any typedef'ed information. */ -#define Gid_t $gidtype /* Type for getgid(), etc... */ +#define Gid_t gid_t /* Type for getgid(), etc... */ /* Groups_t: * This symbol holds the type used for the second argument to @@ -2287,7 +2252,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * getgroups() or setgroups().. */ #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS) -#define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */ +#define Groups_t gid_t /* Type for 2nd arg to [sg]etgroups() */ #endif /* DB_Prefix_t: @@ -2300,8 +2265,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * in the <db.h> header file. In older versions of DB, it was * int, while in newer ones it is size_t. */ -#define DB_Hash_t $db_hashtype /**/ -#define DB_Prefix_t $db_prefixtype /**/ +#define DB_Hash_t int /**/ +#define DB_Prefix_t int /**/ /* I_GRP: * This symbol, if defined, indicates to the C program that it should @@ -2311,74 +2276,74 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates to the C program that struct group * in <grp.h> contains gr_passwd. */ -#$i_grp I_GRP /**/ -#$d_grpasswd GRPASSWD /**/ +#define I_GRP /**/ +/*#define GRPASSWD /**/ /* I_ICONV: * This symbol, if defined, indicates that <iconv.h> exists and * should be included. */ -#$i_iconv I_ICONV /**/ +/*#define I_ICONV /**/ /* I_IEEEFP: * This symbol, if defined, indicates that <ieeefp.h> exists and * should be included. */ -#$i_ieeefp I_IEEEFP /**/ +/*#define I_IEEEFP /**/ /* I_INTTYPES: * This symbol, if defined, indicates to the C program that it should * include <inttypes.h>. */ -#$i_inttypes I_INTTYPES /**/ +/*#define I_INTTYPES /**/ /* I_LIBUTIL: * This symbol, if defined, indicates that <libutil.h> exists and * should be included. */ -#$i_libutil I_LIBUTIL /**/ +/*#define I_LIBUTIL /**/ /* I_MACH_CTHREADS: * This symbol, if defined, indicates to the C program that it should * include <mach/cthreads.h>. */ -#$i_machcthr I_MACH_CTHREADS /**/ +/*#define I_MACH_CTHREADS /**/ /* I_MNTENT: * This symbol, if defined, indicates that <mntent.h> exists and * should be included. */ -#$i_mntent I_MNTENT /**/ +/*#define I_MNTENT /**/ /* I_NETDB: * This symbol, if defined, indicates that <netdb.h> exists and * should be included. */ -#$i_netdb I_NETDB /**/ +#define I_NETDB /**/ /* I_NETINET_TCP: * This symbol, if defined, indicates to the C program that it should * include <netinet/tcp.h>. */ -#$i_netinettcp I_NETINET_TCP /**/ +#define I_NETINET_TCP /**/ /* I_POLL: * This symbol, if defined, indicates that <poll.h> exists and * should be included. */ -#$i_poll I_POLL /**/ +/*#define I_POLL /**/ /* I_PROT: * This symbol, if defined, indicates that <prot.h> exists and * should be included. */ -#$i_prot I_PROT /**/ +/*#define I_PROT /**/ /* I_PTHREAD: * This symbol, if defined, indicates to the C program that it should * include <pthread.h>. */ -#$i_pthread I_PTHREAD /**/ +/*#define I_PTHREAD /**/ /* I_PWD: * This symbol, if defined, indicates to the C program that it should @@ -2416,80 +2381,80 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates to the C program that struct passwd * contains pw_passwd. */ -#$i_pwd I_PWD /**/ -#$d_pwquota PWQUOTA /**/ -#$d_pwage PWAGE /**/ -#$d_pwchange PWCHANGE /**/ -#$d_pwclass PWCLASS /**/ -#$d_pwexpire PWEXPIRE /**/ -#$d_pwcomment PWCOMMENT /**/ -#$d_pwgecos PWGECOS /**/ -#$d_pwpasswd PWPASSWD /**/ +#define I_PWD /**/ +/*#define PWQUOTA /**/ +/*#define PWAGE /**/ +/*#define PWCHANGE /**/ +/*#define PWCLASS /**/ +/*#define PWEXPIRE /**/ +/*#define PWCOMMENT /**/ +/*#define PWGECOS /**/ +/*#define PWPASSWD /**/ /* I_SHADOW: * This symbol, if defined, indicates that <shadow.h> exists and * should be included. */ -#$i_shadow I_SHADOW /**/ +/*#define I_SHADOW /**/ /* I_SOCKS: * This symbol, if defined, indicates that <socks.h> exists and * should be included. */ -#$i_socks I_SOCKS /**/ +/*#define I_SOCKS /**/ /* I_SUNMATH: * This symbol, if defined, indicates that <sunmath.h> exists and * should be included. */ -#$i_sunmath I_SUNMATH /**/ +/*#define I_SUNMATH /**/ /* I_SYSLOG: * This symbol, if defined, indicates that <syslog.h> exists and * should be included. */ -#$i_syslog I_SYSLOG /**/ +/*#define I_SYSLOG /**/ /* I_SYSMODE: * This symbol, if defined, indicates that <sys/mode.h> exists and * should be included. */ -#$i_sysmode I_SYSMODE /**/ +/*#define I_SYSMODE /**/ /* I_SYS_MOUNT: * This symbol, if defined, indicates that <sys/mount.h> exists and * should be included. */ -#$i_sysmount I_SYS_MOUNT /**/ +/*#define I_SYS_MOUNT /**/ /* I_SYS_STATFS: * This symbol, if defined, indicates that <sys/statfs.h> exists. */ -#$i_sysstatfs I_SYS_STATFS /**/ +/*#define I_SYS_STATFS /**/ /* I_SYS_STATVFS: * This symbol, if defined, indicates that <sys/statvfs.h> exists and * should be included. */ -#$i_sysstatvfs I_SYS_STATVFS /**/ +/*#define I_SYS_STATVFS /**/ /* I_SYSUIO: * This symbol, if defined, indicates that <sys/uio.h> exists and * should be included. */ -#$i_sysuio I_SYSUIO /**/ +/*#define I_SYSUIO /**/ /* I_SYSUTSNAME: * This symbol, if defined, indicates that <sys/utsname.h> exists and * should be included. */ -#$i_sysutsname I_SYSUTSNAME /**/ +#define I_SYSUTSNAME /**/ /* I_SYS_VFS: * This symbol, if defined, indicates that <sys/vfs.h> exists and * should be included. */ -#$i_sysvfs I_SYS_VFS /**/ +/*#define I_SYS_VFS /**/ /* I_TIME: * This symbol, if defined, indicates to the C program that it should @@ -2503,15 +2468,15 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates to the C program that it should * include <sys/time.h> with KERNEL defined. */ -#$i_time I_TIME /**/ -#$i_systime I_SYS_TIME /**/ -#$i_systimek I_SYS_TIME_KERNEL /**/ +/*#define I_TIME /**/ +#define I_SYS_TIME /**/ +/*#define I_SYS_TIME_KERNEL /**/ /* I_USTAT: * This symbol, if defined, indicates that <ustat.h> exists and * should be included. */ -#$i_ustat I_USTAT /**/ +/*#define I_USTAT /**/ /* PERL_INC_VERSION_LIST: * This variable specifies the list of subdirectories in over @@ -2520,13 +2485,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * for a C initialization string. See the inc_version_list entry * in Porting/Glossary for more details. */ -#define PERL_INC_VERSION_LIST $inc_version_list_init /**/ +#define PERL_INC_VERSION_LIST 0 /**/ /* INSTALL_USR_BIN_PERL: * This symbol, if defined, indicates that Perl is to be installed * also as /usr/bin/perl. */ -#$installusrbinperl INSTALL_USR_BIN_PERL /**/ +/*#define INSTALL_USR_BIN_PERL /**/ /* PERL_PRIfldbl: * This symbol, if defined, contains the string used by stdio to @@ -2544,10 +2509,10 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, contains the string used by stdio to * format long doubles (format 'f') for input. */ -#$d_PRIfldbl PERL_PRIfldbl $sPRIfldbl /**/ -#$d_PRIgldbl PERL_PRIgldbl $sPRIgldbl /**/ -#$d_PRIeldbl PERL_PRIeldbl $sPRIeldbl /**/ -#$d_SCNfldbl PERL_SCNfldbl $sSCNfldbl /**/ +#define PERL_PRIfldbl "Lf" /**/ +#define PERL_PRIgldbl "Lg" /**/ +#define PERL_PRIeldbl "Le" /**/ +#define PERL_SCNfldbl "Lf" /**/ /* Off_t: * This symbol holds the type used to declare offsets in the kernel. @@ -2560,9 +2525,9 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un /* Off_t_size: * This symbol holds the number of bytes used by the Off_t. */ -#define Off_t $lseektype /* <offset> type */ -#define LSEEKSIZE $lseeksize /* <offset> size */ -#define Off_t_size $lseeksize /* <offset> size */ +#define Off_t off_t /* <offset> type */ +#define LSEEKSIZE 4 /* <offset> size */ +#define Off_t_size 4 /* <offset> size */ /* Free_t: * This variable contains the return type of free(). It is usually @@ -2571,13 +2536,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un /* Malloc_t: * This symbol is the type of pointer returned by malloc and realloc. */ -#define Malloc_t $malloctype /**/ -#define Free_t $freetype /**/ +#define Malloc_t void * /**/ +#define Free_t void /**/ /* MYMALLOC: * This symbol, if defined, indicates that we're using our own malloc. */ -#$d_mymalloc MYMALLOC /**/ +/*#define MYMALLOC /**/ /* Mode_t: * This symbol holds the type used to declare file modes @@ -2585,7 +2550,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * int or unsigned short. It may be necessary to include <sys/types.h> * to get any typedef'ed information. */ -#define Mode_t $modetype /* file mode parameter for system calls */ +#define Mode_t mode_t /* file mode parameter for system calls */ /* VAL_O_NONBLOCK: * This symbol is to be used during open() or fcntl(F_SETFL) to turn on @@ -2609,10 +2574,10 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * a non-blocking file descriptor will return 0 on EOF, and not the value * held in RD_NODATA (-1 usually, in that case!). */ -#define VAL_O_NONBLOCK $o_nonblock -#define VAL_EAGAIN $eagain -#define RD_NODATA $rd_nodata -#$d_eofnblk EOF_NONBLOCK +#define VAL_O_NONBLOCK O_NONBLOCK +#define VAL_EAGAIN EAGAIN +#define RD_NODATA -1 +#define EOF_NONBLOCK /* Netdb_host_t: * This symbol holds the type used for the 1st argument @@ -2630,10 +2595,10 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol holds the type used for the 1st argument to * getnetbyaddr(). */ -#define Netdb_host_t $netdb_host_type /**/ -#define Netdb_hlen_t $netdb_hlen_type /**/ -#define Netdb_name_t $netdb_name_type /**/ -#define Netdb_net_t $netdb_net_type /**/ +#define Netdb_host_t char * /**/ +#define Netdb_hlen_t int /**/ +#define Netdb_name_t char * /**/ +#define Netdb_net_t long /**/ /* PERL_OTHERLIBDIRS: * This variable contains a colon-separated set of paths for the perl @@ -2643,7 +2608,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * and architecture-specific directories. See PERL_INC_VERSION_LIST * for more details. */ -#$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/ +/*#define PERL_OTHERLIBDIRS "" /**/ /* IVTYPE: * This symbol defines the C type used for Perl's IV. @@ -2719,34 +2684,34 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol contains the number of bits a variable of type NVTYPE * can preserve of a variable of type UVTYPE. */ -#define IVTYPE $ivtype /**/ -#define UVTYPE $uvtype /**/ -#define I8TYPE $i8type /**/ -#define U8TYPE $u8type /**/ -#define I16TYPE $i16type /**/ -#define U16TYPE $u16type /**/ -#define I32TYPE $i32type /**/ -#define U32TYPE $u32type /**/ +#define IVTYPE int /**/ +#define UVTYPE unsigned int /**/ +#define I8TYPE char /**/ +#define U8TYPE unsigned char /**/ +#define I16TYPE short /**/ +#define U16TYPE unsigned short /**/ +#define I32TYPE int /**/ +#define U32TYPE unsigned int /**/ #ifdef HAS_QUAD -#define I64TYPE $i64type /**/ -#define U64TYPE $u64type /**/ +#define I64TYPE _error_ /**/ +#define U64TYPE _error_ /**/ #endif -#define NVTYPE $nvtype /**/ -#define IVSIZE $ivsize /**/ -#define UVSIZE $uvsize /**/ -#define I8SIZE $i8size /**/ -#define U8SIZE $u8size /**/ -#define I16SIZE $i16size /**/ -#define U16SIZE $u16size /**/ -#define I32SIZE $i32size /**/ -#define U32SIZE $u32size /**/ +#define NVTYPE double /**/ +#define IVSIZE 4 /**/ +#define UVSIZE 4 /**/ +#define I8SIZE 1 /**/ +#define U8SIZE 1 /**/ +#define I16SIZE 2 /**/ +#define U16SIZE 2 /**/ +#define I32SIZE 4 /**/ +#define U32SIZE 4 /**/ #ifdef HAS_QUAD -#define I64SIZE $i64size /**/ -#define U64SIZE $u64size /**/ +#define I64SIZE _error_ /**/ +#define U64SIZE _error_ /**/ #endif -#define NVSIZE $nvsize /**/ -#$d_nv_preserves_uv NV_PRESERVES_UV -#define NV_PRESERVES_UV_BITS $d_nv_preserves_uv_bits +#define NVSIZE 8 /**/ +#define NV_PRESERVES_UV +#define NV_PRESERVES_UV_BITS 32 /* IVdf: * This symbol defines the format string used for printing a Perl IV @@ -2776,20 +2741,20 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol defines the format string used for printing a Perl NV * using %g-ish floating point format. */ -#define IVdf $ivdformat /**/ -#define UVuf $uvuformat /**/ -#define UVof $uvoformat /**/ -#define UVxf $uvxformat /**/ -#define NVef $nveformat /**/ -#define NVff $nvfformat /**/ -#define NVgf $nvgformat /**/ +#define IVdf "d" /**/ +#define UVuf "u" /**/ +#define UVof "o" /**/ +#define UVxf "x" /**/ +#define NVef "e" /**/ +#define NVff "f" /**/ +#define NVgf "g" /**/ /* Pid_t: * This symbol holds the type used to declare process ids in the kernel. * It can be int, uint, pid_t, etc... It may be necessary to include * <sys/types.h> to get any typedef'ed information. */ -#define Pid_t $pidtype /* PID type */ +#define Pid_t pid_t /* PID type */ /* PRIVLIB: * This symbol contains the name of the private library for this package. @@ -2801,8 +2766,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol contains the ~name expanded version of PRIVLIB, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define PRIVLIB "$privlib" /**/ -#define PRIVLIB_EXP "$privlibexp" /**/ +#define PRIVLIB "/system/ported/perl/lib/5.7" /**/ +#define PRIVLIB_EXP "/system/ported/perl/lib/5.7" /**/ /* PTRSIZE: * This symbol contains the size of a pointer, so that the C preprocessor @@ -2810,7 +2775,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * the compiler supports (void *); otherwise it will be * sizeof(char *). */ -#define PTRSIZE $ptrsize /**/ +#define PTRSIZE 4 /**/ /* Drand01: * This macro is to be used to generate uniformly distributed @@ -2832,10 +2797,10 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * function used to generate normalized random numbers. * Values include 15, 16, 31, and 48. */ -#define Drand01() $drand01 /**/ -#define Rand_seed_t $randseedtype /**/ -#define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/ -#define RANDBITS $randbits /**/ +#define Drand01() rand()/(RAND_MAX+1) /**/ +#define Rand_seed_t unsigned int /**/ +#define seedDrand01(x) srand((Rand_seed_t)x) /**/ +#define RANDBITS 15 /**/ /* SELECT_MIN_BITS: * This symbol holds the minimum number of bits operated by select. @@ -2844,7 +2809,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * is either n or 32*ceil(n/32), especially many little-endians do * the latter. This is only useful if you have select(), naturally. */ -#define SELECT_MIN_BITS $selectminbits /**/ +#define SELECT_MIN_BITS 1 /**/ /* Select_fd_set_t: * This symbol holds the type used for the 2nd, 3rd, and 4th @@ -2852,7 +2817,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * is defined, and 'int *' otherwise. This is only useful if you * have select(), of course. */ -#define Select_fd_set_t $selecttype /**/ +#define Select_fd_set_t fd_set * /**/ /* SIG_NAME: * This symbol contains a list of signal names in order of @@ -2882,8 +2847,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * The last element is 0, corresponding to the 0 at the end of * the sig_name list. */ -#define SIG_NAME $sig_name_init /**/ -#define SIG_NUM $sig_num_init /**/ +#define SIG_NAME "ZERO","ABRT","FPE","ILL","INT","SEGV","TERM","USR1","USR2","IO","HUP","URG","ALRM","CHLD","CONT","KILL","STOP","PIPE","QUIT","BUS","TRAP","TSTP","TTIN","TTOU","RT1","RT2","RT3","RT4","RT5","RT6","RT7","RT8",0 /**/ +#define SIG_NUM 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,0 /**/ /* SITEARCH: * This symbol contains the name of the private library for this package. @@ -2900,8 +2865,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol contains the ~name expanded version of SITEARCH, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#define SITEARCH "$sitearch" /**/ -#define SITEARCH_EXP "$sitearchexp" /**/ +/*#define SITEARCH "" /**/ +/*#define SITEARCH_EXP "" /**/ /* SITELIB: * This symbol contains the name of the private library for this package. @@ -2923,14 +2888,14 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * removed. The elements in inc_version_list (inc_version_list.U) can * be tacked onto this variable to generate a list of directories to search. */ -#define SITELIB "$sitelib" /**/ -#define SITELIB_EXP "$sitelibexp" /**/ -#define SITELIB_STEM "$sitelib_stem" /**/ +#define SITELIB "/system/ported/perl/lib/site/5.7" /**/ +#define SITELIB_EXP "/system/ported/perl/lib/site/5.7" /**/ +#define SITELIB_STEM "/system/ported/perl/lib/site" /**/ /* Size_t_size: * This symbol holds the size of a Size_t in bytes. */ -#define Size_t_size $sizesize /* */ +#define Size_t_size 4 /* */ /* Size_t: * This symbol holds the type used to declare length parameters @@ -2938,13 +2903,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * unsigned long, int, etc. It may be necessary to include * <sys/types.h> to get any typedef'ed information. */ -#define Size_t $sizetype /* length paramater for string functions */ +#define Size_t size_t /* length paramater for string functions */ /* Sock_size_t: * This symbol holds the type used for the size argument of * various socket calls (just the base type, not the pointer-to). */ -#define Sock_size_t $socksizetype /**/ +#define Sock_size_t int /**/ /* SSize_t: * This symbol holds the type used by functions that return @@ -2954,14 +2919,14 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * to get any typedef'ed information. * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). */ -#define SSize_t $ssizetype /* signed count of bytes */ +#define SSize_t ssize_t /* signed count of bytes */ /* STARTPERL: * This variable contains the string to put in front of a perl * script to make sure (one hopes) that it runs with perl and not * some shell. */ -#define STARTPERL "$startperl" /**/ +#define STARTPERL "!perl.pm" /**/ /* HAS_STDIO_STREAM_ARRAY: * This symbol, if defined, tells that there is an array @@ -2971,31 +2936,31 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol tells the name of the array holding the stdio streams. * Usual values include _iob, __iob, and __sF. */ -#$d_stdio_stream_array HAS_STDIO_STREAM_ARRAY /**/ -#define STDIO_STREAM_ARRAY $stdio_stream_array +#define HAS_STDIO_STREAM_ARRAY /**/ +#define STDIO_STREAM_ARRAY _iob /* Uid_t_f: * This symbol defines the format string used for printing a Uid_t. */ -#define Uid_t_f $uidformat /**/ +#define Uid_t_f "d" /**/ /* Uid_t_sign: * This symbol holds the signedess of a Uid_t. * 1 for unsigned, -1 for signed. */ -#define Uid_t_sign $uidsign /* UID sign */ +#define Uid_t_sign -1 /* UID sign */ /* Uid_t_size: * This symbol holds the size of a Uid_t in bytes. */ -#define Uid_t_size $uidsize /* UID size */ +#define Uid_t_size 4 /* UID size */ /* Uid_t: * This symbol holds the type used to declare user ids in the kernel. * It can be int, ushort, uid_t, etc... It may be necessary to include * <sys/types.h> to get any typedef'ed information. */ -#define Uid_t $uidtype /* UID type */ +#define Uid_t uid_t /* UID type */ /* USE_64_BIT_INT: * This symbol, if defined, indicates that 64-bit integers should @@ -3016,11 +2981,11 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * you may need at least to reboot your OS to 64-bit mode. */ #ifndef USE_64_BIT_INT -#$use64bitint USE_64_BIT_INT /**/ +/*#define USE_64_BIT_INT /**/ #endif #ifndef USE_64_BIT_ALL -#$use64bitall USE_64_BIT_ALL /**/ +/*#define USE_64_BIT_ALL /**/ #endif /* USE_LARGE_FILES: @@ -3028,7 +2993,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * should be used when available. */ #ifndef USE_LARGE_FILES -#$uselargefiles USE_LARGE_FILES /**/ +/*#define USE_LARGE_FILES /**/ #endif /* USE_LONG_DOUBLE: @@ -3036,7 +3001,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * be used when available. */ #ifndef USE_LONG_DOUBLE -#$uselongdouble USE_LONG_DOUBLE /**/ +#define USE_LONG_DOUBLE /**/ #endif /* USE_MORE_BITS: @@ -3044,7 +3009,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * long doubles should be used when available. */ #ifndef USE_MORE_BITS -#$usemorebits USE_MORE_BITS /**/ +/*#define USE_MORE_BITS /**/ #endif /* MULTIPLICITY: @@ -3052,7 +3017,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * be built to use multiplicity. */ #ifndef MULTIPLICITY -#$usemultiplicity MULTIPLICITY /**/ +/*#define MULTIPLICITY /**/ #endif /* USE_PERLIO: @@ -3061,7 +3026,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * used in a fully backward compatible manner. */ #ifndef USE_PERLIO -#$useperlio USE_PERLIO /**/ +/*#define USE_PERLIO /**/ #endif /* USE_SOCKS: @@ -3069,7 +3034,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * be built to use socks. */ #ifndef USE_SOCKS -#$usesocks USE_SOCKS /**/ +/*#define USE_SOCKS /**/ #endif /* USE_ITHREADS: @@ -3084,12 +3049,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates that Perl should * be built to use the old draft POSIX threads API. */ -#$use5005threads USE_5005THREADS /**/ -#$useithreads USE_ITHREADS /**/ +/*#define USE_5005THREADS /**/ +/*#define USE_ITHREADS /**/ #if defined(USE_5005THREADS) && !defined(USE_ITHREADS) #define USE_THREADS /* until src is revised*/ #endif -#$d_oldpthreads OLD_PTHREADS_API /**/ +/*#define OLD_PTHREADS_API /**/ /* PERL_VENDORARCH: * If defined, this symbol contains the name of a private library. @@ -3106,8 +3071,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used * in programs that are not prepared to deal with ~ expansion at run-time. */ -#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/ -#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/ +#define PERL_VENDORARCH "" /**/ +#define PERL_VENDORARCH_EXP "" /**/ /* PERL_VENDORLIB_EXP: * This symbol contains the ~name expanded version of VENDORLIB, to be used @@ -3118,8 +3083,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * removed. The elements in inc_version_list (inc_version_list.U) can * be tacked onto this variable to generate a list of directories to search. */ -#$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/ -#$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/ +#define PERL_VENDORLIB_EXP "" /**/ +#define PERL_VENDORLIB_STEM "" /**/ /* VOIDFLAGS: * This symbol indicates how much support of the void type is given by this @@ -3138,9 +3103,9 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * level of void support necessary is not present, defines void to int. */ #ifndef VOIDUSED -#define VOIDUSED $defvoidused +#define VOIDUSED 15 #endif -#define VOIDFLAGS $voidflags +#define VOIDFLAGS 15 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED #define void int /* is void to be avoided? */ #define M_VOID /* Xenix strikes again */ @@ -3149,7 +3114,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un /* PERL_XS_APIVERSION: * This variable contains the version of the oldest perl binary * compatible with the present perl. perl.c:incpush() and - * lib/lib.pm will automatically search in $sitearch for older + * lib/lib.pm will automatically search in for older * directories across major versions back to xs_apiversion. * This is only useful if you have a perl library directory tree * structured like the default one. @@ -3168,7 +3133,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * compatible with the present perl. (That is, pure perl modules * written for pm_apiversion will still work for the current * version). perl.c:incpush() and lib/lib.pm will automatically - * search in $sitelib for older directories across major versions + * search in /system/ported/perl/lib/site/5.7 for older directories across major versions * back to pm_apiversion. This is only useful if you have a perl * library directory tree structured like the default one. The * versioned site_perl library was introduced in 5.005, so that's @@ -3178,8 +3143,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * (presumably) be similar. * See the INSTALL file for how this works. */ -#define PERL_XS_APIVERSION "$xs_apiversion" -#define PERL_PM_APIVERSION "$pm_apiversion" +#define PERL_XS_APIVERSION "5.00563" +#define PERL_PM_APIVERSION "5.005" /* HAS_GETPGRP: * This symbol, if defined, indicates that the getpgrp routine is @@ -3189,8 +3154,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates that getpgrp needs one * arguments whereas USG one needs none. */ -#$d_getpgrp HAS_GETPGRP /**/ -#$d_bsdgetpgrp USE_BSD_GETPGRP /**/ +#define HAS_GETPGRP /**/ +/*#define USE_BSD_GETPGRP /**/ /* HAS_SETPGRP: * This symbol, if defined, indicates that the setpgrp routine is @@ -3201,8 +3166,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * arguments whereas USG one needs none. See also HAS_SETPGID * for a POSIX interface. */ -#$d_setpgrp HAS_SETPGRP /**/ -#$d_bsdsetpgrp USE_BSD_SETPGRP /**/ +/*#define HAS_SETPGRP /**/ +/*#define USE_BSD_SETPGRP /**/ #endif -!GROK!THIS! diff --git a/vos/config.pl b/vos/config.pl index c6014ade9a..c865ba158b 100644 --- a/vos/config.pl +++ b/vos/config.pl @@ -3,6 +3,7 @@ # # Written January 24, 2000 by Jarkko Hietaniemi [jhi@iki.fi] # Modified February 2, 2000 by Paul Green [Paul_Green@stratus.com] +# Modified October 23, 2000 by Paul Green [Paul_Green@stratus.com] # # Read in the definitions file @@ -13,6 +14,7 @@ if (open(CONFIG_DEF, "config.def")) { if (/^([^=]+)='(.*)'$/) { my ($var, $val) = ($1, $2); $define{$var} = $val; + $used{$var} = 0; } else { warn "config.def: $.: illegal line: $_"; } @@ -27,8 +29,9 @@ close (CONFIG_DEF); # Open the template input file. # -unless (open(CONFIG_SH, "config_h.SH_orig")) { - die "$0: Cannot open config_h.SH_orig: $!"; +$lineno = 0; +unless (open(CONFIG_SH, "../config_h.SH")) { + die "$0: Cannot open ../config_h.SH: $!"; } # @@ -44,6 +47,7 @@ unless (open(CONFIG_H, ">config.h.new")) { # while (<CONFIG_SH>) { + $lineno = $lineno + 1; last if /^sed <<!GROK!THIS!/; } @@ -53,20 +57,34 @@ while (<CONFIG_SH>) { # while (<CONFIG_SH>) { + $lineno = $lineno + 1; last if /^!GROK!THIS!/; # +# The definition of SITEARCH and SITEARCH_EXP has to be commented-out. +# The easiest way to do this is to special-case it here. +# + if (/^#define SITEARCH*/) { + s@(^.*$)@/*$1@; + } +# # The case of #$d_foo at the BOL has to be handled carefully. # If $d_foo is "undef", then we must first comment out the entire line. # - if (/^#\$\w+/) { - s@^#(\$\w+)@("$define{$1}" eq "undef")?"/*#define":"#$define{$1}"@e; + if (/^#(\$\w+)/) { + if (exists $define{$1}) { + $used{$1}=1; + s@^#(\$\w+)@("$define{$1}" eq "undef") ? + "/*#define":"#$define{$1}"@e; + } } # # There could be multiple $variables on this line. # Find and replace all of them. # if (/(\$\w+)/) { - s/(\$\w+)/(exists $define{$1}) ? $define{$1} : $1/ge; + s/(\$\w+)/(exists $define{$1}) ? + (($used{$1}=1),$define{$1}) : + ((print "Undefined keyword $1 on line $lineno\n"),$1)/ge; print CONFIG_H; } # @@ -82,3 +100,10 @@ unless (close (CONFIG_H)) { } close (CONFIG_SH); + +while (($key,$value) = each %used) { + if ($value == 0) { + print "Unused keyword definition: $key\n"; + } +} + diff --git a/vos/configure_perl.cm b/vos/configure_perl.cm new file mode 100644 index 0000000000..49611f9a66 --- /dev/null +++ b/vos/configure_perl.cm @@ -0,0 +1,24 @@ +& This command macro configures perl to build with +& either the alpha or generally-available version of +& VOS POSIX.1 support. +& Written 00-10-24 by Paul Green (Paul_Green@stratus.com) +& +&begin_parameters + version option(-version)name,allow(alpha,ga),=ga +&end_parameters +&echo command_lines +& +&if (file_info config.&version&.def date_modified) > (file_info config.&version&.h date_modified) +&then &do +!copy_file config.&version&.def config.def -delete +& +& NOTE: We must invoke Perl 5 not Perl 4. If necessary, edit the +& next line to say "perl5 config.pl". +& +!perl config.pl +!rename config.h.new config.&version&.h -delete +!delete_file config.def +&end +& +&if (file_info config.&version&.h date_modified) ^= (file_info config.h date_modified) +&then !copy_file config.&version&.h config.h -delete -keep_dates diff --git a/vos/install_perl.cm b/vos/install_perl.cm new file mode 100644 index 0000000000..95fe064ea6 --- /dev/null +++ b/vos/install_perl.cm @@ -0,0 +1,69 @@ +& Macro to install the perl components into the right directories +& Written 00-10-24 by Paul Green (Paul_Green@stratus.com) +& +&begin_parameters + cpu option(-processor)name,allow(mc68020,i80860,pa7100,pa8000),=mc68020 +&end_parameters priv +&echo command_lines +& +&if &cpu& = mc68020 +&then &set_string obj '' +&if &cpu& = i80860 +&then &set_string obj .860 +&if &cpu& = pa7100 +&then &set_string obj .7100 +&if &cpu& = pa8000 +&then &set_string obj .8000 +& +&set_string MDS (master_disk)>system +& +&if ^ (exists -directory &MDS&>ported) +&then !create_dir &MDS&>ported +& +&if ^ (exists -directory &MDS&>ported>command_library) +&then !create_dir &MDS&>ported>command_library +& +&if ^ (exists -directory &MDS&>ported>perl) +&then !create_dir &MDS&>ported>perl +& +&if ^ (exists -directory &MDS&>ported>perl>lib) +&then !create_dir &MDS&>ported>perl>lib +& +&if ^ (exists -directory &MDS&>ported>perl>lib>5.7) +&then !create_dir &MDS&>ported>perl>lib>5.7 +& +&if ^ (exists -directory &MDS&>ported>perl>lib>5.7.68k) +&then !create_dir &MDS&>ported>perl>lib>5.7.68k +& +&if ^ (exists -directory &MDS&>ported>perl>lib>5.7.860) +&then !create_dir &MDS&>ported>perl>lib>5.7.860 +& +&if ^ (exists -directory &MDS&>ported>perl>lib>5.7.7100) +&then !create_dir &MDS&>ported>perl>lib>5.7.7100 +& +&if ^ (exists -directory &MDS&>ported>perl>lib>5.7.8000) +&then !create_dir &MDS&>ported>perl>lib>5.7.8000 +& +&if ^ (exists -directory &MDS&>ported>perl>lib>site) +&then !create_dir &MDS&>ported>perl>lib>site +& +&if ^ (exists -directory &MDS&>ported>perl>lib>site>5.7) +&then !create_dir &MDS&>ported>perl>lib>site>5.7 +& +&if ^ (exists -directory &MDS&>ported>perl>lib>site>5.7.68k) +&then !create_dir &MDS&>ported>perl>lib>site>5.7.68k +& +&if ^ (exists -directory &MDS&>ported>perl>lib>site>5.7.860) +&then !create_dir &MDS&>ported>perl>lib>site>5.7.860 +& +&if ^ (exists -directory &MDS&>ported>perl>lib>site>5.7.7100) +&then !create_dir &MDS&>ported>perl>lib>site>5.7.7100 +& +&if ^ (exists -directory &MDS&>ported>perl>lib>site>5.7.8000) +&then !create_dir &MDS&>ported>perl>lib>site>5.7.8000 +& +!copy_dir <lib &MDS&>ported>perl>lib>5.7 -delete +& +!copy_file obj&obj&>perl.pm &MDS&>ported>command_library>perl.pm.new -delete +!rename &MDS&>ported>command_library>perl.pm *.(date).(time) -delete +!rename &MDS&>ported>command_library>perl.pm.new perl.pm -delete diff --git a/vos/perl.bind b/vos/perl.bind index 714ce3d680..1e77e5a6de 100644 --- a/vos/perl.bind +++ b/vos/perl.bind @@ -31,9 +31,6 @@ modules: miniperlmain, universal, utf8, util, - xsutils, - vos_dummies, - tcp_runtime, - tcp_gethost; + xsutils; end; diff --git a/vos/vosish.h b/vos/vosish.h index 5a6b0796f8..d600065698 100644 --- a/vos/vosish.h +++ b/vos/vosish.h @@ -1,140 +1 @@ -/* - * The following symbols are defined if your operating system supports - * functions by that name. All Unixes I know of support them, thus they - * are not checked by the configuration script, but are directly defined - * here. - */ - -/* HAS_IOCTL: - * This symbol, if defined, indicates that the ioctl() routine is - * available to set I/O characteristics - */ -#define HAS_IOCTL / **/ - -/* HAS_UTIME: - * This symbol, if defined, indicates that the routine utime() is - * available to update the access and modification times of files. - */ -#define HAS_UTIME / **/ - -/* HAS_GROUP - * This symbol, if defined, indicates that the getgrnam() and - * getgrgid() routines are available to get group entries. - * The getgrent() has a separate definition, HAS_GETGRENT. - */ -/*#define HAS_GROUP / **/ - -/* HAS_PASSWD - * This symbol, if defined, indicates that the getpwnam() and - * getpwuid() routines are available to get password entries. - * The getpwent() has a separate definition, HAS_GETPWENT. - */ -/*#define HAS_PASSWD / **/ - -#define HAS_KILL -#define HAS_WAIT - -/* USEMYBINMODE - * This symbol, if defined, indicates that the program should - * use the routine my_binmode(FILE *fp, char iotype, int mode) to insure - * that a file is in "binary" mode -- that is, that no translation - * of bytes occurs on read or write operations. - */ -#undef USEMYBINMODE - -/* Stat_t: - * This symbol holds the type used to declare buffers for information - * returned by stat(). It's usually just struct stat. It may be necessary - * to include <sys/stat.h> and <sys/types.h> to get any typedef'ed - * information. - */ -#define Stat_t struct stat - -/* USE_STAT_RDEV: - * This symbol is defined if this system has a stat structure declaring - * st_rdev - */ -/*#define USE_STAT_RDEV / **/ - -/* ACME_MESS: - * This symbol, if defined, indicates that error messages should be - * should be generated in a format that allows the use of the Acme - * GUI/editor's autofind feature. - */ -#undef ACME_MESS /**/ - -/* UNLINK_ALL_VERSIONS: - * This symbol, if defined, indicates that the program should arrange - * to remove all versions of a file if unlink() is called. This is - * probably only relevant for VMS. - */ -/* #define UNLINK_ALL_VERSIONS / **/ - -/* VMS: - * This symbol, if defined, indicates that the program is running under - * VMS. It is currently automatically set by cpps running under VMS, - * and is included here for completeness only. - */ -/* #define VMS / **/ - -/* ALTERNATE_SHEBANG: - * This symbol, if defined, contains a "magic" string which may be used - * as the first line of a Perl program designed to be executed directly - * by name, instead of the standard Unix #!. If ALTERNATE_SHEBANG - * begins with a character other then #, then Perl will only treat - * it as a command line if if finds the string "perl" in the first - * word; otherwise it's treated as the first line of code in the script. - * (IOW, Perl won't hand off to another interpreter via an alternate - * shebang sequence that might be legal Perl code.) - */ -/* #define ALTERNATE_SHEBANG "#!" / **/ - -#if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX) || defined(__NetBSD__) -# include <signal.h> -#endif - -#ifndef SIGABRT -# define SIGABRT SIGILL -#endif -#ifndef SIGILL -# define SIGILL 6 /* blech */ -#endif -#define ABORT() kill(PerlProc_getpid(),SIGABRT); - -/* - * fwrite1() should be a routine with the same calling sequence as fwrite(), - * but which outputs all of the bytes requested as a single stream (unlike - * fwrite() itself, which on some systems outputs several distinct records - * if the number_of_items parameter is >1). - */ -#define fwrite1 fwrite - -#define Stat(fname,bufptr) stat((fname),(bufptr)) -#define Fstat(fd,bufptr) fstat((fd),(bufptr)) -#define Fflush(fp) fflush(fp) -#define Mkdir(path,mode) mkdir((path),(mode)) - -/* these should be set in a hint file, not here */ -#ifndef PERL_SYS_INIT -#ifdef PERL_SCO5 -# define PERL_SYS_INIT(c,v) fpsetmask(0); MALLOC_INIT -#else -# ifdef POSIX_BC -# define PERL_SYS_INIT(c,v) sigignore(SIGFPE); MALLOC_INIT -# else -# ifdef CYGWIN -# define PERL_SYS_INIT(c,v) Perl_my_setenv_init(&environ); MALLOC_INIT -# else -# define PERL_SYS_INIT(c,v) MALLOC_INIT -# endif -# endif -#endif -#endif - -#ifndef PERL_SYS_TERM -#define PERL_SYS_TERM() MALLOC_TERM -#endif - -#define BIT_BUCKET "/dev/null" - -#define dXSUB_SYS +#include "unixish.h" |