diff options
Diffstat (limited to 'contrib/perl5/Porting')
| -rw-r--r-- | contrib/perl5/Porting/Contract | 108 | ||||
| -rw-r--r-- | contrib/perl5/Porting/Glossary | 2580 | ||||
| -rw-r--r-- | contrib/perl5/Porting/config.sh | 585 | ||||
| -rw-r--r-- | contrib/perl5/Porting/config_H | 2103 | ||||
| -rwxr-xr-x | contrib/perl5/Porting/findvars | 373 | ||||
| -rwxr-xr-x | contrib/perl5/Porting/fixCORE | 68 | ||||
| -rwxr-xr-x | contrib/perl5/Porting/fixvars | 69 | ||||
| -rwxr-xr-x | contrib/perl5/Porting/genlog | 118 | ||||
| -rwxr-xr-x | contrib/perl5/Porting/makerel | 129 | ||||
| -rwxr-xr-x | contrib/perl5/Porting/p4d2p | 84 | ||||
| -rw-r--r-- | contrib/perl5/Porting/patching.pod | 319 | ||||
| -rwxr-xr-x | contrib/perl5/Porting/patchls | 539 | ||||
| -rw-r--r-- | contrib/perl5/Porting/pumpkin.pod | 1313 |
13 files changed, 8388 insertions, 0 deletions
diff --git a/contrib/perl5/Porting/Contract b/contrib/perl5/Porting/Contract new file mode 100644 index 0000000000000..cc91af26bca82 --- /dev/null +++ b/contrib/perl5/Porting/Contract @@ -0,0 +1,108 @@ + + Contributed Modules in Perl Core + A Social Contract about Artistic Control + +What follows is a statement about artistic control, defined as the ability +of authors of packages to guide the future of their code and maintain +control over their work. It is a recognition that authors should have +control over their work, and that it is a responsibility of the rest of +the Perl community to ensure that they retain this control. It is an +attempt to document the standards to which we, as Perl developers, intend +to hold ourselves. It is an attempt to write down rough guidelines about +the respect we owe each other as Perl developers. + +This statement is not a legal contract. This statement is not a legal +document in any way, shape, or form. Perl is distributed under the GNU +Public License and under the Artistic License; those are the precise legal +terms. This statement isn't about the law or licenses. It's about +community, mutual respect, trust, and good-faith cooperation. + +We recognize that the Perl core, defined as the software distributed with +the heart of Perl itself, is a joint project on the part of all of us. +>From time to time, a script, module, or set of modules (hereafter referred +to simply as a "module") will prove so widely useful and/or so integral to +the correct functioning of Perl itself that it should be distributed with +Perl core. This should never be done without the author's explicit +consent, and a clear recognition on all parts that this means the module +is being distributed under the same terms as Perl itself. A module author +should realize that inclusion of a module into the Perl core will +necessarily mean some loss of control over it, since changes may +occasionally have to be made on short notice or for consistency with the +rest of Perl. + +Once a module has been included in the Perl core, however, everyone +involved in maintaining Perl should be aware that the module is still the +property of the original author unless the original author explicitly +gives up their ownership of it. In particular: + + 1) The version of the module in the core should still be considered the + work of the original author. All patches, bug reports, and so forth + should be fed back to them. Their development directions should be + respected whenever possible. + + 2) Patches may be applied by the pumpkin holder without the explicit + cooperation of the module author if and only if they are very minor, + time-critical in some fashion (such as urgent security fixes), or if + the module author cannot be reached. Those patches must still be + given back to the author when possible, and if the author decides on + an alternate fix in their version, that fix should be strongly + preferred unless there is a serious problem with it. Any changes not + endorsed by the author should be marked as such, and the contributor + of the change acknowledged. + + 3) The version of the module distributed with Perl should, whenever + possible, be the latest version of the module as distributed by the + author (the latest non-beta version in the case of public Perl + releases), although the pumpkin holder may hold off on upgrading the + version of the module distributed with Perl to the latest version + until the latest version has had sufficient testing. + +In other words, the author of a module should be considered to have final +say on modifications to their module whenever possible (bearing in mind +that it's expected that everyone involved will work together and arrive at +reasonable compromises when there are disagreements). + +As a last resort, however: + + 4) If the author's vision of the future of their module is sufficiently + different from the vision of the pumpkin holder and perl5-porters as a + whole so as to cause serious problems for Perl, the pumpkin holder may + choose to formally fork the version of the module in the core from the + one maintained by the author. This should not be done lightly and + should *always* if at all possible be done only after direct input + from Larry. If this is done, it must then be made explicit in the + module as distributed with Perl core that it is a forked version and + that while it is based on the original author's work, it is no longer + maintained by them. This must be noted in both the documentation and + in the comments in the source of the module. + +Again, this should be a last resort only. Ideally, this should never +happen, and every possible effort at cooperation and compromise should be +made before doing this. If it does prove necessary to fork a module for +the overall health of Perl, proper credit must be given to the original +author in perpetuity and the decision should be constantly re-evaluated to +see if a remerging of the two branches is possible down the road. + +In all dealings with contributed modules, everyone maintaining Perl should +keep in mind that the code belongs to the original author, that they may +not be on perl5-porters at any given time, and that a patch is not +official unless it has been integrated into the author's copy of the +module. To aid with this, and with points #1, #2, and #3 above, contact +information for the authors of all contributed modules should be kept with +the Perl distribution. + +Finally, the Perl community as a whole recognizes that respect for +ownership of code, respect for artistic control, proper credit, and active +effort to prevent unintentional code skew or communication gaps is vital +to the health of the community and Perl itself. Members of a community +should not normally have to resort to rules and laws to deal with each +other, and this document, although it contains rules so as to be clear, is +about an attitude and general approach. The first step in any dispute +should be open communication, respect for opposing views, and an attempt +at a compromise. In nearly every circumstance nothing more will be +necessary, and certainly no more drastic measure should be used until +every avenue of communication and discussion has failed. + +-- +Version 1.2. By Russ Allbery (rra@stanford.edu) and the perl5-porters. + diff --git a/contrib/perl5/Porting/Glossary b/contrib/perl5/Porting/Glossary new file mode 100644 index 0000000000000..f6816791137ed --- /dev/null +++ b/contrib/perl5/Porting/Glossary @@ -0,0 +1,2580 @@ +This file contains a description of all the shell variables whose value is +determined by the Configure script. Variables intended for use in C +programs (e.g. I_UNISTD) are already described in config_h.SH. [`configpm' +generates pod documentation for Config.pm from this file--please try to keep +the formatting regular.] + +Mcc (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the Mcc program. After Configure runs, + the value is reset to a plain "Mcc" and is not useful. + +_a (Unix.U): + This variable defines the extension used for ordinary libraries. + For unix, it is '.a'. The '.' is included. Other possible + values include '.lib'. + +_exe (Unix.U): + This variable defines the extension used for executable files. + For unix it is empty. Other possible values include '.exe'. + +_o (Unix.U): + This variable defines the extension used for object files. + For unix, it is '.o'. The '.' is included. Other possible + values include '.obj'. + +afs (afs.U): + This variable is set to 'true' if AFS (Andrew File System) is used + on the system, 'false' otherwise. It is possible to override this + with a hint value or command line option, but you'd better know + what you are doing. + +alignbytes (alignbytes.U): + This variable holds the number of bytes required to align a + double. Usual values are 2, 4 and 8. + +ansi2knr (ansi2knr.U): + This variable is set if the user needs to run ansi2knr. + Currently, this is not supported, so we just abort. + +aphostname (d_gethname.U): + Thie variable contains the command which can be used to compute the + host name. The command is fully qualified by its absolute path, to make + it safe when used by a process with super-user privileges. + +apiversion (patchlevel.U): + This is a number which identifies the lowest version of perl + to have an API (for XS extensions) compatible with the present + version. For example, for 5.005_01, the apiversion should be + 5.005, since 5.005_01 should be binary compatible with 5.005. + This should probably be incremented manually somehow, perhaps + from patchlevel.h. For now, we'll guess maintenance subversions + will retain binary compatibility. + +ar (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the ar program. After Configure runs, + the value is reset to a plain "ar" and is not useful. + +archlib (archlib.U): + This variable 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 such as /usr/local/lib. + Programs using this variable must be prepared to deal + with filename expansion. + +archlibexp (archlib.U): + This variable is the same as the archlib variable, but is + filename expanded at configuration time, for convenient use. + +archname (archname.U): + This variable is a short name to characterize the current + architecture. It is used mainly to construct the default archlib. + +archobjs (Unix.U): + This variable defines any additional objects that must be linked + in with the program on this architecture. On unix, it is usually + empty. It is typically used to include emulations of unix calls + or other facilities. For perl on OS/2, for example, this would + include os2/os2.obj. + +awk (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the awk program. After Configure runs, + the value is reset to a plain "awk" and is not useful. + +baserev (baserev.U): + The base revision level of this package, from the .package file. + +bash (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +bin (bin.U): + This variable holds the name of the directory in which the user wants + to put publicly executable images for the package in question. It + is most often a local directory such as /usr/local/bin. Programs using + this variable must be prepared to deal with ~name substitution. + +binexp (bin.U): + This is the same as the bin variable, but is filename expanded at + configuration time, for use in your makefiles. + +bison (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +byacc (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the byacc program. After Configure runs, + the value is reset to a plain "byacc" and is not useful. + +byteorder (byteorder.U): + This variable holds the byte order. In the following, larger digits + indicate more significance. The variable byteorder is either 4321 + on a big-endian machine, or 1234 on a little-endian, or 87654321 + on a Cray ... or 3412 with weird order ! + +c (n.U): + This variable contains the \c string if that is what causes the echo + command to suppress newline. Otherwise it is null. Correct usage is + $echo $n "prompt for a question: $c". + +castflags (d_castneg.U): + This variable contains a flag that precise difficulties the + compiler has casting odd floating values to unsigned long: + 0 = ok + 1 = couldn't cast < 0 + 2 = couldn't cast >= 0x80000000 + 4 = couldn't cast in argument expression list + +cat (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the cat program. After Configure runs, + the value is reset to a plain "cat" and is not useful. + +cc (cc.U): + This variable holds the name of a command to execute a C compiler which + can resolve multiple global references that happen to have the same + name. Usual values are 'cc', 'Mcc', 'cc -M', and 'gcc'. + +cccdlflags (dlsrc.U): + This variable contains any special flags that might need to be + passed with 'cc -c' to compile modules to be used to create a shared + library that will be used for dynamic loading. For hpux, this + should be +z. It is up to the makefile to use it. + +ccdlflags (dlsrc.U): + This variable contains any special flags that might need to be + passed to cc to link with a shared library for dynamic loading. + It is up to the makefile to use it. For sunos 4.1, it should + be empty. + +ccflags (ccflags.U): + This variable contains any additional C compiler flags desired by + the user. It is up to the Makefile to use this. + +cf_by (cf_who.U): + Login name of the person who ran the Configure script and answered the + questions. This is used to tag both config.sh and config_h.SH. + +cf_email (cf_email.U): + Electronic mail address of the person who ran Configure. This can be + used by units that require the user's e-mail, like MailList.U. + +cf_time (cf_who.U): + Holds the output of the "date" command when the configuration file was + produced. This is used to tag both config.sh and config_h.SH. + +chgrp (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +chmod (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +chown (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +clocktype (d_times.U): + This variable holds the type returned by times(). It can be long, + or clock_t on BSD sites (in which case <sys/types.h> should be + included). + +comm (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the comm program. After Configure runs, + the value is reset to a plain "comm" and is not useful. + +compress (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +contains (contains.U): + This variable holds the command to do a grep with a proper return + status. On most sane systems it is simply "grep". On insane systems + it is a grep followed by a cat followed by a test. This variable + is primarily for the use of other Configure units. + +cp (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the cp program. After Configure runs, + the value is reset to a plain "cp" and is not useful. + +cpio (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +cpp (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the cpp program. After Configure runs, + the value is reset to a plain "cpp" and is not useful. + +cpp_stuff (cpp_stuff.U): + This variable contains an identification of the catenation mechanism + used by the C preprocessor. + +cppflags (ccflags.U): + This variable holds the flags that will be passed to the C pre- + processor. It is up to the Makefile to use it. + +cpplast (cppstdin.U): + This variable has the same functionality as cppminus, only it applies to + cpprun and not cppstdin. + +cppminus (cppstdin.U): + This variable contains the second part of the string which will invoke + the C preprocessor on the standard input and produce to standard + output. This variable will have the value "-" if cppstdin needs a minus + to specify standard input, otherwise the value is "". + +cpprun (cppstdin.U): + This variable contains the command which will invoke a C preprocessor + on standard input and put the output to stdout. It is guaranteed not + to be a wrapper and may be a null string if no preprocessor can be + made directly available. This preprocessor might be different from the + one used by the C compiler. Don't forget to append cpplast after the + preprocessor options. + +cppstdin (cppstdin.U): + This variable contains the command which will invoke the C + preprocessor on standard input and put the output to stdout. + It is primarily used by other Configure units that ask about + preprocessor symbols. + +cryptlib (d_crypt.U): + This variable holds -lcrypt or the path to a libcrypt.a archive if + the crypt() function is not defined in the standard C library. It is + up to the Makefile to use this. + +csh (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the csh program. After Configure runs, + the value is reset to a plain "csh" and is not useful. + +d_Gconvert (d_gconvert.U): + This variable holds what Gconvert is defined as to convert + floating point numbers into strings. It could be 'gconvert' + or a more complex macro emulating gconvert with gcvt() or sprintf. + +d_access (d_access.U): + This variable conditionally defines HAS_ACCESS if the access() system + call is available to check for access permissions using real IDs. + +d_alarm (d_alarm.U): + This variable conditionally defines the HAS_ALARM symbol, which + indicates to the C program that the alarm() routine is available. + +d_archlib (archlib.U): + This variable conditionally defines ARCHLIB to hold the pathname + of architecture-dependent library files for $package. If + $archlib is the same as $privlib, then this is set to undef. + +d_attribut (d_attribut.U): + This variable conditionally defines HASATTRIBUTE, which + indicates the C compiler can check for function attributes, + such as printf formats. + +d_bcmp (d_bcmp.U): + This variable conditionally defines the HAS_BCMP symbol if + the bcmp() routine is available to compare strings. + +d_bcopy (d_bcopy.U): + This variable conditionally defines the HAS_BCOPY symbol if + the bcopy() routine is available to copy strings. + +d_bsd (Guess.U): + This symbol conditionally defines the symbol BSD when running on a + BSD system. + +d_bsdgetpgrp (d_getpgrp.U): + This variable conditionally defines USE_BSD_GETPGRP if + getpgrp needs one arguments whereas USG one needs none. + +d_bsdsetpgrp (d_setpgrp.U): + This variable conditionally defines USE_BSD_SETPGRP if + setpgrp needs two arguments whereas USG one needs none. + See also d_setpgid for a POSIX interface. + +d_bzero (d_bzero.U): + This variable conditionally defines the HAS_BZERO symbol if + the bzero() routine is available to set memory to 0. + +d_casti32 (d_casti32.U): + This variable conditionally defines CASTI32, which indicates + whether the C compiler can cast large floats to 32-bit ints. + +d_castneg (d_castneg.U): + This variable conditionally defines CASTNEG, which indicates + wether the C compiler can cast negative float to unsigned. + +d_charvspr (d_vprintf.U): + This variable conditionally defines CHARVSPRINTF if this system + has vsprintf returning type (char*). The trend seems to be to + declare it as "int vsprintf()". + +d_chown (d_chown.U): + This variable conditionally defines the HAS_CHOWN symbol, which + indicates to the C program that the chown() routine is available. + +d_chroot (d_chroot.U): + This variable conditionally defines the HAS_CHROOT symbol, which + indicates to the C program that the chroot() routine is available. + +d_chsize (d_chsize.U): + This variable conditionally defines the CHSIZE symbol, which + indicates to the C program that the chsize() routine is available + to truncate files. You might need a -lx to get this routine. + +d_closedir (d_closedir.U): + This variable conditionally defines HAS_CLOSEDIR if closedir() is + available. + +d_const (d_const.U): + This variable conditionally defines the HASCONST symbol, which + indicates to the C program that this C compiler knows about the + const type. + +d_crypt (d_crypt.U): + This variable conditionally defines the CRYPT symbol, which + indicates to the C program that the crypt() routine is available + to encrypt passwords and the like. + +d_csh (d_csh.U): + This variable conditionally defines the CSH symbol, which + indicates to the C program that the C-shell exists. + +d_cuserid (d_cuserid.U): + This variable conditionally defines the HAS_CUSERID symbol, which + indicates to the C program that the cuserid() routine is available + to get character login names. + +d_dbl_dig (d_dbl_dig.U): + This variable conditionally defines d_dbl_dig if this system's + header files provide DBL_DIG, which is the number of significant + digits in a double precision number. + +d_difftime (d_difftime.U): + This variable conditionally defines the HAS_DIFFTIME symbol, which + indicates to the C program that the difftime() routine is available. + +d_dirnamlen (i_dirent.U): + This variable conditionally defines DIRNAMLEN, which indicates + to the C program that the length of directory entry names is + provided by a d_namelen field. + +d_dlerror (d_dlerror.U): + This variable conditionally defines the HAS_DLERROR symbol, which + indicates to the C program that the dlerror() routine is available. + +d_dlopen (d_dlopen.U): + This variable conditionally defines the HAS_DLOPEN symbol, which + indicates to the C program that the dlopen() routine is available. + +d_dlsymun (d_dlsymun.U): + This variable conditionally defines DLSYM_NEEDS_UNDERSCORE, which + indicates that we need to prepend an underscore to the symbol + name before calling dlsym(). + +d_dosuid (d_dosuid.U): + This variable conditionally defines the symbol DOSUID, which + tells the C program that it should insert setuid emulation code + on hosts which have setuid #! scripts disabled. + +d_dup2 (d_dup2.U): + This variable conditionally defines HAS_DUP2 if dup2() is + available to duplicate file descriptors. + +d_endgrent (d_endgrent.U): + This variable conditionally defines the HAS_ENDGRENT symbol, which + indicates to the C program that the endgrent() routine is available + for sequential access of the group database. + +d_endhent (d_endhent.U): + This variable conditionally defines HAS_ENDHOSTENT if endhostent() is + available to close whatever was being used for host queries. + +d_endnent (d_endnent.U): + This variable conditionally defines HAS_ENDNETENT if endnetent() is + available to close whatever was being used for network queries. + +d_endpent (d_endpent.U): + This variable conditionally defines HAS_ENDPROTOENT if endprotoent() is + available to close whatever was being used for protocol queries. + +d_endpwent (d_endpwent.U): + This variable conditionally defines the HAS_ENDPWENT symbol, which + indicates to the C program that the endpwent() routine is available + for sequential access of the passwd database. + +d_endsent (d_endsent.U): + This variable conditionally defines HAS_ENDSERVENT if endservent() is + available to close whatever was being used for service queries. + +d_eofnblk (nblock_io.U): + This variable conditionally defines EOF_NONBLOCK if EOF can be seen + when reading from a non-blocking I/O source. + +d_eunice (Guess.U): + This variable conditionally defines the symbols EUNICE and VAX, which + alerts the C program that it must deal with ideosyncracies of VMS. + +d_fchmod (d_fchmod.U): + This variable conditionally defines the HAS_FCHMOD symbol, which + indicates to the C program that the fchmod() routine is available + to change mode of opened files. + +d_fchown (d_fchown.U): + This variable conditionally defines the HAS_FCHOWN symbol, which + indicates to the C program that the fchown() routine is available + to change ownership of opened files. + +d_fcntl (d_fcntl.U): + This variable conditionally defines the HAS_FCNTL symbol, and indicates + whether the fcntl() function exists + +d_fd_macros (d_fd_set.U): + This variable contains the eventual value of the HAS_FD_MACROS symbol, + which indicates if your C compiler knows about the macros which + manipulate an fd_set. + +d_fd_set (d_fd_set.U): + This variable contains the eventual value of the HAS_FD_SET symbol, + which indicates if your C compiler knows about the fd_set typedef. + +d_fds_bits (d_fd_set.U): + This variable contains the eventual value of the HAS_FDS_BITS symbol, + which indicates if your fd_set typedef contains the fds_bits member. + If you have an fd_set typedef, but the dweebs who installed it did + a half-fast job and neglected to provide the macros to manipulate + an fd_set, HAS_FDS_BITS will let us know how to fix the gaffe. + +d_fgetpos (d_fgetpos.U): + This variable conditionally defines HAS_FGETPOS if fgetpos() is + available to get the file position indicator. + +d_flexfnam (d_flexfnam.U): + This variable conditionally defines the FLEXFILENAMES symbol, which + indicates that the system supports filenames longer than 14 characters. + +d_flock (d_flock.U): + This variable conditionally defines HAS_FLOCK if flock() is + available to do file locking. + +d_fork (d_fork.U): + This variable conditionally defines the HAS_FORK symbol, which + indicates to the C program that the fork() routine is available. + +d_fpathconf (d_pathconf.U): + This variable conditionally defines the HAS_FPATHCONF symbol, which + indicates to the C program that the pathconf() routine is available + to determine file-system related limits and options associated + with a given open file descriptor. + +d_fsetpos (d_fsetpos.U): + This variable conditionally defines HAS_FSETPOS if fsetpos() is + available to set the file position indicator. + +d_ftime (d_ftime.U): + This variable conditionally defines the HAS_FTIME symbol, which indicates + that the ftime() routine exists. The ftime() routine is basically + a sub-second accuracy clock. + +d_getgrent (d_getgrent.U): + This variable conditionally defines the HAS_GETGRENT symbol, which + indicates to the C program that the getgrent() routine is available + for sequential access of the group database. + +d_getgrps (d_getgrps.U): + This variable conditionally defines the HAS_GETGROUPS symbol, which + indicates to the C program that the getgroups() routine is available + to get the list of process groups. + +d_gethbyaddr (d_gethbyad.U): + This variable conditionally defines the HAS_GETHOSTBYADDR symbol, which + indicates to the C program that the gethostbyaddr() routine is available + to look up hosts by their IP addresses. + +d_gethbyname (d_gethbynm.U): + This variable conditionally defines the HAS_GETHOSTBYNAME symbol, which + indicates to the C program that the gethostbyname() routine is available + to look up host names in some data base or other. + +d_gethent (d_gethent.U): + This variable conditionally defines HAS_GETHOSTENT if gethostent() is + available to look up host names in some data base or another. + +d_gethname (d_gethname.U): + This variable conditionally defines the HAS_GETHOSTNAME symbol, which + indicates to the C program that the gethostname() routine may be + used to derive the host name. + +d_gethostprotos (d_gethostprotos.U): + This variable conditionally defines the HAS_GETHOST_PROTOS symbol, + which indicates to the C program that <netdb.h> supplies + prototypes for the various gethost*() functions. + See also netdbtype.U for probing for various netdb types. + +d_getlogin (d_getlogin.U): + This variable conditionally defines the HAS_GETLOGIN symbol, which + indicates to the C program that the getlogin() routine is available + to get the login name. + +d_getnbyaddr (d_getnbyad.U): + This variable conditionally defines the HAS_GETNETBYADDR symbol, which + indicates to the C program that the getnetbyaddr() routine is available + to look up networks by their IP addresses. + +d_getnbyname (d_getnbynm.U): + This variable conditionally defines the HAS_GETNETBYNAME symbol, which + indicates to the C program that the getnetbyname() routine is available + to look up networks by their names. + +d_getnent (d_getnent.U): + This variable conditionally defines HAS_GETNETENT if getnetent() is + available to look up network names in some data base or another. + +d_getnetprotos (d_getnetprotos.U): + This variable conditionally defines the HAS_GETNET_PROTOS symbol, + which indicates to the C program that <netdb.h> supplies + prototypes for the various getnet*() functions. + See also netdbtype.U for probing for various netdb types. + +d_getpbyname (d_getprotby.U): + This variable conditionally defines the HAS_GETPROTOBYNAME + symbol, which indicates to the C program that the + getprotobyname() routine is available to look up protocols + by their name. + +d_getpbynumber (d_getprotby.U): + This variable conditionally defines the HAS_GETPROTOBYNUMBER + symbol, which indicates to the C program that the + getprotobynumber() routine is available to look up protocols + by their number. + +d_getpent (d_getpent.U): + This variable conditionally defines HAS_GETPROTOENT if getprotoent() is + available to look up protocols in some data base or another. + +d_getpgid (d_getpgid.U): + This variable conditionally defines the HAS_GETPGID symbol, which + indicates to the C program that the getpgid(pid) function + is available to get the process group id. + +d_getpgrp2 (d_getpgrp2.U): + This variable conditionally defines the HAS_GETPGRP2 symbol, which + indicates to the C program that the getpgrp2() (as in DG/UX) routine + is available to get the current process group. + +d_getpgrp (d_getpgrp.U): + This variable conditionally defines HAS_GETPGRP if getpgrp() is + available to get the current process group. + +d_getppid (d_getppid.U): + This variable conditionally defines the HAS_GETPPID symbol, which + indicates to the C program that the getppid() routine is available + to get the parent process ID. + +d_getprior (d_getprior.U): + This variable conditionally defines HAS_GETPRIORITY if getpriority() + is available to get a process's priority. + +d_getprotoprotos (d_getprotoprotos.U): + This variable conditionally defines the HAS_GETPROTO_PROTOS symbol, + which indicates to the C program that <netdb.h> supplies + prototypes for the various getproto*() functions. + See also netdbtype.U for probing for various netdb types. + +d_getpwent (d_getpwent.U): + This variable conditionally defines the HAS_GETPWENT symbol, which + indicates to the C program that the getpwent() routine is available + for sequential access of the passwd database. + +d_getsbyname (d_getsrvby.U): + This variable conditionally defines the HAS_GETSERVBYNAME + symbol, which indicates to the C program that the + getservbyname() routine is available to look up services + by their name. + +d_getsbyport (d_getsrvby.U): + This variable conditionally defines the HAS_GETSERVBYPORT + symbol, which indicates to the C program that the + getservbyport() routine is available to look up services + by their port. + +d_getsent (d_getsent.U): + This variable conditionally defines HAS_GETSERVENT if getservent() is + available to look up network services in some data base or another. + +d_getservprotos (d_getservprotos.U): + This variable conditionally defines the HAS_GETSERV_PROTOS symbol, + which indicates to the C program that <netdb.h> supplies + prototypes for the various getserv*() functions. + See also netdbtype.U for probing for various netdb types. + +d_gettimeod (d_ftime.U): + This variable conditionally defines the HAS_GETTIMEOFDAY symbol, which + indicates that the gettimeofday() system call exists (to obtain a + sub-second accuracy clock). You should probably include <sys/resource.h>. + +d_gnulibc (d_gnulibc.U): + Defined if we're dealing with the GNU C Library. + +d_grpasswd (i_grp.U): + This variable conditionally defines GRPASSWD, which indicates + that struct group in <grp.h> contains gr_passwd. + +d_htonl (d_htonl.U): + This variable conditionally defines HAS_HTONL if htonl() and its + friends are available to do network order byte swapping. + +d_index (d_strchr.U): + This variable conditionally defines HAS_INDEX if index() and + rindex() are available for string searching. + +d_inetaton (d_inetaton.U): + This variable conditionally defines the HAS_INET_ATON symbol, which + indicates to the C program that the inet_aton() function is available + to parse IP address "dotted-quad" strings. + +d_isascii (d_isascii.U): + This variable conditionally defines the HAS_ISASCII constant, + which indicates to the C program that isascii() is available. + +d_killpg (d_killpg.U): + This variable conditionally defines the HAS_KILLPG symbol, which + indicates to the C program that the killpg() routine is available + to kill process groups. + +d_lchown (d_lchown.U): + This variable conditionally defines the HAS_LCHOWN symbol, which + indicates to the C program that the lchown() routine is available + to operate on a symbolic link (instead of following the link). + +d_link (d_link.U): + This variable conditionally defines HAS_LINK if link() is + available to create hard links. + +d_locconv (d_locconv.U): + This variable conditionally defines HAS_LOCALECONV if localeconv() is + available for numeric and monetary formatting conventions. + +d_lockf (d_lockf.U): + This variable conditionally defines HAS_LOCKF if lockf() is + available to do file locking. + +d_longdbl (d_longdbl.U): + This variable conditionally defines HAS_LONG_DOUBLE if + the long double type is supported. + +d_longlong (d_longlong.U): + This variable conditionally defines HAS_LONG_LONG if + the long long type is supported. + +d_lstat (d_lstat.U): + This variable conditionally defines HAS_LSTAT if lstat() is + available to do file stats on symbolic links. + +d_mblen (d_mblen.U): + This variable conditionally defines the HAS_MBLEN symbol, which + indicates to the C program that the mblen() routine is available + to find the number of bytes in a multibye character. + +d_mbstowcs (d_mbstowcs.U): + This variable conditionally defines the HAS_MBSTOWCS symbol, which + indicates to the C program that the mbstowcs() routine is available + to convert a multibyte string into a wide character string. + +d_mbtowc (d_mbtowc.U): + This variable conditionally defines the HAS_MBTOWC symbol, which + indicates to the C program that the mbtowc() routine is available + to convert multibyte to a wide character. + +d_memcmp (d_memcmp.U): + This variable conditionally defines the HAS_MEMCMP symbol, which + indicates to the C program that the memcmp() routine is available + to compare blocks of memory. + +d_memcpy (d_memcpy.U): + This variable conditionally defines the HAS_MEMCPY symbol, which + indicates to the C program that the memcpy() routine is available + to copy blocks of memory. + +d_memmove (d_memmove.U): + This variable conditionally defines the HAS_MEMMOVE symbol, which + indicates to the C program that the memmove() routine is available + to copy potentatially overlapping blocks of memory. + +d_memset (d_memset.U): + This variable conditionally defines the HAS_MEMSET symbol, which + indicates to the C program that the memset() routine is available + to set blocks of memory. + +d_mkdir (d_mkdir.U): + This variable conditionally defines the HAS_MKDIR symbol, which + indicates to the C program that the mkdir() routine is available + to create directories.. + +d_mkfifo (d_mkfifo.U): + This variable conditionally defines the HAS_MKFIFO symbol, which + indicates to the C program that the mkfifo() routine is available. + +d_mktime (d_mktime.U): + This variable conditionally defines the HAS_MKTIME symbol, which + indicates to the C program that the mktime() routine is available. + +d_msg (d_msg.U): + This variable conditionally defines the HAS_MSG symbol, which + indicates that the entire msg*(2) library is present. + +d_msgctl (d_msgctl.U): + This variable conditionally defines the HAS_MSGCTL symbol, which + indicates to the C program that the msgctl() routine is available. + +d_msgget (d_msgget.U): + This variable conditionally defines the HAS_MSGGET symbol, which + indicates to the C program that the msgget() routine is available. + +d_msgrcv (d_msgrcv.U): + This variable conditionally defines the HAS_MSGRCV symbol, which + indicates to the C program that the msgrcv() routine is available. + +d_msgsnd (d_msgsnd.U): + This variable conditionally defines the HAS_MSGSND symbol, which + indicates to the C program that the msgsnd() routine is available. + +d_mymalloc (mallocsrc.U): + This variable conditionally defines MYMALLOC in case other parts + of the source want to take special action if MYMALLOC is used. + This may include different sorts of profiling or error detection. + +d_nice (d_nice.U): + This variable conditionally defines the HAS_NICE symbol, which + indicates to the C program that the nice() routine is available. + +d_oldpthreads (usethreads.U): + This variable conditionally defines the OLD_PTHREADS_API symbol, + and indicates that Perl should be built to use the old + draft POSIX threads API. This is only potneially meaningful if + usethreads is set. + +d_oldsock (d_socket.U): + This variable conditionally defines the OLDSOCKET symbol, which + indicates that the BSD socket interface is based on 4.1c and not 4.2. + +d_open3 (d_open3.U): + This variable conditionally defines the HAS_OPEN3 manifest constant, + which indicates to the C program that the 3 argument version of + the open(2) function is available. + +d_pathconf (d_pathconf.U): + This variable conditionally defines the HAS_PATHCONF symbol, which + indicates to the C program that the pathconf() routine is available + to determine file-system related limits and options associated + with a given filename. + +d_pause (d_pause.U): + This variable conditionally defines the HAS_PAUSE symbol, which + indicates to the C program that the pause() routine is available + to suspend a process until a signal is received. + +d_phostname (d_gethname.U): + This variable conditionally defines the PHOSTNAME symbol, which + contains the shell command which, when fed to popen(), may be + used to derive the host name. + +d_pipe (d_pipe.U): + This variable conditionally defines the HAS_PIPE symbol, which + indicates to the C program that the pipe() routine is available + to create an inter-process channel. + +d_poll (d_poll.U): + This variable conditionally defines the HAS_POLL symbol, which + indicates to the C program that the poll() routine is available + to poll active file descriptors. + +d_portable (d_portable.U): + This variable conditionally defines the PORTABLE symbol, which + indicates to the C program that it should not assume that it is + running on the machine it was compiled on. + +d_pthread_yield (d_pthread_y.U): + This variable conditionally defines the HAS_PTHREAD_YIELD + symbol if the pthread_yield routine is available to yield + the execution of the current thread. + +d_pthreads_created_joinable (d_pthreadj.U): + This variable conditionally defines the PTHREADS_CREATED_JOINABLE + symbol if pthreads are created in the joinable (aka undetached) + state. + +d_pwage (i_pwd.U): + This variable conditionally defines PWAGE, which indicates + that struct passwd contains pw_age. + +d_pwchange (i_pwd.U): + This variable conditionally defines PWCHANGE, which indicates + that struct passwd contains pw_change. + +d_pwclass (i_pwd.U): + This variable conditionally defines PWCLASS, which indicates + that struct passwd contains pw_class. + +d_pwcomment (i_pwd.U): + This variable conditionally defines PWCOMMENT, which indicates + that struct passwd contains pw_comment. + +d_pwexpire (i_pwd.U): + This variable conditionally defines PWEXPIRE, which indicates + that struct passwd contains pw_expire. + +d_pwgecos (i_pwd.U): + This variable conditionally defines PWGECOS, which indicates + that struct passwd contains pw_gecos. + +d_pwpasswd (i_pwd.U): + This variable conditionally defines PWPASSWD, which indicates + that struct passwd contains pw_passwd. + +d_pwquota (i_pwd.U): + This variable conditionally defines PWQUOTA, which indicates + that struct passwd contains pw_quota. + +d_readdir (d_readdir.U): + This variable conditionally defines HAS_READDIR if readdir() is + available to read directory entries. + +d_readlink (d_readlink.U): + This variable conditionally defines the HAS_READLINK symbol, which + indicates to the C program that the readlink() routine is available + to read the value of a symbolic link. + +d_rename (d_rename.U): + This variable conditionally defines the HAS_RENAME symbol, which + indicates to the C program that the rename() routine is available + to rename files. + +d_rewinddir (d_readdir.U): + This variable conditionally defines HAS_REWINDDIR if rewinddir() is + available. + +d_rmdir (d_rmdir.U): + This variable conditionally defines HAS_RMDIR if rmdir() is + available to remove directories. + +d_safebcpy (d_safebcpy.U): + This variable conditionally defines the HAS_SAFE_BCOPY symbol if + the bcopy() routine can do overlapping copies. + +d_safemcpy (d_safemcpy.U): + This variable conditionally defines the HAS_SAFE_MEMCPY symbol if + the memcpy() routine can do overlapping copies. + +d_sanemcmp (d_sanemcmp.U): + This variable conditionally defines the HAS_SANE_MEMCMP symbol if + the memcpy() routine is available and can be used to compare relative + magnitudes of chars with their high bits set. + +d_sched_yield (d_pthread_y.U): + This variable conditionally defines the HAS_SCHED_YIELD + symbol if the sched_yield routine is available to yield + the execution of the current thread. + +d_seekdir (d_readdir.U): + This variable conditionally defines HAS_SEEKDIR if seekdir() is + available. + +d_select (d_select.U): + This variable conditionally defines HAS_SELECT if select() is + available to select active file descriptors. A <sys/time.h> + inclusion may be necessary for the timeout field. + +d_sem (d_sem.U): + This variable conditionally defines the HAS_SEM symbol, which + indicates that the entire sem*(2) library is present. + +d_semctl (d_semctl.U): + This variable conditionally defines the HAS_SEMCTL symbol, which + indicates to the C program that the semctl() routine is available. + +d_semctl_semid_ds (d_union_senum.U): + This variable conditionally defines USE_SEMCTL_SEMID_DS, which + indicates that struct semid_ds * is to be used for semctl IPC_STAT. + +d_semctl_semun (d_union_senum.U): + This variable conditionally defines USE_SEMCTL_SEMUN, which + indicates that union semun is to be used for semctl IPC_STAT. + +d_semget (d_semget.U): + This variable conditionally defines the HAS_SEMGET symbol, which + indicates to the C program that the semget() routine is available. + +d_semop (d_semop.U): + This variable conditionally defines the HAS_SEMOP symbol, which + indicates to the C program that the semop() routine is available. + +d_setegid (d_setegid.U): + This variable conditionally defines the HAS_SETEGID symbol, which + indicates to the C program that the setegid() routine is available + to change the effective gid of the current program. + +d_seteuid (d_seteuid.U): + This variable conditionally defines the HAS_SETEUID symbol, which + indicates to the C program that the seteuid() routine is available + to change the effective uid of the current program. + +d_setgrent (d_setgrent.U): + This variable conditionally defines the HAS_SETGRENT symbol, which + indicates to the C program that the setgrent() routine is available + for initializing sequential access to the group database. + +d_setgrps (d_setgrps.U): + This variable conditionally defines the HAS_SETGROUPS symbol, which + indicates to the C program that the setgroups() routine is available + to set the list of process groups. + +d_sethent (d_sethent.U): + This variable conditionally defines HAS_SETHOSTENT if sethostent() is + available. + +d_setlinebuf (d_setlnbuf.U): + This variable conditionally defines the HAS_SETLINEBUF symbol, which + indicates to the C program that the setlinebuf() routine is available + to change stderr or stdout from block-buffered or unbuffered to a + line-buffered mode. + +d_setlocale (d_setlocale.U): + This variable conditionally defines HAS_SETLOCALE if setlocale() is + available to handle locale-specific ctype implementations. + +d_setnent (d_setnent.U): + This variable conditionally defines HAS_SETNETENT if setnetent() is + available. + +d_setpent (d_setpent.U): + This variable conditionally defines HAS_SETPROTOENT if setprotoent() is + available. + +d_setpgid (d_setpgid.U): + This variable conditionally defines the HAS_SETPGID symbol if the + setpgid(pid, gpid) function is available to set process group ID. + +d_setpgrp2 (d_setpgrp2.U): + This variable conditionally defines the HAS_SETPGRP2 symbol, which + indicates to the C program that the setpgrp2() (as in DG/UX) routine + is available to set the current process group. + +d_setpgrp (d_setpgrp.U): + This variable conditionally defines HAS_SETPGRP if setpgrp() is + available to set the current process group. + +d_setprior (d_setprior.U): + This variable conditionally defines HAS_SETPRIORITY if setpriority() + is available to set a process's priority. + +d_setpwent (d_setpwent.U): + This variable conditionally defines the HAS_SETPWENT symbol, which + indicates to the C program that the setpwent() routine is available + for initializing sequential access to the passwd database. + +d_setregid (d_setregid.U): + This variable conditionally defines HAS_SETREGID if setregid() is + available to change the real and effective gid of the current + process. + +d_setresgid (d_setregid.U): + This variable conditionally defines HAS_SETRESGID if setresgid() is + available to change the real, effective and saved gid of the current + process. + +d_setresuid (d_setreuid.U): + This variable conditionally defines HAS_SETREUID if setresuid() is + available to change the real, effective and saved uid of the current + process. + +d_setreuid (d_setreuid.U): + This variable conditionally defines HAS_SETREUID if setreuid() is + available to change the real and effective uid of the current + process. + +d_setrgid (d_setrgid.U): + This variable conditionally defines the HAS_SETRGID symbol, which + indicates to the C program that the setrgid() routine is available + to change the real gid of the current program. + +d_setruid (d_setruid.U): + This variable conditionally defines the HAS_SETRUID symbol, which + indicates to the C program that the setruid() routine is available + to change the real uid of the current program. + +d_setsent (d_setsent.U): + This variable conditionally defines HAS_SETSERVENT if setservent() is + available. + +d_setsid (d_setsid.U): + This variable conditionally defines HAS_SETSID if setsid() is + available to set the process group ID. + +d_setvbuf (d_setvbuf.U): + This variable conditionally defines the HAS_SETVBUF symbol, which + indicates to the C program that the setvbuf() routine is available + to change buffering on an open stdio stream. + +d_sfio (d_sfio.U): + This variable conditionally defines the USE_SFIO symbol, + and indicates whether sfio is available (and should be used). + +d_shm (d_shm.U): + This variable conditionally defines the HAS_SHM symbol, which + indicates that the entire shm*(2) library is present. + +d_shmat (d_shmat.U): + This variable conditionally defines the HAS_SHMAT symbol, which + indicates to the C program that the shmat() routine is available. + +d_shmatprototype (d_shmat.U): + This variable conditionally defines the HAS_SHMAT_PROTOTYPE + symbol, which indicates that sys/shm.h has a prototype for + shmat. + +d_shmctl (d_shmctl.U): + This variable conditionally defines the HAS_SHMCTL symbol, which + indicates to the C program that the shmctl() routine is available. + +d_shmdt (d_shmdt.U): + This variable conditionally defines the HAS_SHMDT symbol, which + indicates to the C program that the shmdt() routine is available. + +d_shmget (d_shmget.U): + This variable conditionally defines the HAS_SHMGET symbol, which + indicates to the C program that the shmget() routine is available. + +d_sigaction (d_sigaction.U): + This variable conditionally defines the HAS_SIGACTION symbol, which + indicates that the Vr4 sigaction() routine is available. + +d_sigsetjmp (d_sigsetjmp.U): + This variable conditionally defines the HAS_SIGSETJMP symbol, + which indicates that the sigsetjmp() routine is available to + call setjmp() and optionally save the process's signal mask. + +d_socket (d_socket.U): + This variable conditionally defines HAS_SOCKET, which indicates + that the BSD socket interface is supported. + +d_sockpair (d_socket.U): + This variable conditionally defines the HAS_SOCKETPAIR symbol, which + indicates that the BSD socketpair() is supported. + +d_statblks (d_statblks.U): + This variable conditionally defines USE_STAT_BLOCKS if this system + has a stat structure declaring st_blksize and st_blocks. + +d_stdio_cnt_lval (d_stdstdio.U): + This variable conditionally defines STDIO_CNT_LVALUE if the + FILE_cnt macro can be used as an lvalue. + +d_stdio_ptr_lval (d_stdstdio.U): + This variable conditionally defines STDIO_PTR_LVALUE if the + FILE_ptr macro can be used as an lvalue. + +d_stdiobase (d_stdstdio.U): + This variable conditionally defines USE_STDIO_BASE if this system + has a FILE structure declaring a usable _base field (or equivalent) + in stdio.h. + +d_stdstdio (d_stdstdio.U): + This variable conditionally defines USE_STDIO_PTR if this system + has a FILE structure declaring usable _ptr and _cnt fields (or + equivalent) in stdio.h. + +d_strchr (d_strchr.U): + This variable conditionally defines HAS_STRCHR if strchr() and + strrchr() are available for string searching. + +d_strcoll (d_strcoll.U): + This variable conditionally defines HAS_STRCOLL if strcoll() is + available to compare strings using collating information. + +d_strctcpy (d_strctcpy.U): + This variable conditionally defines the USE_STRUCT_COPY symbol, which + indicates to the C program that this C compiler knows how to copy + structures. + +d_strerrm (d_strerror.U): + This variable holds what Strerrr is defined as to translate an error + code condition into an error message string. It could be 'strerror' + or a more complex macro emulating strrror with sys_errlist[], or the + "unknown" string when both strerror and sys_errlist are missing. + +d_strerror (d_strerror.U): + This variable conditionally defines HAS_STRERROR if strerror() is + available to translate error numbers to strings. + +d_strtod (d_strtod.U): + This variable conditionally defines the HAS_STRTOD symbol, which + indicates to the C program that the strtod() routine is available + to provide better numeric string conversion than atof(). + +d_strtol (d_strtol.U): + This variable conditionally defines the HAS_STRTOL symbol, which + indicates to the C program that the strtol() routine is available + to provide better numeric string conversion than atoi() and friends. + +d_strtoul (d_strtoul.U): + This variable conditionally defines the HAS_STRTOUL symbol, which + indicates to the C program that the strtoul() routine is available + to provide conversion of strings to unsigned long. + +d_strxfrm (d_strxfrm.U): + This variable conditionally defines HAS_STRXFRM if strxfrm() is + available to transform strings. + +d_suidsafe (d_dosuid.U): + This variable conditionally defines SETUID_SCRIPTS_ARE_SECURE_NOW + if setuid scripts can be secure. This test looks in /dev/fd/. + +d_symlink (d_symlink.U): + This variable conditionally defines the HAS_SYMLINK symbol, which + indicates to the C program that the symlink() routine is available + to create symbolic links. + +d_syscall (d_syscall.U): + This variable conditionally defines HAS_SYSCALL if syscall() is + available call arbitrary system calls. + +d_sysconf (d_sysconf.U): + This variable conditionally defines the HAS_SYSCONF symbol, which + indicates to the C program that the sysconf() routine is available + to determine system related limits and options. + +d_sysernlst (d_strerror.U): + This variable conditionally defines HAS_SYS_ERRNOLIST if sys_errnolist[] + is available to translate error numbers to the symbolic name. + +d_syserrlst (d_strerror.U): + This variable conditionally defines HAS_SYS_ERRLIST if sys_errlist[] is + available to translate error numbers to strings. + +d_system (d_system.U): + This variable conditionally defines HAS_SYSTEM if system() is + available to issue a shell command. + +d_tcgetpgrp (d_tcgtpgrp.U): + This variable conditionally defines the HAS_TCGETPGRP symbol, which + indicates to the C program that the tcgetpgrp() routine is available. + to get foreground process group ID. + +d_tcsetpgrp (d_tcstpgrp.U): + This variable conditionally defines the HAS_TCSETPGRP symbol, which + indicates to the C program that the tcsetpgrp() routine is available + to set foreground process group ID. + +d_telldir (d_readdir.U): + This variable conditionally defines HAS_TELLDIR if telldir() is + available. + +d_time (d_time.U): + This variable conditionally defines the HAS_TIME symbol, which indicates + that the time() routine exists. The time() routine is normaly + provided on UNIX systems. + +d_times (d_times.U): + This variable conditionally defines the HAS_TIMES symbol, which indicates + that the times() routine exists. The times() routine is normaly + provided on UNIX systems. You may have to include <sys/times.h>. + +d_truncate (d_truncate.U): + This variable conditionally defines HAS_TRUNCATE if truncate() is + available to truncate files. + +d_tzname (d_tzname.U): + This variable conditionally defines HAS_TZNAME if tzname[] is + available to access timezone names. + +d_umask (d_umask.U): + This variable conditionally defines the HAS_UMASK symbol, which + indicates to the C program that the umask() routine is available. + to set and get the value of the file creation mask. + +d_uname (d_gethname.U): + This variable conditionally defines the HAS_UNAME symbol, which + indicates to the C program that the uname() routine may be + used to derive the host name. + +d_union_semun (d_union_senum.U): + This variable conditionally defines HAS_UNION_SEMUN if the + union semun is defined by including <sys/sem.h>. + +d_vfork (d_vfork.U): + This variable conditionally defines the HAS_VFORK symbol, which + indicates the vfork() routine is available. + +d_void_closedir (d_closedir.U): + This variable conditionally defines VOID_CLOSEDIR if closedir() + does not return a value. + +d_voidsig (d_voidsig.U): + This variable conditionally defines VOIDSIG if this system + declares "void (*signal(...))()" in signal.h. The old way was to + declare it as "int (*signal(...))()". + +d_voidtty (i_sysioctl.U): + This variable conditionally defines USE_IOCNOTTY to indicate that the + ioctl() call with TIOCNOTTY should be used to void tty association. + Otherwise (on USG probably), it is enough to close the standard file + decriptors and do a setpgrp(). + +d_volatile (d_volatile.U): + This variable conditionally defines the HASVOLATILE symbol, which + indicates to the C program that this C compiler knows about the + volatile declaration. + +d_vprintf (d_vprintf.U): + This variable conditionally defines the HAS_VPRINTF symbol, which + indicates to the C program that the vprintf() routine is available + to printf with a pointer to an argument list. + +d_wait4 (d_wait4.U): + This variable conditionally defines the HAS_WAIT4 symbol, which + indicates the wait4() routine is available. + +d_waitpid (d_waitpid.U): + This variable conditionally defines HAS_WAITPID if waitpid() is + available to wait for child process. + +d_wcstombs (d_wcstombs.U): + This variable conditionally defines the HAS_WCSTOMBS symbol, which + indicates to the C program that the wcstombs() routine is available + to convert wide character strings to multibyte strings. + +d_wctomb (d_wctomb.U): + This variable conditionally defines the HAS_WCTOMB symbol, which + indicates to the C program that the wctomb() routine is available + to convert a wide character to a multibyte. + +d_xenix (Guess.U): + This variable conditionally defines the symbol XENIX, which alerts + the C program that it runs under Xenix. + +date (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the date program. After Configure runs, + the value is reset to a plain "date" and is not useful. + +db_hashtype (i_db.U): + This variable contains the type of the hash structure element + in the <db.h> header file. In older versions of DB, it was + int, while in newer ones it is u_int32_t. + +db_prefixtype (i_db.U): + This variable contains the type of the prefix structure element + in the <db.h> header file. In older versions of DB, it was + int, while in newer ones it is size_t. + +direntrytype (i_dirent.U): + This symbol is set to 'struct direct' or 'struct dirent' depending on + whether dirent is available or not. You should use this pseudo type to + portably declare your directory entries. + +dlext (dlext.U): + This variable contains the extension that is to be used for the + dynamically loaded modules that perl generaties. + +dlsrc (dlsrc.U): + This variable contains the name of the dynamic loading file that + will be used with the package. + +doublesize (doublesize.U): + This variable contains the value of the DOUBLESIZE symbol, which + indicates to the C program how many bytes there are in a double. + +dynamic_ext (Extensions.U): + This variable holds a list of XS extension files we want to + link dynamically into the package. It is used by Makefile. + +eagain (nblock_io.U): + This variable bears the symbolic errno code set by read() when no + data is present on the file and non-blocking I/O was enabled (otherwise, + read() blocks naturally). + +ebcdic (ebcdic.U): + This variable conditionally defines EBCDIC if this + system uses EBCDIC encoding. Among other things, this + means that the character ranges are not contiguous. + See trnl.U + +echo (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the echo program. After Configure runs, + the value is reset to a plain "echo" and is not useful. + +egrep (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the egrep program. After Configure runs, + the value is reset to a plain "egrep" and is not useful. + +emacs (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +eunicefix (Init.U): + When running under Eunice this variable contains a command which will + convert a shell script to the proper form of text file for it to be + executable by the shell. On other systems it is a no-op. + +exe_ext (Unix.U): + This is an old synonym for _exe. + +expr (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the expr program. After Configure runs, + the value is reset to a plain "expr" and is not useful. + +extensions (Extensions.U): + This variable holds a list of all extension files (both XS and + non-xs linked into the package. It is propagated to Config.pm + and is typically used to test whether a particular extesion + is available. + +find (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the find program. After Configure runs, + the value is reset to a plain "find" and is not useful. + +firstmakefile (Unix.U): + This variable defines the first file searched by make. On unix, + it is makefile (then Makefile). On case-insensitive systems, + it might be something else. This is only used to deal with + convoluted make depend tricks. + +flex (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +fpostype (fpostype.U): + This variable defines Fpos_t to be something like fpost_t, long, + uint, or whatever type is used to declare file positions in libc. + +freetype (mallocsrc.U): + This variable contains the return type of free(). It is usually + void, but occasionally int. + +full_csh (d_csh.U): + This variable contains the full pathname to 'csh', whether or + not the user has specified 'portability'. This is only used + in the compiled C program, and we assume that all systems which + can share this executable will have the same full pathname to + 'csh.' + +full_sed (Loc_sed.U): + This variable contains the full pathname to 'sed', whether or + not the user has specified 'portability'. This is only used + in the compiled C program, and we assume that all systems which + can share this executable will have the same full pathname to + 'sed.' + +gccversion (cc.U): + If GNU cc (gcc) is used, this variable holds '1' or '2' to + indicate whether the compiler is version 1 or 2. This is used in + setting some of the default cflags. It is set to '' if not gcc. + +gidtype (gidtype.U): + This variable defines Gid_t to be something like gid_t, int, + ushort, or whatever type is used to declare the return type + of getgid(). Typically, it is the type of group ids in the kernel. + +grep (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the grep program. After Configure runs, + the value is reset to a plain "grep" and is not useful. + +groupcat (nis.U): + This variable contains a command that produces the text of the + /etc/group file. This is normally "cat /etc/group", but can be + "ypcat group" when NIS is used. + +groupstype (groupstype.U): + This variable defines Groups_t to be something like gid_t, int, + ushort, or whatever type is used for the second argument to + getgroups() and setgroups(). Usually, this is the same as + gidtype (gid_t), but sometimes it isn't. + +gzip (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the gzip program. After Configure runs, + the value is reset to a plain "gzip" and is not useful. + +h_fcntl (h_fcntl.U): + This is variable gets set in various places to tell i_fcntl that + <fcntl.h> should be included. + +h_sysfile (h_sysfile.U): + This is variable gets set in various places to tell i_sys_file that + <sys/file.h> should be included. + +hint (Oldconfig.U): + Gives the type of hints used for previous answers. May be one of + "default", "recommended" or "previous". + +hostcat (nis.U): + This variable contains a command that produces the text of the + /etc/hosts file. This is normally "cat /etc/hosts", but can be + "ypcat hosts" when NIS is used. + +huge (models.U): + This variable contains a flag which will tell the C compiler and loader + to produce a program running with a huge memory model. If the + huge model is not supported, contains the flag to produce large + model programs. It is up to the Makefile to use this. + +i_arpainet (i_arpainet.U): + This variable conditionally defines the I_ARPA_INET symbol, + and indicates whether a C program should include <arpa/inet.h>. + +i_bsdioctl (i_sysioctl.U): + This variable conditionally defines the I_SYS_BSDIOCTL symbol, which + indicates to the C program that <sys/bsdioctl.h> exists and should + be included. + +i_db (i_db.U): + This variable conditionally defines the I_DB symbol, and indicates + whether a C program may include Berkeley's DB include file <db.h>. + +i_dbm (i_dbm.U): + This variable conditionally defines the I_DBM symbol, which + indicates to the C program that <dbm.h> exists and should + be included. + +i_dirent (i_dirent.U): + This variable conditionally defines I_DIRENT, which indicates + to the C program that it should include <dirent.h>. + +i_dld (i_dld.U): + This variable conditionally defines the I_DLD symbol, which + indicates to the C program that <dld.h> (GNU dynamic loading) + exists and should be included. + +i_dlfcn (i_dlfcn.U): + This variable conditionally defines the I_DLFCN symbol, which + indicates to the C program that <dlfcn.h> exists and should + be included. + +i_fcntl (i_fcntl.U): + This variable controls the value of I_FCNTL (which tells + the C program to include <fcntl.h>). + +i_float (i_float.U): + This variable conditionally defines the I_FLOAT symbol, and indicates + whether a C program may include <float.h> to get symbols like DBL_MAX + or DBL_MIN, i.e. machine dependent floating point values. + +i_gdbm (i_gdbm.U): + This variable conditionally defines the I_GDBM symbol, which + indicates to the C program that <gdbm.h> exists and should + be included. + +i_grp (i_grp.U): + This variable conditionally defines the I_GRP symbol, and indicates + whether a C program should include <grp.h>. + +i_limits (i_limits.U): + This variable conditionally defines the I_LIMITS symbol, and indicates + whether a C program may include <limits.h> to get symbols like WORD_BIT + and friends. + +i_locale (i_locale.U): + This variable conditionally defines the I_LOCALE symbol, + and indicates whether a C program should include <locale.h>. + +i_malloc (i_malloc.U): + This variable conditionally defines the I_MALLOC symbol, and indicates + whether a C program should include <malloc.h>. + +i_math (i_math.U): + This variable conditionally defines the I_MATH symbol, and indicates + whether a C program may include <math.h>. + +i_memory (i_memory.U): + This variable conditionally defines the I_MEMORY symbol, and indicates + whether a C program should include <memory.h>. + +i_ndbm (i_ndbm.U): + This variable conditionally defines the I_NDBM symbol, which + indicates to the C program that <ndbm.h> exists and should + be included. + +i_netdb (i_netdb.U): + This variable conditionally defines the I_NETDB symbol, and indicates + whether a C program should include <netdb.h>. + +i_neterrno (i_neterrno.U): + This variable conditionally defines the I_NET_ERRNO symbol, which + indicates to the C program that <net/errno.h> exists and should + be included. + +i_niin (i_niin.U): + This variable conditionally defines I_NETINET_IN, which indicates + to the C program that it should include <netinet/in.h>. Otherwise, + you may try <sys/in.h>. + +i_pwd (i_pwd.U): + This variable conditionally defines I_PWD, which indicates + to the C program that it should include <pwd.h>. + +i_rpcsvcdbm (i_dbm.U): + This variable conditionally defines the I_RPCSVC_DBM symbol, which + indicates to the C program that <rpcsvc/dbm.h> exists and should + be included. Some System V systems might need this instead of <dbm.h>. + +i_sfio (i_sfio.U): + This variable conditionally defines the I_SFIO symbol, + and indicates whether a C program should include <sfio.h>. + +i_sgtty (i_termio.U): + This variable conditionally defines the I_SGTTY symbol, which + indicates to the C program that it should include <sgtty.h> rather + than <termio.h>. + +i_stdarg (i_varhdr.U): + This variable conditionally defines the I_STDARG symbol, which + indicates to the C program that <stdarg.h> exists and should + be included. + +i_stddef (i_stddef.U): + This variable conditionally defines the I_STDDEF symbol, which + indicates to the C program that <stddef.h> exists and should + be included. + +i_stdlib (i_stdlib.U): + This variable conditionally defines the I_STDLIB symbol, which + indicates to the C program that <stdlib.h> exists and should + be included. + +i_string (i_string.U): + This variable conditionally defines the I_STRING symbol, which + indicates that <string.h> should be included rather than <strings.h>. + +i_sysdir (i_sysdir.U): + This variable conditionally defines the I_SYS_DIR symbol, and indicates + whether a C program should include <sys/dir.h>. + +i_sysfile (i_sysfile.U): + This variable conditionally defines the I_SYS_FILE symbol, and indicates + whether a C program should include <sys/file.h> to get R_OK and friends. + +i_sysfilio (i_sysioctl.U): + This variable conditionally defines the I_SYS_FILIO symbol, which + indicates to the C program that <sys/filio.h> exists and should + be included in preference to <sys/ioctl.h>. + +i_sysin (i_niin.U): + This variable conditionally defines I_SYS_IN, which indicates + to the C program that it should include <sys/in.h> instead of + <netinet/in.h>. + +i_sysioctl (i_sysioctl.U): + This variable conditionally defines the I_SYS_IOCTL symbol, which + indicates to the C program that <sys/ioctl.h> exists and should + be included. + +i_sysndir (i_sysndir.U): + This variable conditionally defines the I_SYS_NDIR symbol, and indicates + whether a C program should include <sys/ndir.h>. + +i_sysparam (i_sysparam.U): + This variable conditionally defines the I_SYS_PARAM symbol, and indicates + whether a C program should include <sys/param.h>. + +i_sysresrc (i_sysresrc.U): + This variable conditionally defines the I_SYS_RESOURCE symbol, + and indicates whether a C program should include <sys/resource.h>. + +i_sysselct (i_sysselct.U): + This variable conditionally defines I_SYS_SELECT, which indicates + to the C program that it should include <sys/select.h> in order to + get the definition of struct timeval. + +i_syssockio (i_sysioctl.U): + This variable conditionally defines I_SYS_SOCKIO to indicate to the + C program that socket ioctl codes may be found in <sys/sockio.h> + instead of <sys/ioctl.h>. + +i_sysstat (i_sysstat.U): + This variable conditionally defines the I_SYS_STAT symbol, + and indicates whether a C program should include <sys/stat.h>. + +i_systime (i_time.U): + This variable conditionally defines I_SYS_TIME, which indicates + to the C program that it should include <sys/time.h>. + +i_systimek (i_time.U): + This variable conditionally defines I_SYS_TIME_KERNEL, which + indicates to the C program that it should include <sys/time.h> + with KERNEL defined. + +i_systimes (i_systimes.U): + This variable conditionally defines the I_SYS_TIMES symbol, and indicates + whether a C program should include <sys/times.h>. + +i_systypes (i_systypes.U): + This variable conditionally defines the I_SYS_TYPES symbol, + and indicates whether a C program should include <sys/types.h>. + +i_sysun (i_sysun.U): + This variable conditionally defines I_SYS_UN, which indicates + to the C program that it should include <sys/un.h> to get UNIX + domain socket definitions. + +i_syswait (i_syswait.U): + This variable conditionally defines I_SYS_WAIT, which indicates + to the C program that it should include <sys/wait.h>. + +i_termio (i_termio.U): + This variable conditionally defines the I_TERMIO symbol, which + indicates to the C program that it should include <termio.h> rather + than <sgtty.h>. + +i_termios (i_termio.U): + This variable conditionally defines the I_TERMIOS symbol, which + indicates to the C program that the POSIX <termios.h> file is + to be included. + +i_time (i_time.U): + This variable conditionally defines I_TIME, which indicates + to the C program that it should include <time.h>. + +i_unistd (i_unistd.U): + This variable conditionally defines the I_UNISTD symbol, and indicates + whether a C program should include <unistd.h>. + +i_utime (i_utime.U): + This variable conditionally defines the I_UTIME symbol, and indicates + whether a C program should include <utime.h>. + +i_values (i_values.U): + This variable conditionally defines the I_VALUES symbol, and indicates + whether a C program may include <values.h> to get symbols like MAXLONG + and friends. + +i_varargs (i_varhdr.U): + This variable conditionally defines I_VARARGS, which indicates + to the C program that it should include <varargs.h>. + +i_varhdr (i_varhdr.U): + Contains the name of the header to be included to get va_dcl definition. + Typically one of varargs.h or stdarg.h. + +i_vfork (i_vfork.U): + This variable conditionally defines the I_VFORK symbol, and indicates + whether a C program should include vfork.h. + +incpath (usrinc.U): + This variable must preceed the normal include path to get hte + right one, as in "$incpath/usr/include" or "$incpath/usr/lib". + Value can be "" or "/bsd43" on mips. + +inews (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +installarchlib (archlib.U): + This variable is really the same as archlibexp but may differ on + those systems using AFS. For extra portability, only this variable + should be used in makefiles. + +installbin (bin.U): + This variable is the same as binexp unless AFS is running in which case + the user is explicitely prompted for it. This variable should always + be used in your makefiles for maximum portability. + +installman1dir (man1dir.U): + This variable is really the same as man1direxp, unless you are using + AFS in which case it points to the read/write location whereas + man1direxp only points to the read-only access location. For extra + portability, you should only use this variable within your makefiles. + +installman3dir (man3dir.U): + This variable is really the same as man3direxp, unless you are using + AFS in which case it points to the read/write location whereas + man3direxp only points to the read-only access location. For extra + portability, you should only use this variable within your makefiles. + +installprivlib (privlib.U): + This variable is really the same as privlibexp but may differ on + those systems using AFS. For extra portability, only this variable + should be used in makefiles. + +installscript (scriptdir.U): + This variable is usually the same as scriptdirexp, unless you are on + a system running AFS, in which case they may differ slightly. You + should always use this variable within your makefiles for portability. + +installsitearch (sitearch.U): + This variable is really the same as sitearchexp but may differ on + those systems using AFS. For extra portability, only this variable + should be used in makefiles. + +installsitelib (sitelib.U): + This variable is really the same as sitelibexp but may differ on + those systems using AFS. For extra portability, only this variable + should be used in makefiles. + +intsize (intsize.U): + This variable contains the value of the INTSIZE symbol, which + indicates to the C program how many bytes there are in an int. + +known_extensions (Extensions.U): + This variable holds a list of all XS extensions included in + the package. + +ksh (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +large (models.U): + This variable contains a flag which will tell the C compiler and loader + to produce a program running with a large memory model. It is up to + the Makefile to use this. + +ld (dlsrc.U): + This variable indicates the program to be used to link + libraries for dynamic loading. On some systems, it is 'ld'. + On ELF systems, it should be $cc. Mostly, we'll try to respect + the hint file setting. + +lddlflags (dlsrc.U): + This variable contains any special flags that might need to be + passed to $ld to create a shared library suitable for dynamic + loading. It is up to the makefile to use it. For hpux, it + should be '-b'. For sunos 4.1, it is empty. + +ldflags (ccflags.U): + This variable contains any additional C loader flags desired by + the user. It is up to the Makefile to use this. + +less (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the less program. After Configure runs, + the value is reset to a plain "less" and is not useful. + +lib_ext (Unix.U): + This is an old synonym for _a. + +libc (libc.U): + This variable contains the location of the C library. + +libperl (libperl.U): + The perl executable is obtained by linking perlmain.c with + libperl, any static extensions (usually just DynaLoader), + and any other libraries needed on this system. libperl + is usually libperl.a, but can also be libperl.so.xxx if + the user wishes to build a perl executable with a shared + library. + +libpth (libpth.U): + This variable holds the general path used to find libraries. It is + intended to be used by other units. + +libs (libs.U): + This variable holds the additional libraries we want to use. + It is up to the Makefile to deal with it. + +libswanted (Myinit.U): + This variable holds a list of all the libraries we want to + search. The order is chosen to pick up the c library + ahead of ucb or bsd libraries for SVR4. + +line (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the line program. After Configure runs, + the value is reset to a plain "line" and is not useful. + +lint (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +lkflags (ccflags.U): + This variable contains any additional C partial linker flags desired by + the user. It is up to the Makefile to use this. + +ln (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the ln program. After Configure runs, + the value is reset to a plain "ln" and is not useful. + +lns (lns.U): + This variable holds the name of the command to make + symbolic links (if they are supported). It can be used + in the Makefile. It is either 'ln -s' or 'ln' + +locincpth (ccflags.U): + This variable contains a list of additional directories to be + searched by the compiler. The appropriate '-I' directives will + be added to ccflags. This is intended to simplify setting + local directories from the Configure command line. + It's not much, but it parallels the loclibpth stuff in libpth.U. + +loclibpth (libpth.U): + This variable holds the paths used to find local libraries. It is + prepended to libpth, and is intended to be easily set from the + command line. + +longdblsize (d_longdbl.U): + This variable contains the value of the LONG_DOUBLESIZE symbol, which + indicates to the C program how many bytes there are in a long double, + if this system supports long doubles. + +longlongsize (d_longlong.U): + This variable contains the value of the LONGLONGSIZE symbol, which + indicates to the C program how many bytes there are in a long long, + if this system supports long long. + +longsize (intsize.U): + This variable contains the value of the LONGSIZE symbol, which + indicates to the C program how many bytes there are in a long. + +lp (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +lpr (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +ls (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the ls program. After Configure runs, + the value is reset to a plain "ls" and is not useful. + +lseektype (lseektype.U): + This variable defines lseektype to be something like off_t, long, + or whatever type is used to declare lseek offset's type in the + kernel (which also appears to be lseek's return type). + +mail (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +mailx (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +make (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the make program. After Configure runs, + the value is reset to a plain "make" and is not useful. + +make_set_make (make.U): + Some versions of 'make' set the variable MAKE. Others do not. + This variable contains the string to be included in Makefile.SH + so that MAKE is set if needed, and not if not needed. + Possible values are: + make_set_make='#' # If your make program handles this for you, + make_set_make="MAKE=$make" # if it doesn't. + I used a comment character so that we can distinguish a + 'set' value (from a previous config.sh or Configure '-D' option) + from an uncomputed value. + +mallocobj (mallocsrc.U): + This variable contains the name of the malloc.o that this package + generates, if that malloc.o is preferred over the system malloc. + Otherwise the value is null. This variable is intended for generating + Makefiles. See mallocsrc. + +mallocsrc (mallocsrc.U): + This variable contains the name of the malloc.c that comes with + the package, if that malloc.c is preferred over the system malloc. + Otherwise the value is null. This variable is intended for generating + Makefiles. + +malloctype (mallocsrc.U): + This variable contains the kind of ptr returned by malloc and realloc. + +man1dir (man1dir.U): + This variable contains the name of the directory in which manual + source pages are to be put. It is the responsibility of the + Makefile.SH to get the value of this into the proper command. + You must be prepared to do the ~name expansion yourself. + +man1direxp (man1dir.U): + This variable is the same as the man1dir variable, but is filename + expanded at configuration time, for convenient use in makefiles. + +man1ext (man1dir.U): + This variable contains the extension that the manual page should + have: one of 'n', 'l', or '1'. The Makefile must supply the '.'. + See man1dir. + +man3dir (man3dir.U): + This variable contains the name of the directory in which manual + source pages are to be put. It is the responsibility of the + Makefile.SH to get the value of this into the proper command. + You must be prepared to do the ~name expansion yourself. + +man3direxp (man3dir.U): + This variable is the same as the man3dir variable, but is filename + expanded at configuration time, for convenient use in makefiles. + +man3ext (man3dir.U): + This variable contains the extension that the manual page should + have: one of 'n', 'l', or '3'. The Makefile must supply the '.'. + See man3dir. + +medium (models.U): + This variable contains a flag which will tell the C compiler and loader + to produce a program running with a medium memory model. If the + medium model is not supported, contains the flag to produce large + model programs. It is up to the Makefile to use this. + +mips_type (usrinc.U): + This variable holds the environment type for the mips system. + Possible values are "BSD 4.3" and "System V". + +mkdir (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the mkdir program. After Configure runs, + the value is reset to a plain "mkdir" and is not useful. + +models (models.U): + This variable contains the list of memory models supported by this + system. Possible component values are none, split, unsplit, small, + medium, large, and huge. The component values are space separated. + +modetype (modetype.U): + This variable defines modetype to be something like mode_t, + int, unsigned short, or whatever type is used to declare file + modes for system calls. + +more (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the more program. After Configure runs, + the value is reset to a plain "more" and is not useful. + +mv (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +myarchname (archname.U): + This variable holds the architecture name computed by Configure in + a previous run. It is not intended to be perused by any user and + should never be set in a hint file. + +mydomain (myhostname.U): + This variable contains the eventual value of the MYDOMAIN symbol, + which is the domain of the host the program is going to run on. + The domain must be appended to myhostname to form a complete host name. + The dot comes with mydomain, and need not be supplied by the program. + +myhostname (myhostname.U): + This variable contains the eventual value of the MYHOSTNAME symbol, + which is the name of the host the program is going to run on. + The domain is not kept with hostname, but must be gotten from mydomain. + The dot comes with mydomain, and need not be supplied by the program. + +myuname (Oldconfig.U): + The output of 'uname -a' if available, otherwise the hostname. On Xenix, + pseudo variables assignments in the output are stripped, thank you. The + whole thing is then lower-cased. + +n (n.U): + This variable contains the '-n' flag if that is what causes the echo + command to suppress newline. Otherwise it is null. Correct usage is + $echo $n "prompt for a question: $c". + +netdb_hlen_type (netdbtype.U): + This variable holds the type used for the 2nd argument to + gethostbyaddr(). Usually, this is int or size_t or unsigned. + This is only useful if you have gethostbyaddr(), naturally. + +netdb_host_type (netdbtype.U): + This variable holds the type used for the 1st argument to + gethostbyaddr(). Usually, this is char * or void *, possibly + with or without a const prefix. + This is only useful if you have gethostbyaddr(), naturally. + +netdb_name_type (netdbtype.U): + This variable holds the type used for the argument to + gethostbyname(). Usually, this is char * or const char *. + This is only useful if you have gethostbyname(), naturally. + +netdb_net_type (netdbtype.U): + This variable holds the type used for the 1st argument to + getnetbyaddr(). Usually, this is int or long. + This is only useful if you have getnetbyaddr(), naturally. + +nm (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the nm program. After Configure runs, + the value is reset to a plain "nm" and is not useful. + +nm_opt (usenm.U): + This variable holds the options that may be necessary for nm. + +nm_so_opt (usenm.U): + This variable holds the options that may be necessary for nm + to work on a shared library but that can not be used on an + archive library. Currently, this is only used by Linux, where + nm --dynamic is *required* to get symbols from an ELF library which + has been stripped, but nm --dynamic is *fatal* on an archive library. + Maybe Linux should just always set usenm=false. + +nonxs_ext (Extensions.U): + This variable holds a list of all non-xs extensions included + in the package. All of them will be built. + +nroff (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the nroff program. After Configure runs, + the value is reset to a plain "nroff" and is not useful. + +o_nonblock (nblock_io.U): + This variable bears the symbol value to be used during open() or fcntl() + to turn on non-blocking I/O for a file descriptor. If you wish to switch + between blocking and non-blocking, you may try ioctl(FIOSNBIO) instead, + but that is only supported by some devices. + +obj_ext (Unix.U): + This is an old synonym for _o. + +optimize (ccflags.U): + This variable contains any optimizer/debugger flag that should be used. + It is up to the Makefile to use it. + +orderlib (orderlib.U): + This variable is "true" if the components of libraries must be ordered + (with `lorder $* | tsort`) before placing them in an archive. Set to + "false" if ranlib or ar can generate random libraries. + +osname (Oldconfig.U): + This variable contains the operating system name (e.g. sunos, + solaris, hpux, etc.). It can be useful later on for setting + defaults. Any spaces are replaced with underscores. It is set + to a null string if we can't figure it out. + +osvers (Oldconfig.U): + This variable contains the operating system version (e.g. + 4.1.3, 5.2, etc.). It is primarily used for helping select + an appropriate hints file, but might be useful elsewhere for + setting defaults. It is set to '' if we can't figure it out. + We try to be flexible about how much of the version number + to keep, e.g. if 4.1.1, 4.1.2, and 4.1.3 are essentially the + same for this package, hints files might just be os_4.0 or + os_4.1, etc., not keeping separate files for each little release. + +package (package.U): + This variable contains the name of the package being constructed. + It is primarily intended for the use of later Configure units. + +pager (pager.U): + This variable contains the name of the preferred pager on the system. + Usual values are (the full pathnames of) more, less, pg, or cat. + +passcat (nis.U): + This variable contains a command that produces the text of the + /etc/passwd file. This is normally "cat /etc/passwd", but can be + "ypcat passwd" when NIS is used. + +patchlevel (patchlevel.U): + The patchlevel level of this package. + The value of patchlevel comes from the patchlevel.h file. + +path_sep (Unix.U): + This is an old synonym for p_ in Head.U, the character + used to separate elements in the command shell search PATH. + +perl (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the perl program. After Configure runs, + the value is reset to a plain "perl" and is not useful. + +perladmin (perladmin.U): + Electronic mail address of the perl5 administrator. + +perlpath (perlpath.U): + This variable contains the eventual value of the PERLPATH symbol, + which contains the name of the perl interpreter to be used in + shell scripts and in the "eval 'exec'" idiom. + +pg (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the pg program. After Configure runs, + the value is reset to a plain "pg" and is not useful. + +phostname (myhostname.U): + This variable contains the eventual value of the PHOSTNAME symbol, + which is a command that can be fed to popen() to get the host name. + The program should probably not presume that the domain is or isn't + there already. + +pidtype (pidtype.U): + This variable defines PIDTYPE to be something like pid_t, int, + ushort, or whatever type is used to declare process ids in the kernel. + +plibpth (libpth.U): + Holds the private path used by Configure to find out the libraries. + Its value is prepend to libpth. This variable takes care of special + machines, like the mips. Usually, it should be empty. + +pmake (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +pr (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +prefix (prefix.U): + This variable holds the name of the directory below which the + user will install the package. Usually, this is /usr/local, and + executables go in /usr/local/bin, library stuff in /usr/local/lib, + man pages in /usr/local/man, etc. It is only used to set defaults + for things in bin.U, mansrc.U, privlib.U, or scriptdir.U. + +prefixexp (prefix.U): + This variable holds the full absolute path of the directory below + which the user will install the package. Derived from prefix. + +privlib (privlib.U): + This variable contains the eventual value of the PRIVLIB symbol, + which is the name of the private library for this package. It may + have a ~ on the front. It is up to the makefile to eventually create + this directory while performing installation (with ~ substitution). + +privlibexp (privlib.U): + This variable is the ~name expanded version of privlib, so that you + may use it directly in Makefiles or shell scripts. + +prototype (prototype.U): + This variable holds the eventual value of CAN_PROTOTYPE, which + indicates the C compiler can handle funciton prototypes. + +ptrsize (ptrsize.U): + This variable contains the value of the PTRSIZE symbol, which + indicates to the C program how many bytes there are in a pointer. + +randbits (randbits.U): + This variable contains the eventual value of the RANDBITS symbol, + which indicates to the C program how many bits of random number + the rand() function produces. + +ranlib (orderlib.U): + This variable is set to the pathname of the ranlib program, if it is + needed to generate random libraries. Set to ":" if ar can generate + random libraries or if random libraries are not supported + +rd_nodata (nblock_io.U): + This variable holds the return code from read() when no data is + present. It should be -1, but some systems return 0 when O_NDELAY is + used, which is a shame because you cannot make the difference between + no data and an EOF.. Sigh! + +rm (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the rm program. After Configure runs, + the value is reset to a plain "rm" and is not useful. + +rmail (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +runnm (usenm.U): + This variable contains 'true' or 'false' depending whether the + nm extraction should be performed or not, according to the value + of usenm and the flags on the Configure command line. + +scriptdir (scriptdir.U): + This variable holds the name of the directory in which the user wants + to put publicly scripts for the package in question. It is either + the same directory as for binaries, or a special one that can be + mounted across different architectures, like /usr/share. Programs + must be prepared to deal with ~name expansion. + +scriptdirexp (scriptdir.U): + This variable is the same as scriptdir, but is filename expanded + at configuration time, for programs not wanting to bother with it. + +sed (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the sed program. After Configure runs, + the value is reset to a plain "sed" and is not useful. + +selecttype (selecttype.U): + This variable holds the type used for the 2nd, 3rd, and 4th + arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET + is defined, and 'int *' otherwise. This is only useful if you + have select(), naturally. + +sendmail (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the sendmail program. After Configure runs, + the value is reset to a plain "sendmail" and is not useful. + +sh (sh.U): + This variable contains the full pathname of the shell used + on this system to execute Bourne shell scripts. Usually, this will be + /bin/sh, though it's possible that some systems will have /bin/ksh, + /bin/pdksh, /bin/ash, /bin/bash, or even something such as + D:/bin/sh.exe. + This unit comes before Options.U, so you can't set sh with a '-D' + option, though you can override this (and startsh) + with '-O -Dsh=/bin/whatever -Dstartsh=whatever' + +shar (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +sharpbang (spitshell.U): + This variable contains the string #! if this system supports that + construct. + +shmattype (d_shmat.U): + This symbol contains the type of pointer returned by shmat(). + It can be 'void *' or 'char *'. + +shortsize (intsize.U): + This variable contains the value of the SHORTSIZE symbol which + indicates to the C program how many bytes there are in a short. + +shrpenv (libperl.U): + If the user builds a shared libperl.so, then we need to tell the + 'perl' executable where it will be able to find the installed libperl.so. + One way to do this on some systems is to set the environment variable + LD_RUN_PATH to the directory that will be the final location of the + shared libperl.so. The makefile can use this with something like + $shrpenv $(CC) -o perl perlmain.o $libperl $libs + Typical values are + shrpenv="env LD_RUN_PATH=$archlibexp/CORE" + or + shrpenv='' + See the main perl Makefile.SH for actual working usage. + Alternatively, we might be able to use a command line option such + as -R $archlibexp/CORE (Solaris, NetBSD) or -Wl,-rpath + $archlibexp/CORE (Linux). + +shsharp (spitshell.U): + This variable tells further Configure units whether your sh can + handle # comments. + +sig_name (sig_name.U): + This variable holds the signal names, space separated. The leading + SIG in signal name is removed. A ZERO is prepended to the + list. This is currently not used. + +sig_name_init (sig_name.U): + This variable holds the signal names, enclosed in double quotes and + separated by commas, suitable for use in the SIG_NAME definition + below. A "ZERO" is prepended to the list, and the list is + terminated with a plain 0. The leading SIG in signal names + is removed. See sig_num. + +sig_num (sig_name.U): + This variable holds the signal numbers, comma separated. A 0 is + prepended to the list (corresponding to the fake SIGZERO), and + the list is terminated with a 0. Those numbers correspond to + the value of the signal listed in the same place within the + sig_name list. + +signal_t (d_voidsig.U): + This variable holds the type of the signal handler (void or int). + +sitearch (sitearch.U): + This variable contains the eventual value of the SITEARCH symbol, + which is the name of the private library for this package. It may + have a ~ on the front. It is up to the makefile to eventually create + this directory while performing installation (with ~ substitution). + +sitearchexp (sitearch.U): + This variable is the ~name expanded version of sitearch, so that you + may use it directly in Makefiles or shell scripts. + +sitelib (sitelib.U): + This variable contains the eventual value of the SITELIB symbol, + which is the name of the private library for this package. It may + have a ~ on the front. It is up to the makefile to eventually create + this directory while performing installation (with ~ substitution). + +sitelibexp (sitelib.U): + This variable is the ~name expanded version of sitelib, so that you + may use it directly in Makefiles or shell scripts. + +sizetype (sizetype.U): + This variable defines sizetype to be something like size_t, + unsigned long, or whatever type is used to declare length + parameters for string functions. + +sleep (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +smail (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +small (models.U): + This variable contains a flag which will tell the C compiler and loader + to produce a program running with a small memory model. It is up to + the Makefile to use this. + +so (so.U): + This variable holds the extension used to identify shared libraries + (also known as shared objects) on the system. Usually set to 'so'. + +sockethdr (d_socket.U): + This variable has any cpp '-I' flags needed for socket support. + +socketlib (d_socket.U): + This variable has the names of any libraries needed for socket support. + +sort (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the sort program. After Configure runs, + the value is reset to a plain "sort" and is not useful. + +spackage (package.U): + This variable contains the name of the package being constructed, + with the first letter uppercased, i.e. suitable for starting + sentences. + +spitshell (spitshell.U): + This variable contains the command necessary to spit out a runnable + shell on this system. It is either cat or a grep '-v' for # comments. + +split (models.U): + This variable contains a flag which will tell the C compiler and loader + to produce a program that will run in separate I and D space, for those + machines that support separation of instruction and data space. It is + up to the Makefile to use this. + +src (src.U): + This variable holds the path to the package source. It is up to + the Makefile to use this variable and set VPATH accordingly to + find the sources remotely. + +ssizetype (ssizetype.U): + This variable defines ssizetype to be something like ssize_t, + long or int. It is used by functions that return a count + of bytes or an error condition. It must be a signed type. + We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). + +startperl (startperl.U): + This variable contains the string to put on the front of a perl + script to make sure (hopefully) that it runs with perl and not some + shell. Of course, that leading line must be followed by the classical + perl idiom: + eval 'exec perl -S $0 ${1+"$@"}' + if $running_under_some_shell; + to guarantee perl startup should the shell execute the script. Note + that this magic incatation is not understood by csh. + +startsh (startsh.U): + This variable contains the string to put on the front of a shell + script to make sure (hopefully) that it runs with sh and not some + other shell. + +static_ext (Extensions.U): + This variable holds a list of XS extension files we want to + link statically into the package. It is used by Makefile. + +stdchar (stdchar.U): + This variable conditionally defines STDCHAR to be the type of char + used in stdio.h. It has the values "unsigned char" or "char". + +stdio_base (d_stdstdio.U): + This variable defines how, given a FILE pointer, fp, to access the + _base field (or equivalent) of stdio.h's FILE structure. This will + be used to define the macro FILE_base(fp). + +stdio_bufsiz (d_stdstdio.U): + This variable defines how, given a FILE pointer, fp, to determine + the number of bytes store in the I/O buffer pointer to by the + _base field (or equivalent) of stdio.h's FILE structure. This will + be used to define the macro FILE_bufsiz(fp). + +stdio_cnt (d_stdstdio.U): + This variable defines how, given a FILE pointer, fp, to access the + _cnt field (or equivalent) of stdio.h's FILE structure. This will + be used to define the macro FILE_cnt(fp). + +stdio_filbuf (d_stdstdio.U): + This variable defines how, given a FILE pointer, fp, to tell + stdio to refill it's internal buffers (?). This will + be used to define the macro FILE_filbuf(fp). + +stdio_ptr (d_stdstdio.U): + This variable defines how, given a FILE pointer, fp, to access the + _ptr field (or equivalent) of stdio.h's FILE structure. This will + be used to define the macro FILE_ptr(fp). + +strings (i_string.U): + This variable holds the full path of the string header that will be + used. Typically /usr/include/string.h or /usr/include/strings.h. + +submit (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +subversion (patchlevel.U): + The subversion level of this package. + The value of subversion comes from the patchlevel.h file. + This is unique to perl. + +sysman (sysman.U): + This variable holds the place where the manual is located on this + system. It is not the place where the user wants to put his manual + pages. Rather it is the place where Configure may look to find manual + for unix commands (section 1 of the manual usually). See mansrc. + +tail (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +tar (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +tbl (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +tee (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the tee program. After Configure runs, + the value is reset to a plain "tee" and is not useful. + +test (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the test program. After Configure runs, + the value is reset to a plain "test" and is not useful. + +timeincl (i_time.U): + This variable holds the full path of the included time header(s). + +timetype (d_time.U): + This variable 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). Anyway, the type Time_t should be used. + +touch (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the touch program. After Configure runs, + the value is reset to a plain "touch" and is not useful. + +tr (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the tr program. After Configure runs, + the value is reset to a plain "tr" and is not useful. + +trnl (trnl.U): + This variable contains the value to be passed to the tr(1) + command to transliterate a newline. Typical values are + '\012' and '\n'. This is needed for EBCDIC systems where + newline is not necessarily '\012'. + +troff (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +uidtype (uidtype.U): + This variable defines Uid_t to be something like uid_t, int, + ushort, or whatever type is used to declare user ids in the kernel. + +uname (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the uname program. After Configure runs, + the value is reset to a plain "uname" and is not useful. + +uniq (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the uniq program. After Configure runs, + the value is reset to a plain "uniq" and is not useful. + +usedl (dlsrc.U): + This variable indicates if the the system supports dynamic + loading of some sort. See also dlsrc and dlobj. + +usemymalloc (mallocsrc.U): + This variable contains y if the malloc that comes with this package + is desired over the system's version of malloc. People often include + special versions of malloc for effiency, but such versions are often + less portable. See also mallocsrc and mallocobj. + If this is 'y', then -lmalloc is removed from $libs. + +usenm (usenm.U): + This variable contains 'true' or 'false' depending whether the + nm extraction is wanted or not. + +useopcode (Extensions.U): + This variable holds either 'true' or 'false' to indicate + whether the Opcode extension should be used. The sole + use for this currently is to allow an easy mechanism + for users to skip the Opcode extension from the Configure + command line. + +useperlio (useperlio.U): + This variable conditionally defines the USE_PERLIO symbol, + and indicates that the PerlIO abstraction should be + used throughout. + +useposix (Extensions.U): + This variable holds either 'true' or 'false' to indicate + whether the POSIX extension should be used. The sole + use for this currently is to allow an easy mechanism + for hints files to indicate that POSIX will not compile + on a particular system. + +usesfio (d_sfio.U): + This variable is set to true when the user agrees to use sfio. + It is set to false when sfio is not available or when the user + explicitely requests not to use sfio. It is here primarily so + that command-line settings can override the auto-detection of + d_sfio without running into a "WHOA THERE". + +useshrplib (libperl.U): + This variable is set to 'yes' if the user wishes + to build a shared libperl, and 'no' otherwise. + +usethreads (usethreads.U): + This variable conditionally defines the USE_THREADS symbol, + and indicates that Perl should be built to use threads. + +usevfork (d_vfork.U): + This variable is set to true when the user accepts to use vfork. + It is set to false when no vfork is available or when the user + explicitely requests not to use vfork. + +usrinc (usrinc.U): + This variable holds the path of the include files, which is + usually /usr/include. It is mainly used by other Configure units. + +uuname (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +version (patchlevel.U): + The full version number of this package. This combines + baserev, patchlevel, and subversion to get the full + version number, including any possible subversions. Care + is taken to use the C locale in order to get something + like 5.004 instead of 5,004. This is unique to perl. + +vi (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +voidflags (voidflags.U): + This variable contains the eventual value of the VOIDFLAGS symbol, + which indicates how much support of the void type is given by this + compiler. See VOIDFLAGS for more info. + +zcat (Loc.U): + This variable is defined but not used by Configure. + The value is a plain '' and is not useful. + +zip (Loc.U): + This variable is be used internally by Configure to determine the + full pathname (if any) of the zip program. After Configure runs, + the value is reset to a plain "zip" and is not useful. + diff --git a/contrib/perl5/Porting/config.sh b/contrib/perl5/Porting/config.sh new file mode 100644 index 0000000000000..20e1c4cfd7894 --- /dev/null +++ b/contrib/perl5/Porting/config.sh @@ -0,0 +1,585 @@ +#!/bin/sh +# +# This file was produced by running the Configure script. It holds all the +# definitions figured out by Configure. Should you modify one of these values, +# do not forget to propagate your changes by running "Configure -der". You may +# instead choose to run each of the .SH files by yourself, or "Configure -S". +# + +# Package name : perl5 +# Source directory : . +# Configuration time: Tue Jul 21 10:03:27 EDT 1998 +# Configured by : doughera +# Target system : linux fractal 2.0.34 #1 tue jun 23 10:09:17 edt 1998 i686 unknown + +Author='' +Date='$Date' +Header='' +Id='$Id' +Locker='' +Log='$Log' +Mcc='Mcc' +RCSfile='$RCSfile' +Revision='$Revision' +Source='' +State='' +_a='.a' +_exe='' +_o='.o' +afs='false' +alignbytes='4' +ansi2knr='' +aphostname='' +apiversion='5.005' +ar='ar' +archlib='/opt/perl/lib/5.005/i686-linux-thread' +archlibexp='/opt/perl/lib/5.005/i686-linux-thread' +archname='i686-linux-thread' +archobjs='' +awk='awk' +baserev='5.0' +bash='' +bin='/opt/perl/bin' +binexp='/opt/perl/bin' +bison='' +byacc='byacc' +byteorder='1234' +c='' +castflags='0' +cat='cat' +cc='cc' +cccdlflags='-fpic' +ccdlflags='-rdynamic' +ccflags='-D_REENTRANT -Dbool=char -DHAS_BOOL -I/usr/local/include' +cf_by='doughera' +cf_email='yourname@yourhost.yourplace.com' +cf_time='Tue Jul 21 10:03:27 EDT 1998' +chgrp='' +chmod='' +chown='' +clocktype='clock_t' +comm='comm' +compress='' +contains='grep' +cp='cp' +cpio='' +cpp='cpp' +cpp_stuff='42' +cppflags='-D_REENTRANT -Dbool=char -DHAS_BOOL -I/usr/local/include' +cpplast='-' +cppminus='-' +cpprun='cc -E' +cppstdin='cc -E' +cryptlib='' +csh='csh' +d_Gconvert='gcvt((x),(n),(b))' +d_access='define' +d_alarm='define' +d_archlib='define' +d_attribut='define' +d_bcmp='define' +d_bcopy='define' +d_bsd='undef' +d_bsdgetpgrp='undef' +d_bsdsetpgrp='undef' +d_bzero='define' +d_casti32='undef' +d_castneg='define' +d_charvspr='undef' +d_chown='define' +d_chroot='define' +d_chsize='undef' +d_closedir='define' +d_const='define' +d_crypt='define' +d_csh='define' +d_cuserid='define' +d_dbl_dig='define' +d_difftime='define' +d_dirnamlen='undef' +d_dlerror='define' +d_dlopen='define' +d_dlsymun='undef' +d_dosuid='undef' +d_dup2='define' +d_endgrent='define' +d_endhent='define' +d_endnent='define' +d_endpent='define' +d_endpwent='define' +d_endsent='define' +d_eofnblk='define' +d_eunice='undef' +d_fchmod='define' +d_fchown='define' +d_fcntl='define' +d_fd_macros='define' +d_fd_set='define' +d_fds_bits='define' +d_fgetpos='define' +d_flexfnam='define' +d_flock='define' +d_fork='define' +d_fpathconf='define' +d_fsetpos='define' +d_ftime='undef' +d_getgrent='define' +d_getgrps='define' +d_gethbyaddr='define' +d_gethbyname='define' +d_gethent='define' +d_gethname='undef' +d_gethostprotos='define' +d_getlogin='define' +d_getnbyaddr='define' +d_getnbyname='define' +d_getnent='define' +d_getnetprotos='define' +d_getpbyname='define' +d_getpbynumber='define' +d_getpent='define' +d_getpgid='define' +d_getpgrp2='undef' +d_getpgrp='define' +d_getppid='define' +d_getprior='define' +d_getprotoprotos='define' +d_getpwent='define' +d_getsbyname='define' +d_getsbyport='define' +d_getsent='define' +d_getservprotos='define' +d_gettimeod='define' +d_gnulibc='define' +d_grpasswd='define' +d_htonl='define' +d_index='undef' +d_inetaton='define' +d_isascii='define' +d_killpg='define' +d_lchown='undef' +d_link='define' +d_locconv='define' +d_lockf='define' +d_longdbl='define' +d_longlong='define' +d_lstat='define' +d_mblen='define' +d_mbstowcs='define' +d_mbtowc='define' +d_memcmp='define' +d_memcpy='define' +d_memmove='define' +d_memset='define' +d_mkdir='define' +d_mkfifo='define' +d_mktime='define' +d_msg='define' +d_msgctl='define' +d_msgget='define' +d_msgrcv='define' +d_msgsnd='define' +d_mymalloc='undef' +d_nice='define' +d_oldpthreads='undef' +d_oldsock='undef' +d_open3='define' +d_pathconf='define' +d_pause='define' +d_phostname='undef' +d_pipe='define' +d_poll='define' +d_portable='define' +d_pthread_yield='undef' +d_pthreads_created_joinable='define' +d_pwage='undef' +d_pwchange='undef' +d_pwclass='undef' +d_pwcomment='undef' +d_pwexpire='undef' +d_pwgecos='define' +d_pwquota='undef' +d_pwpasswd='define' +d_readdir='define' +d_readlink='define' +d_rename='define' +d_rewinddir='define' +d_rmdir='define' +d_safebcpy='define' +d_safemcpy='undef' +d_sanemcmp='define' +d_sched_yield='define' +d_seekdir='define' +d_select='define' +d_sem='define' +d_semctl='define' +d_semctl_semid_ds='define' +d_semctl_semun='define' +d_semget='define' +d_semop='define' +d_setegid='define' +d_seteuid='define' +d_setgrent='define' +d_setgrps='define' +d_sethent='define' +d_setlinebuf='define' +d_setlocale='define' +d_setnent='define' +d_setpent='define' +d_setpgid='define' +d_setpgrp2='undef' +d_setpgrp='define' +d_setprior='define' +d_setpwent='define' +d_setregid='define' +d_setresgid='undef' +d_setresuid='undef' +d_setreuid='define' +d_setrgid='undef' +d_setruid='undef' +d_setsent='define' +d_setsid='define' +d_setvbuf='define' +d_sfio='undef' +d_shm='define' +d_shmat='define' +d_shmatprototype='define' +d_shmctl='define' +d_shmdt='define' +d_shmget='define' +d_sigaction='define' +d_sigsetjmp='define' +d_socket='define' +d_sockpair='define' +d_statblks='undef' +d_stdio_cnt_lval='undef' +d_stdio_ptr_lval='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_strtoul='define' +d_strxfrm='define' +d_suidsafe='undef' +d_symlink='define' +d_syscall='define' +d_sysconf='define' +d_sysernlst='' +d_syserrlst='define' +d_system='define' +d_tcgetpgrp='define' +d_tcsetpgrp='define' +d_telldir='define' +d_time='define' +d_times='define' +d_truncate='define' +d_tzname='define' +d_umask='define' +d_uname='define' +d_union_semun='define' +d_vfork='undef' +d_void_closedir='undef' +d_voidsig='define' +d_voidtty='' +d_volatile='define' +d_vprintf='define' +d_wait4='define' +d_waitpid='define' +d_wcstombs='define' +d_wctomb='define' +d_xenix='undef' +date='date' +db_hashtype='u_int32_t' +db_prefixtype='size_t' +defvoidused='15' +direntrytype='struct dirent' +dlext='so' +dlsrc='dl_dlopen.xs' +doublesize='8' +dynamic_ext='B DB_File Data/Dumper Fcntl GDBM_File IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Thread attrs re' +eagain='EAGAIN' +ebcdic='undef' +echo='echo' +egrep='egrep' +emacs='' +eunicefix=':' +exe_ext='' +expr='expr' +extensions='B DB_File Data/Dumper Fcntl GDBM_File IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Thread attrs re Errno' +find='find' +firstmakefile='makefile' +flex='' +fpostype='fpos_t' +freetype='void' +full_csh='/bin/csh' +full_sed='/bin/sed' +gccversion='2.7.2.3' +gidtype='gid_t' +glibpth='/usr/shlib /shlib /lib/pa1.1 /usr/lib/large /lib /usr/lib /usr/lib/386 /lib/386 /lib/large /usr/lib/small /lib/small /usr/ccs/lib /usr/ucblib /usr/local/lib ' +grep='grep' +groupcat='cat /etc/group' +groupstype='gid_t' +gzip='gzip' +h_fcntl='false' +h_sysfile='true' +hint='recommended' +hostcat='cat /etc/hosts' +huge='' +i_arpainet='define' +i_bsdioctl='' +i_db='define' +i_dbm='define' +i_dirent='define' +i_dld='undef' +i_dlfcn='define' +i_fcntl='undef' +i_float='define' +i_gdbm='define' +i_grp='define' +i_limits='define' +i_locale='define' +i_malloc='define' +i_math='define' +i_memory='undef' +i_ndbm='define' +i_netdb='define' +i_neterrno='undef' +i_niin='define' +i_pwd='define' +i_rpcsvcdbm='undef' +i_sfio='undef' +i_sgtty='undef' +i_stdarg='define' +i_stddef='define' +i_stdlib='define' +i_string='define' +i_sysdir='define' +i_sysfile='define' +i_sysfilio='undef' +i_sysin='undef' +i_sysioctl='define' +i_sysndir='undef' +i_sysparam='define' +i_sysresrc='define' +i_sysselct='define' +i_syssockio='' +i_sysstat='define' +i_systime='define' +i_systimek='undef' +i_systimes='define' +i_systypes='define' +i_sysun='define' +i_syswait='define' +i_termio='undef' +i_termios='define' +i_time='undef' +i_unistd='define' +i_utime='define' +i_values='define' +i_varargs='undef' +i_varhdr='stdarg.h' +i_vfork='undef' +incpath='' +inews='' +installarchlib='/opt/perl/lib/5.005/i686-linux-thread' +installbin='/opt/perl/bin' +installman1dir='/opt/perl/man/man1' +installman3dir='/opt/perl/man/man3' +installprivlib='/opt/perl/lib/5.005' +installscript='/opt/perl/script' +installsitearch='/opt/perl/lib/site_perl/5.005/i686-linux-thread' +installsitelib='/opt/perl/lib/site_perl/5.005' +intsize='4' +known_extensions='B DB_File Data/Dumper Fcntl GDBM_File IO IPC/SysV NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Thread attrs re' +ksh='' +large='' +ld='cc' +lddlflags='-shared -L/usr/local/lib' +ldflags=' -L/usr/local/lib' +less='less' +lib_ext='.a' +libc='' +libperl='libperl.a' +libpth='/usr/local/lib /lib /usr/lib' +libs='-lnsl -lndbm -lgdbm -ldbm -ldb -ldl -lm -lpthread -lc -lposix -lcrypt' +libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m pthread c cposix posix ndir dir crypt ucb BSD PW x' +line='line' +lint='' +lkflags='' +ln='ln' +lns='/bin/ln -s' +locincpth='/usr/local/include /opt/local/include /usr/gnu/include /opt/gnu/include /usr/GNU/include /opt/GNU/include' +loclibpth='/usr/local/lib /opt/local/lib /usr/gnu/lib /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib' +longdblsize='12' +longlongsize='8' +longsize='4' +lp='' +lpr='' +ls='ls' +lseektype='off_t' +mail='' +mailx='' +make='make' +make_set_make='#' +mallocobj='' +mallocsrc='' +malloctype='void *' +man1dir='/opt/perl/man/man1' +man1direxp='/opt/perl/man/man1' +man1ext='1' +man3dir='/opt/perl/man/man3' +man3direxp='/opt/perl/man/man3' +man3ext='3' +medium='' +mips='' +mips_type='' +mkdir='mkdir' +models='none' +modetype='mode_t' +more='more' +mv='' +myarchname='i686-linux' +mydomain='.yourplace.com' +myhostname='yourhost' +myuname='linux fractal 2.0.34 #1 tue jun 23 10:09:17 edt 1998 i686 unknown ' +n='-n' +netdb_hlen_type='int' +netdb_host_type='const char *' +netdb_name_type='const char *' +netdb_net_type='unsigned long' +nm='nm' +nm_opt='' +nm_so_opt='--dynamic' +nonxs_ext='Errno' +nroff='nroff' +o_nonblock='O_NONBLOCK' +obj_ext='.o' +optimize='-O' +orderlib='false' +osname='linux' +osvers='2.0.34' +package='perl5' +pager='/usr/bin/less' +passcat='cat /etc/passwd' +patchlevel='5' +path_sep=':' +perl='perl' +perladmin='yourname@yourhost.yourplace.com' +perlpath='/opt/perl/bin/perl' +pg='pg' +phostname='' +pidtype='pid_t' +plibpth='' +pmake='' +pr='' +prefix='/opt/perl' +prefixexp='/opt/perl' +privlib='/opt/perl/lib/5.005' +privlibexp='/opt/perl/lib/5.005' +prototype='define' +ptrsize='4' +randbits='31' +ranlib=':' +rd_nodata='-1' +rm='rm' +rmail='' +runnm='false' +scriptdir='/opt/perl/script' +scriptdirexp='/opt/perl/script' +sed='sed' +selecttype='fd_set *' +sendmail='sendmail' +sh='/bin/sh' +shar='' +sharpbang='#!' +shmattype='void *' +shortsize='2' +shrpenv='' +shsharp='true' +sig_name='ZERO HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR UNUSED IOT CLD POLL ' +sig_name_init='"ZERO", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "BUS", "FPE", "KILL", "USR1", "SEGV", "USR2", "PIPE", "ALRM", "TERM", "STKFLT", "CHLD", "CONT", "STOP", "TSTP", "TTIN", "TTOU", "URG", "XCPU", "XFSZ", "VTALRM", "PROF", "WINCH", "IO", "PWR", "UNUSED", "IOT", "CLD", "POLL", 0' +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, 6, 17, 29, 0' +signal_t='void' +sitearch='/opt/perl/lib/site_perl/5.005/i686-linux-thread' +sitearchexp='/opt/perl/lib/site_perl/5.005/i686-linux-thread' +sitelib='/opt/perl/lib/site_perl/5.005' +sitelibexp='/opt/perl/lib/site_perl/5.005' +sizetype='size_t' +sleep='' +smail='' +small='' +so='so' +sockethdr='' +socketlib='' +sort='sort' +spackage='Perl5' +spitshell='cat' +split='' +src='.' +ssizetype='ssize_t' +startperl='#!/opt/perl/bin/perl' +startsh='#!/bin/sh' +static_ext=' ' +stdchar='char' +stdio_base='((fp)->_IO_read_base)' +stdio_bufsiz='((fp)->_IO_read_end - (fp)->_IO_read_base)' +stdio_cnt='((fp)->_IO_read_end - (fp)->_IO_read_ptr)' +stdio_filbuf='' +stdio_ptr='((fp)->_IO_read_ptr)' +strings='/usr/include/string.h' +submit='' +subversion='0' +sysman='/usr/man/man1' +tail='' +tar='' +tbl='' +tee='tee' +test='test' +timeincl='/usr/include/sys/time.h ' +timetype='time_t' +touch='touch' +tr='tr' +trnl='\n' +troff='' +uidtype='uid_t' +uname='uname' +uniq='uniq' +usedl='define' +usemymalloc='n' +usenm='false' +useopcode='true' +useperlio='undef' +useposix='true' +usesfio='false' +useshrplib='false' +usethreads='define' +usevfork='false' +usrinc='/usr/include' +uuname='' +version='5.005' +vi='' +voidflags='15' +xlibpth='/usr/lib/386 /lib/386' +zcat='' +zip='zip' +# Configure command line arguments. +config_arg0='Configure' +config_args='-Dprefix=/opt/perl -Doptimize=-O -Dusethreads -Dcf_by=yourname -Dcf_email=yourname@yourhost.yourplace.com -Dperladmin=yourname@yourhost.yourplace.com -Dmydomain=.yourplace.com -Dmyhostname=yourhost -dE' +config_argc=9 +config_arg1='-Dprefix=/opt/perl' +config_arg2='-Doptimize=-O' +config_arg3='-Dusethreads' +config_arg4='-Dcf_by=yourname' +config_arg5='-Dcf_email=yourname@yourhost.yourplace.com' +config_arg6='-Dperladmin=yourname@yourhost.yourplace.com' +config_arg7='-Dmydomain=.yourplace.com' +config_arg8='-Dmyhostname=yourhost' +config_arg9='-dE' +PATCHLEVEL=5 +SUBVERSION=0 +CONFIG=true diff --git a/contrib/perl5/Porting/config_H b/contrib/perl5/Porting/config_H new file mode 100644 index 0000000000000..8cbf3c497b982 --- /dev/null +++ b/contrib/perl5/Porting/config_H @@ -0,0 +1,2103 @@ +/* This file (config_H) is a sample config.h file. If you are unable + to successfully run Configure, copy this file to config.h and + edit it to suit your system. +*/ +/* + * This file was produced by running the config_h.SH script, which + * 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. + * + * $Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $ + */ + +/* + * Package name : perl5 + * Source directory : . + * Configuration time: Tue Jul 21 10:03:27 EDT 1998 + * Configured by : doughera + * Target system : linux fractal 2.0.34 #1 tue jun 23 10:09:17 edt 1998 i686 unknown + */ + +#ifndef _config_h_ +#define _config_h_ + +/* LOC_SED: + * This symbol holds the complete pathname to the sed program. + */ +#define LOC_SED "/bin/sed" /**/ + +/* BIN: + * This symbol holds the path of the bin directory where the package will + * be installed. Program must be prepared to deal with ~name substitution. + */ +/* BIN_EXP: + * 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 "/opt/perl/bin" /**/ +#define BIN_EXP "/opt/perl/bin" /**/ + +/* CPPSTDIN: + * This symbol contains the first part of the string which will invoke + * the C preprocessor on the standard input and produce to standard + * output. Typical value of "cc -E" or "/lib/cpp", but it can also + * call a wrapper. See CPPRUN. + */ +/* CPPMINUS: + * This symbol contains the second part of the string which will invoke + * the C preprocessor on the standard input and produce to standard + * output. This symbol will have the value "-" if CPPSTDIN needs a minus + * to specify standard input, otherwise the value is "". + */ +#define CPPSTDIN "cc -E" +#define CPPMINUS "-" + +/* HAS_ALARM: + * This symbol, if defined, indicates that the alarm routine is + * available. + */ +#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. + */ +#define HASATTRIBUTE /**/ +#ifndef HASATTRIBUTE +#define __attribute__(_arg_) +#endif + +/* HAS_BCMP: + * This symbol is defined if the bcmp() routine is available to + * compare blocks of memory. + */ +#define HAS_BCMP /**/ + +/* HAS_BCOPY: + * This symbol is defined if the bcopy() routine is available to + * copy blocks of memory. + */ +#define HAS_BCOPY /**/ + +/* HAS_BZERO: + * This symbol is defined if the bzero() routine is available to + * set a memory block to 0. + */ +#define HAS_BZERO /**/ + +/* HAS_CHOWN: + * This symbol, if defined, indicates that the chown routine is + * available. + */ +#define HAS_CHOWN /**/ + +/* HAS_CHROOT: + * This symbol, if defined, indicates that the chroot routine is + * available. + */ +#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. + */ +/*#define HAS_CHSIZE / **/ + +/* HASCONST: + * This symbol, if defined, indicates that this C compiler knows about + * the const type. There is no need to actually test for that symbol + * within your programs. The mere use of the "const" keyword will + * trigger the necessary tests. + */ +#define HASCONST /**/ +#ifndef HASCONST +#define const +#endif + +/* HAS_CRYPT: + * This symbol, if defined, indicates that the crypt routine is available + * to encrypt passwords and the like. + */ +#define HAS_CRYPT /**/ + +/* HAS_CUSERID: + * This symbol, if defined, indicates that the cuserid routine is + * available to get character login names. + */ +#define HAS_CUSERID /**/ + +/* HAS_DBL_DIG: + * This symbol, if defined, indicates that this system's <float.h> + * or <limits.h> defines the symbol DBL_DIG, which is the number + * of significant digits in a double precision number. If this + * symbol is not defined, a guess of 15 is usually pretty good. + */ +#define HAS_DBL_DIG /* */ + +/* HAS_DIFFTIME: + * This symbol, if defined, indicates that the difftime routine is + * available. + */ +#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(). + */ +#define HAS_DLERROR /**/ + +/* SETUID_SCRIPTS_ARE_SECURE_NOW: + * This symbol, if defined, indicates that the bug that prevents + * setuid scripts from being secure is not present in this kernel. + */ +/* DOSUID: + * This symbol, if defined, indicates that the C program should + * check the script that it is executing for setuid/setgid bits, and + * attempt to emulate setuid/setgid on systems that have disabled + * setuid #! scripts because the kernel can't do it securely. + * It is up to the package designer to make sure that this emulation + * is done securely. Among other things, it should do an fstat on + * the script it just opened to make sure it really is a setuid/setgid + * script, it should make sure the arguments passed correspond exactly + * to the argument on the #! line, and it should not trust any + * subprocesses to which it must pass the filename rather than the + * file descriptor of the script to be executed. + */ +/*#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. + */ +#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(). + */ +#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(). + */ +#define HAS_FCHOWN /**/ + +/* HAS_FCNTL: + * This symbol, if defined, indicates to the C program that + * the fcntl() function exists. + */ +#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(). + */ +#define HAS_FGETPOS /**/ + +/* FLEXFILENAMES: + * This symbol, if defined, indicates that the system supports filenames + * longer than 14 characters. + */ +#define FLEXFILENAMES /**/ + +/* HAS_FLOCK: + * This symbol, if defined, indicates that the flock routine is + * available to do file locking. + */ +#define HAS_FLOCK /**/ + +/* HAS_FORK: + * This symbol, if defined, indicates that the fork routine is + * available. + */ +#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(). + */ +#define HAS_FSETPOS /**/ + +/* HAS_GETTIMEOFDAY: + * This symbol, if defined, indicates that the gettimeofday() system + * call is available for a sub-second accuracy clock. Usually, the file + * <sys/resource.h> needs to be included (see I_SYS_RESOURCE). + * The type "Timeval" should be used to refer to "struct timeval". + */ +#define HAS_GETTIMEOFDAY /**/ +#ifdef HAS_GETTIMEOFDAY +#define Timeval struct timeval /* Structure used by gettimeofday() */ +#endif + +/* HAS_GETGROUPS: + * This symbol, if defined, indicates that the getgroups() routine is + * available to get the list of process groups. If unavailable, multiple + * groups are probably not supported. + */ +#define HAS_GETGROUPS /**/ + +/* HAS_UNAME: + * This symbol, if defined, indicates that the C program may use the + * uname() routine to derive the host name. See also HAS_GETHOSTNAME + * and PHOSTNAME. + */ +#define HAS_UNAME /**/ + +/* HAS_GETLOGIN: + * This symbol, if defined, indicates that the getlogin routine is + * available to get the login name. + */ +#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. + */ +#define HAS_GETPGID /**/ + +/* HAS_GETPGRP: + * This symbol, if defined, indicates that the getpgrp routine is + * available to get the current process group. + */ +/* USE_BSD_GETPGRP: + * This symbol, if defined, indicates that getpgrp needs one + * arguments whereas USG one needs none. + */ +#define HAS_GETPGRP /**/ +/*#define USE_BSD_GETPGRP / **/ + +/* HAS_GETPGRP2: + * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) + * routine is available to get the current process group. + */ +/*#define HAS_GETPGRP2 / **/ + +/* HAS_GETPPID: + * This symbol, if defined, indicates that the getppid routine is + * available to get the parent process ID. + */ +#define HAS_GETPPID /**/ + +/* HAS_GETPRIORITY: + * This symbol, if defined, indicates that the getpriority routine is + * available to get a process's priority. + */ +#define HAS_GETPRIORITY /**/ + +/* HAS_HTONL: + * This symbol, if defined, indicates that the htonl() routine (and + * friends htons() ntohl() ntohs()) are available to do network + * order byte swapping. + */ +/* HAS_HTONS: + * This symbol, if defined, indicates that the htons() routine (and + * friends htonl() ntohl() ntohs()) are available to do network + * order byte swapping. + */ +/* HAS_NTOHL: + * This symbol, if defined, indicates that the ntohl() routine (and + * friends htonl() htons() ntohs()) are available to do network + * order byte swapping. + */ +/* HAS_NTOHS: + * This symbol, if defined, indicates that the ntohs() routine (and + * friends htonl() htons() ntohl()) are available to do network + * order byte swapping. + */ +#define HAS_HTONL /**/ +#define HAS_HTONS /**/ +#define HAS_NTOHL /**/ +#define HAS_NTOHS /**/ + +/* 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. + */ +#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. + */ +#define HAS_KILLPG /**/ + +/* HAS_LINK: + * This symbol, if defined, indicates that the link routine is + * available to create hard links. + */ +#define HAS_LINK /**/ + +/* HAS_LOCALECONV: + * This symbol, if defined, indicates that the localeconv routine is + * available for numeric and monetary formatting conventions. + */ +#define HAS_LOCALECONV /**/ + +/* HAS_LOCKF: + * This symbol, if defined, indicates that the lockf routine is + * available to do file locking. + */ +#define HAS_LOCKF /**/ + +/* HAS_LSTAT: + * This symbol, if defined, indicates that the lstat routine is + * available to do file stats on symbolic links. + */ +#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. + */ +#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. + */ +#define HAS_MBSTOWCS /**/ + +/* HAS_MBTOWC: + * This symbol, if defined, indicates that the mbtowc routine is available + * to covert a multibyte to a wide character. + */ +#define HAS_MBTOWC /**/ + +/* HAS_MEMCMP: + * This symbol, if defined, indicates that the memcmp routine is available + * to compare blocks of memory. + */ +#define HAS_MEMCMP /**/ + +/* HAS_MEMCPY: + * This symbol, if defined, indicates that the memcpy routine is available + * to copy blocks of memory. + */ +#define HAS_MEMCPY /**/ + +/* HAS_MEMMOVE: + * This symbol, if defined, indicates that the memmove routine is available + * to copy potentially overlapping blocks of memory. This should be used + * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your + * own version. + */ +#define HAS_MEMMOVE /**/ + +/* HAS_MEMSET: + * This symbol, if defined, indicates that the memset routine is available + * to set blocks of memory. + */ +#define HAS_MEMSET /**/ + +/* HAS_MKDIR: + * This symbol, if defined, indicates that the mkdir routine is available + * to create directories. Otherwise you should fork off a new process to + * exec /bin/mkdir. + */ +#define HAS_MKDIR /**/ + +/* HAS_MKFIFO: + * This symbol, if defined, indicates that the mkfifo routine is + * available to create FIFOs. Otherwise, mknod should be able to + * do it for you. However, if mkfifo is there, mknod might require + * super-user privileges which mkfifo will not. + */ +#define HAS_MKFIFO /**/ + +/* HAS_MKTIME: + * This symbol, if defined, indicates that the mktime routine is + * available. + */ +#define HAS_MKTIME /**/ + +/* HAS_MSG: + * This symbol, if defined, indicates that the entire msg*(2) library is + * supported (IPC mechanism based on message queues). + */ +#define HAS_MSG /**/ + +/* HAS_NICE: + * This symbol, if defined, indicates that the nice routine is + * available. + */ +#define HAS_NICE /**/ + +/* HAS_PATHCONF: + * This symbol, if defined, indicates that pathconf() is available + * to determine file-system related limits and options associated + * with a given filename. + */ +/* HAS_FPATHCONF: + * This symbol, if defined, indicates that pathconf() is available + * to determine file-system related limits and options associated + * with a given open file descriptor. + */ +#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. + */ +#define HAS_PAUSE /**/ + +/* HAS_PIPE: + * This symbol, if defined, indicates that the pipe routine is + * available to create an inter-process channel. + */ +#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. + */ +#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. + */ +#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. + */ +#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. + */ +#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. + */ +#define HAS_REWINDDIR /**/ + +/* HAS_READLINK: + * This symbol, if defined, indicates that the readlink routine is + * available to read the value of a symbolic link. + */ +#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. + */ +#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. + */ +#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. + */ +#define HAS_SELECT /**/ + +/* HAS_SEM: + * This symbol, if defined, indicates that the entire sem*(2) library is + * supported. + */ +#define HAS_SEM /**/ + +/* HAS_SETEGID: + * This symbol, if defined, indicates that the setegid routine is available + * to change the effective gid of the current program. + */ +#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. + */ +#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. + */ +#define HAS_SETLINEBUF /**/ + +/* HAS_SETLOCALE: + * This symbol, if defined, indicates that the setlocale routine is + * available to handle locale-specific ctype implementations. + */ +#define HAS_SETLOCALE /**/ + +/* HAS_SETPGID: + * This symbol, if defined, indicates that the setpgid(pid, gpid) + * routine is available to set process group ID. + */ +#define HAS_SETPGID /**/ + +/* HAS_SETPGRP: + * This symbol, if defined, indicates that the setpgrp routine is + * available to set the current process group. + */ +/* USE_BSD_SETPGRP: + * This symbol, if defined, indicates that setpgrp needs two + * arguments whereas USG one needs none. See also HAS_SETPGID + * for a POSIX interface. + */ +#define HAS_SETPGRP /**/ +/*#define USE_BSD_SETPGRP / **/ + +/* HAS_SETPGRP2: + * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) + * routine is available to set the current process group. + */ +/*#define HAS_SETPGRP2 / **/ + +/* HAS_SETPRIORITY: + * This symbol, if defined, indicates that the setpriority routine is + * available to set a process's priority. + */ +#define HAS_SETPRIORITY /**/ + +/* HAS_SETREGID: + * This symbol, if defined, indicates that the setregid routine is + * available to change the real and effective gid of the current + * process. + */ +/* HAS_SETRESGID: + * This symbol, if defined, indicates that the setresgid routine is + * available to change the real, effective and saved gid of the current + * process. + */ +#define HAS_SETREGID /**/ +/*#define HAS_SETRESGID / **/ + +/* HAS_SETREUID: + * This symbol, if defined, indicates that the setreuid routine is + * available to change the real and effective uid of the current + * process. + */ +/* HAS_SETRESUID: + * This symbol, if defined, indicates that the setresuid routine is + * available to change the real, effective and saved uid of the current + * process. + */ +#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. + */ +/*#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. + */ +/*#define HAS_SETRUID / **/ + +/* HAS_SETSID: + * This symbol, if defined, indicates that the setsid routine is + * available to set the process group ID. + */ +#define HAS_SETSID /**/ + +/* HAS_SHM: + * This symbol, if defined, indicates that the entire shm*(2) library is + * supported. + */ +#define HAS_SHM /**/ + +/* Shmat_t: + * This symbol holds the return type of the shmat() system call. + * Usually set to 'void *' or 'char *'. + */ +/* HAS_SHMAT_PROTOTYPE: + * This symbol, if defined, indicates that the sys/shm.h includes + * a prototype for shmat(). Otherwise, it is up to the program to + * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess, + * 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 void * /**/ +#define HAS_SHMAT_PROTOTYPE /**/ + +/* USE_STAT_BLOCKS: + * This symbol is defined if this system has a stat structure declaring + * st_blksize and st_blocks. + */ +/*#define USE_STAT_BLOCKS / **/ + +/* HAS_STRCHR: + * This symbol is defined to indicate that the strchr()/strrchr() + * functions are available for string searching. If not, try the + * index()/rindex() pair. + */ +/* HAS_INDEX: + * This symbol is defined to indicate that the index()/rindex() + * functions are available for string searching. + */ +#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. + */ +#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. + */ +#define USE_STRUCT_COPY /**/ + +/* HAS_STRERROR: + * This symbol, if defined, indicates that the strerror routine is + * available to translate error numbers to strings. See the writeup + * of Strerror() in this file before you try to define your own. + */ +/* HAS_SYS_ERRLIST: + * This symbol, if defined, indicates that the sys_errlist array is + * available to translate error numbers to strings. The extern int + * sys_nerr gives the size of that table. + */ +/* Strerror: + * This preprocessor symbol is defined as a macro if strerror() is + * not available to translate error numbers to strings but sys_errlist[] + * array is there. + */ +#define HAS_STRERROR /**/ +#define HAS_SYS_ERRLIST /**/ +#define Strerror(e) strerror(e) + +/* HAS_STRTOD: + * This symbol, if defined, indicates that the strtod routine is + * available to provide better numeric string conversion than atof(). + */ +#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. + */ +#define HAS_STRTOL /**/ + +/* HAS_STRTOUL: + * This symbol, if defined, indicates that the strtoul routine is + * available to provide conversion of strings to unsigned long. + */ +#define HAS_STRTOUL /**/ + +/* HAS_STRXFRM: + * This symbol, if defined, indicates that the strxfrm() routine is + * available to transform strings. + */ +#define HAS_STRXFRM /**/ + +/* HAS_SYMLINK: + * This symbol, if defined, indicates that the symlink routine is available + * to create symbolic links. + */ +#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. + */ +#define HAS_SYSCALL /**/ + +/* HAS_SYSCONF: + * This symbol, if defined, indicates that sysconf() is available + * to determine system related limits and options. + */ +#define HAS_SYSCONF /**/ + +/* HAS_SYSTEM: + * This symbol, if defined, indicates that the system routine is + * available to issue a shell command. + */ +#define HAS_SYSTEM /**/ + +/* HAS_TCGETPGRP: + * This symbol, if defined, indicates that the tcgetpgrp routine is + * available to get foreground process group ID. + */ +#define HAS_TCGETPGRP /**/ + +/* HAS_TCSETPGRP: + * This symbol, if defined, indicates that the tcsetpgrp routine is + * available to set foreground process group ID. + */ +#define HAS_TCSETPGRP /**/ + +/* HAS_TRUNCATE: + * This symbol, if defined, indicates that the truncate routine is + * available to truncate files. + */ +#define HAS_TRUNCATE /**/ + +/* HAS_TZNAME: + * This symbol, if defined, indicates that the tzname[] array is + * available to access timezone names. + */ +#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. + */ +#define HAS_UMASK /**/ + +/* HAS_VFORK: + * This symbol, if defined, indicates that vfork() exists. + */ +/*#define HAS_VFORK / **/ + +/* HASVOLATILE: + * This symbol, if defined, indicates that this C compiler knows about + * the volatile declaration. + */ +#define HASVOLATILE /**/ +#ifndef HASVOLATILE +#define volatile +#endif + +/* HAS_WAIT4: + * This symbol, if defined, indicates that wait4() exists. + */ +#define HAS_WAIT4 /**/ + +/* HAS_WAITPID: + * This symbol, if defined, indicates that the waitpid routine is + * available to wait for child process. + */ +#define HAS_WAITPID /**/ + +/* HAS_WCSTOMBS: + * This symbol, if defined, indicates that the wcstombs routine is + * available to convert wide character strings to multibyte strings. + */ +#define HAS_WCSTOMBS /**/ + +/* HAS_WCTOMB: + * This symbol, if defined, indicates that the wctomb routine is available + * to covert a wide character to a multibyte. + */ +#define HAS_WCTOMB /**/ + +/* EBCDIC: + * This symbol, if defined, indicates that this system uses + * EBCDIC encoding. + */ +/*#define EBCDIC / **/ + +/* I_ARPA_INET: + * This symbol, if defined, indicates that <arpa/inet.h> exists and should + * be included. + */ +#define I_ARPA_INET /**/ + +/* I_DBM: + * This symbol, if defined, indicates that <dbm.h> exists and should + * be included. + */ +/* I_RPCSVC_DBM: + * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and + * should be included. + */ +#define I_DBM /**/ +/*#define I_RPCSVC_DBM / **/ + +/* I_DIRENT: + * This symbol, if defined, indicates to the C program that it should + * include <dirent.h>. Using this symbol also triggers the definition + * of the Direntry_t define which ends up being 'struct dirent' or + * 'struct direct' depending on the availability of <dirent.h>. + */ +/* DIRNAMLEN: + * This symbol, if defined, indicates to the C program that the length + * of directory entry names is provided by a d_namlen field. Otherwise + * you need to do strlen() on the d_name field. + */ +/* Direntry_t: + * This symbol is set to 'struct direct' or 'struct dirent' depending on + * whether dirent is available or not. You should use this pseudo type to + * portably declare your directory entries. + */ +#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. + */ +#define I_DLFCN /**/ + +/* I_FCNTL: + * This manifest constant tells the C program to include <fcntl.h>. + */ +/*#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. + */ +#define I_FLOAT /**/ + +/* I_GRP: + * This symbol, if defined, indicates to the C program that it should + * include <grp.h>. + */ +/* GRPASSWD: + * This symbol, if defined, indicates to the C program that struct group + * contains gr_passwd. + */ +/* HAS_SETGRENT: + * This symbol, if defined, indicates that the getgrent routine is + * available for initializing sequential access of the group database. + */ +/* HAS_GETGRENT: + * This symbol, if defined, indicates that the getgrent routine is + * available for sequential access of the group database. + */ +/* HAS_ENDGRENT: + * This symbol, if defined, indicates that the getgrent routine is + * available for finalizing sequential access of the group database. + */ +#define I_GRP /**/ +#define GRPASSWD /**/ +#define HAS_SETGRENT /**/ +#define HAS_GETGRENT /**/ +#define HAS_ENDGRENT /**/ + +/* 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. + */ +#define I_LIMITS /**/ + +/* I_LOCALE: + * This symbol, if defined, indicates to the C program that it should + * include <locale.h>. + */ +#define I_LOCALE /**/ + +/* I_MATH: + * This symbol, if defined, indicates to the C program that it should + * include <math.h>. + */ +#define I_MATH /**/ + +/* I_MEMORY: + * This symbol, if defined, indicates to the C program that it should + * include <memory.h>. + */ +/*#define I_MEMORY / **/ + +/* I_NDBM: + * This symbol, if defined, indicates that <ndbm.h> exists and should + * be included. + */ +#define I_NDBM /**/ + +/* I_NET_ERRNO: + * This symbol, if defined, indicates that <net/errno.h> exists and + * should be included. + */ +/*#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>. + */ +#define I_NETINET_IN /**/ + +/* I_SFIO: + * This symbol, if defined, indicates to the C program that it should + * include <sfio.h>. + */ +/*#define I_SFIO / **/ + +/* I_STDDEF: + * This symbol, if defined, indicates that <stddef.h> exists and should + * be included. + */ +#define I_STDDEF /**/ + +/* I_STDLIB: + * This symbol, if defined, indicates that <stdlib.h> exists and should + * be included. + */ +#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). + */ +#define I_STRING /**/ + +/* I_SYS_DIR: + * This symbol, if defined, indicates to the C program that it should + * include <sys/dir.h>. + */ +#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. + */ +#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>. + */ +#define I_SYS_IOCTL /**/ + +/* I_SYS_NDIR: + * This symbol, if defined, indicates to the C program that it should + * include <sys/ndir.h>. + */ +/*#define I_SYS_NDIR / **/ + +/* I_SYS_PARAM: + * This symbol, if defined, indicates to the C program that it should + * include <sys/param.h>. + */ +#define I_SYS_PARAM /**/ + +/* I_SYS_RESOURCE: + * This symbol, if defined, indicates to the C program that it should + * include <sys/resource.h>. + */ +#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. + */ +#define I_SYS_SELECT /**/ + +/* I_SYS_STAT: + * This symbol, if defined, indicates to the C program that it should + * include <sys/stat.h>. + */ +#define I_SYS_STAT /**/ + +/* I_SYS_TIMES: + * This symbol, if defined, indicates to the C program that it should + * include <sys/times.h>. + */ +#define I_SYS_TIMES /**/ + +/* I_SYS_TYPES: + * This symbol, if defined, indicates to the C program that it should + * include <sys/types.h>. + */ +#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. + */ +#define I_SYS_UN /**/ + +/* I_SYS_WAIT: + * This symbol, if defined, indicates to the C program that it should + * include <sys/wait.h>. + */ +#define I_SYS_WAIT /**/ + +/* I_TERMIO: + * This symbol, if defined, indicates that the program should include + * <termio.h> rather than <sgtty.h>. There are also differences in + * the ioctl() calls that depend on the value of this symbol. + */ +/* I_TERMIOS: + * This symbol, if defined, indicates that the program should include + * the POSIX termios.h rather than sgtty.h or termio.h. + * There are also differences in the ioctl() calls that depend on the + * value of this symbol. + */ +/* I_SGTTY: + * This symbol, if defined, indicates that the program should include + * <sgtty.h> rather than <termio.h>. There are also differences in + * the ioctl() calls that depend on the value of this symbol. + */ +/*#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>. + */ +#define I_UNISTD /**/ + +/* I_UTIME: + * This symbol, if defined, indicates to the C program that it should + * include <utime.h>. + */ +#define I_UTIME /**/ + +/* I_VALUES: + * This symbol, if defined, indicates to the C program that it should + * include <values.h> to get definition of symbols like MINFLOAT or + * MAXLONG, i.e. machine dependant limitations. Probably, you + * should use <limits.h> instead, if it is available. + */ +#define I_VALUES /**/ + +/* I_STDARG: + * This symbol, if defined, indicates that <stdarg.h> exists and should + * be included. + */ +/* I_VARARGS: + * This symbol, if defined, indicates to the C program that it should + * include <varargs.h>. + */ +#define I_STDARG /**/ +/*#define I_VARARGS / **/ + +/* I_VFORK: + * This symbol, if defined, indicates to the C program that it should + * include vfork.h. + */ +/*#define I_VFORK / **/ + +/* CAN_PROTOTYPE: + * If defined, this macro indicates that the C compiler can handle + * function prototypes. + */ +/* _: + * This macro is used to declare function parameters for folks who want + * to make declarations with prototypes using a different style than + * the above macros. Use double parentheses. For example: + * + * int main _((int argc, char *argv[])); + */ +#define CAN_PROTOTYPE /**/ +#ifdef CAN_PROTOTYPE +#define _(args) args +#else +#define _(args) () +#endif + +/* SH_PATH: + * This symbol contains the full pathname to the shell used on this + * on this system to execute Bourne shell scripts. Usually, this will be + * /bin/sh, though it's possible that some systems will have /bin/ksh, + * /bin/pdksh, /bin/ash, /bin/bash, or even something such as + * D:/bin/sh.exe. + */ +#define SH_PATH "/bin/sh" /**/ + +/* 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 char /**/ + +/* MEM_ALIGNBYTES: + * This symbol contains the number of bytes required to align a + * double. Usual values are 2, 4 and 8. + * On NeXT starting with 3.2, you can build "Fat" Multiple Architecture + * Binaries (MAB) for targets with varying alignment. This only matters + * for perl, where the config.h can be generated and installed on one + * system, and used by a different architecture to build an extension. + * The default is eight, for safety. + */ +#define MEM_ALIGNBYTES 4 /**/ + +/* BYTEORDER: + * This symbol holds the hexadecimal constant defined in byteorder, + * i.e. 0x1234 or 0x4321, etc... + * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture + * Binaries (MAB) on either big endian or little endian machines. + * The endian-ness is available at compile-time. This only matters + * for perl, where the config.h can be generated and installed on + * one system, and used by a different architecture to build an + * extension. Older versions of NeXT that might not have + * defined either *_ENDIAN__ were all on Motorola 680x0 series, + * so the default case (for NeXT) is big endian to catch them. + * This might matter for NeXT 3.0. + */ +#ifndef NeXT +#define BYTEORDER 0x1234 /* large digits for MSB */ +#else /* NeXT */ +#ifdef __LITTLE_ENDIAN__ +#define BYTEORDER 0x1234 +#else /* __BIG_ENDIAN__ */ +#define BYTEORDER 0x4321 +#endif /* ENDIAN CHECK */ +#endif /* NeXT */ + +/* CASTI32: + * This symbol is defined if the C compiler can cast negative + * or large floating point numbers to 32-bit ints. + */ +/*#define CASTI32 / **/ + +/* CASTNEGFLOAT: + * This symbol is defined if the C compiler can cast negative + * numbers to unsigned longs, ints and shorts. + */ +/* CASTFLAGS: + * This symbol contains flags that say what difficulties the compiler + * has casting odd floating values to unsigned long: + * 0 = ok + * 1 = couldn't cast < 0 + * 2 = couldn't cast >= 0x80000000 + * 4 = couldn't cast in argument expression list + */ +#define CASTNEGFLOAT /**/ +#define CASTFLAGS 0 /**/ + +/* VOID_CLOSEDIR: + * This symbol, if defined, indicates that the closedir() routine + * does not return a value. + */ +/*#define VOID_CLOSEDIR / **/ + +/* Gconvert: + * This preprocessor macro is defined to convert a floating point + * number to a string without a trailing decimal point. This + * emulates the behavior of sprintf("%g"), but is sometimes much more + * efficient. If gconvert() is not available, but gcvt() drops the + * trailing decimal point, then gcvt() is used. If all else fails, + * a macro using sprintf("%g") is used. Arguments for the Gconvert + * macro are: value, number of digits, whether trailing zeros should + * be retained, and the output buffer. + * Possible values are: + * d_Gconvert='gconvert((x),(n),(t),(b))' + * d_Gconvert='gcvt((x),(n),(b))' + * d_Gconvert='sprintf((b),"%.*g",(n),(x))' + * The last two assume trailing zeros should not be kept. + */ +#define Gconvert(x,n,t,b) gcvt((x),(n),(b)) + +/* HAS_GNULIBC: + * This symbol, if defined, indicates to the C program that + * the GNU C library is being used. + */ +#define HAS_GNULIBC /**/ +/* HAS_ISASCII: + * This manifest constant lets the C program know that isascii + * is available. + */ +#define HAS_ISASCII /**/ + +/* HAS_LCHOWN: + * This symbol, if defined, indicates that the lchown routine is + * available to operate on a symbolic link (instead of following the + * link). + */ +/*#define HAS_LCHOWN / **/ + +/* HAS_OPEN3: + * This manifest constant lets the C program know that the three + * argument form of open(2) is available. + */ +#define HAS_OPEN3 /**/ + +/* HAS_SAFE_BCOPY: + * This symbol, if defined, indicates that the bcopy routine is available + * to copy potentially overlapping memory blocks. Otherwise you should + * probably use memmove() or memcpy(). If neither is defined, roll your + * own version. + */ +#define HAS_SAFE_BCOPY /**/ + +/* HAS_SAFE_MEMCPY: + * This symbol, if defined, indicates that the memcpy routine is available + * to copy potentially overlapping memory blocks. Otherwise you should + * probably use memmove() or memcpy(). If neither is defined, roll your + * own version. + */ +/*#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. + */ +#define HAS_SANE_MEMCMP /**/ + +/* HAS_SIGACTION: + * This symbol, if defined, indicates that Vr4's sigaction() routine + * is available. + */ +#define HAS_SIGACTION /**/ + +/* Sigjmp_buf: + * This is the buffer type to be used with Sigsetjmp and Siglongjmp. + */ +/* Sigsetjmp: + * This macro is used in the same way as sigsetjmp(), but will invoke + * traditional setjmp() if sigsetjmp isn't available. + * See HAS_SIGSETJMP. + */ +/* Siglongjmp: + * This macro is used in the same way as siglongjmp(), but will invoke + * traditional longjmp() if siglongjmp isn't available. + * See HAS_SIGSETJMP. + */ +#define HAS_SIGSETJMP /**/ +#ifdef HAS_SIGSETJMP +#define Sigjmp_buf sigjmp_buf +#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask)) +#define Siglongjmp(buf,retval) siglongjmp((buf),(retval)) +#else +#define Sigjmp_buf jmp_buf +#define Sigsetjmp(buf,save_mask) setjmp((buf)) +#define Siglongjmp(buf,retval) longjmp((buf),(retval)) +#endif + +/* USE_STDIO_PTR: + * This symbol is defined if the _ptr and _cnt fields (or similar) + * of the stdio FILE structure can be used to access the stdio buffer + * for a file handle. If this is defined, then the FILE_ptr(fp) + * and FILE_cnt(fp) macros will also be defined and should be used + * to access these fields. + */ +/* FILE_ptr: + * This macro is used to access the _ptr field (or equivalent) of the + * FILE structure pointed to by its argument. This macro will always be + * defined if USE_STDIO_PTR is defined. + */ +/* STDIO_PTR_LVALUE: + * This symbol is defined if the FILE_ptr macro can be used as an + * lvalue. + */ +/* FILE_cnt: + * This macro is used to access the _cnt field (or equivalent) of the + * FILE structure pointed to by its argument. This macro will always be + * defined if USE_STDIO_PTR is defined. + */ +/* STDIO_CNT_LVALUE: + * This symbol is defined if the FILE_cnt macro can be used as an + * lvalue. + */ +#define USE_STDIO_PTR /**/ +#ifdef USE_STDIO_PTR +#define FILE_ptr(fp) ((fp)->_IO_read_ptr) +#define STDIO_PTR_LVALUE /**/ +#define FILE_cnt(fp) ((fp)->_IO_read_end - (fp)->_IO_read_ptr) +/*#define STDIO_CNT_LVALUE / **/ +#endif + +/* USE_STDIO_BASE: + * This symbol is defined if the _base field (or similar) of the + * stdio FILE structure can be used to access the stdio buffer for + * a file handle. If this is defined, then the FILE_base(fp) macro + * will also be defined and should be used to access this field. + * Also, the FILE_bufsiz(fp) macro will be defined and should be used + * to determine the number of bytes in the buffer. USE_STDIO_BASE + * will never be defined unless USE_STDIO_PTR is. + */ +/* FILE_base: + * This macro is used to access the _base field (or equivalent) of the + * FILE structure pointed to by its argument. This macro will always be + * defined if USE_STDIO_BASE is defined. + */ +/* FILE_bufsiz: + * This macro is used to determine the number of bytes in the I/O + * buffer pointed to by _base field (or equivalent) of the FILE + * structure pointed to its argument. This macro will always be defined + * if USE_STDIO_BASE is defined. + */ +#define USE_STDIO_BASE /**/ +#ifdef USE_STDIO_BASE +#define FILE_base(fp) ((fp)->_IO_read_base) +#define FILE_bufsiz(fp) ((fp)->_IO_read_end - (fp)->_IO_read_base) +#endif + +/* HAS_VPRINTF: + * This symbol, if defined, indicates that the vprintf routine is available + * to printf with a pointer to an argument list. If unavailable, you + * may need to write your own, probably in terms of _doprnt(). + */ +/* USE_CHAR_VSPRINTF: + * This symbol is defined if this system has vsprintf() returning type + * (char*). The trend seems to be to declare it as "int vsprintf()". It + * is up to the package author to declare vsprintf correctly based on the + * symbol. + */ +#define HAS_VPRINTF /**/ +/*#define USE_CHAR_VSPRINTF / **/ + +/* DOUBLESIZE: + * This symbol contains the size of a double, so that the C preprocessor + * can make decisions based on it. + */ +#define DOUBLESIZE 8 /**/ + +/* I_TIME: + * This symbol, if defined, indicates to the C program that it should + * include <time.h>. + */ +/* I_SYS_TIME: + * This symbol, if defined, indicates to the C program that it should + * include <sys/time.h>. + */ +/* I_SYS_TIME_KERNEL: + * This symbol, if defined, indicates to the C program that it should + * include <sys/time.h> with KERNEL defined. + */ +/*#define I_TIME / **/ +#define I_SYS_TIME /**/ +/*#define I_SYS_TIME_KERNEL / **/ + +/* INTSIZE: + * This symbol contains the value of sizeof(int) so that the C + * preprocessor can make decisions based on it. + */ +/* LONGSIZE: + * This symbol contains the value of sizeof(long) so that the C + * preprocessor can make decisions based on it. + */ +/* SHORTSIZE: + * This symbol contains the value of sizeof(short) so that the C + * preprocessor can make decisions based on it. + */ +#define INTSIZE 4 /**/ +#define LONGSIZE 4 /**/ +#define SHORTSIZE 2 /**/ + +/* VAL_O_NONBLOCK: + * This symbol is to be used during open() or fcntl(F_SETFL) to turn on + * non-blocking I/O for the file descriptor. Note that there is no way + * back, i.e. you cannot turn it blocking again this way. If you wish to + * alternatively switch between blocking and non-blocking, use the + * ioctl(FIOSNBIO) call instead, but that is not supported by all devices. + */ +/* VAL_EAGAIN: + * This symbol holds the errno error code set by read() when no data was + * present on the non-blocking file descriptor. + */ +/* RD_NODATA: + * This symbol holds the return code from read() when no data is present + * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is + * not defined, then you can't distinguish between no data and EOF by + * issuing a read(). You'll have to find another way to tell for sure! + */ +/* EOF_NONBLOCK: + * This symbol, if defined, indicates to the C program that a read() on + * 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 -1 +#define EOF_NONBLOCK + +/* PTRSIZE: + * This symbol contains the size of a pointer, so that the C preprocessor + * can make decisions based on it. It will be sizeof(void *) if + * the compiler supports (void *); otherwise it will be + * sizeof(char *). + */ +#define PTRSIZE 4 /**/ + +/* RANDBITS: + * This symbol contains the number of bits of random number the rand() + * function produces. Usual values are 15, 16, and 31. + */ +#define RANDBITS 31 /**/ + +/* SSize_t: + * This symbol holds the type used by functions that return + * a count of bytes or an error condition. It must be a signed type. + * It is usually ssize_t, but may be long or int, etc. + * It may be necessary to include <sys/types.h> or <unistd.h> + * to get any typedef'ed information. + * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). + */ +#define SSize_t ssize_t /* signed count of bytes */ + +/* 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 "linux" /**/ + +/* CAT2: + * This macro catenates 2 tokens together. + */ +/* STRINGIFY: + * This macro surrounds its token with double quotes. + */ +#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 42 == 42 +#define CAT2(a,b)a ## b +#define StGiFy(a)# a +#define STRINGIFY(a)StGiFy(a) +#endif +#if 42 != 1 && 42 != 42 +#include "Bletch: How does this C preprocessor catenate tokens?" +#endif + +/* CSH: + * This symbol, if defined, contains the full pathname of csh. + */ +#define HAS_CSH /**/ +#ifdef HAS_CSH +#define CSH "/bin/csh" /**/ +#endif + +/* HAS_ENDHOSTENT: + * This symbol, if defined, indicates that the endhostent() routine is + * available to close whatever was being used for host queries. + */ +#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. + */ +#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. + */ +#define HAS_ENDPROTOENT /**/ + +/* HAS_ENDSERVENT: + * This symbol, if defined, indicates that the endservent() routine is + * available to close whatever was being used for service queries. + */ +#define HAS_ENDSERVENT /**/ + +/* HAS_GETHOSTBYADDR: + * This symbol, if defined, indicates that the gethostbyaddr() routine is + * available to look up hosts by their IP addresses. + */ +#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. + */ +#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. + */ +#define HAS_GETHOSTENT /**/ + +/* HAS_GETNETBYADDR: + * This symbol, if defined, indicates that the getnetbyaddr() routine is + * available to look up networks by their IP addresses. + */ +#define HAS_GETNETBYADDR /**/ + +/* HAS_GETNETBYNAME: + * This symbol, if defined, indicates that the getnetbyname() routine is + * available to look up networks by their names. + */ +#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. + */ +#define HAS_GETNETENT /**/ + +/* HAS_GETPROTOENT: + * This symbol, if defined, indicates that the getprotoent() routine is + * available to look up protocols in some data base or another. + */ +#define HAS_GETPROTOENT /**/ + +/* HAS_GETPROTOBYNAME: + * This symbol, if defined, indicates that the getprotobyname() + * routine is available to look up protocols by their name. + */ +/* HAS_GETPROTOBYNUMBER: + * This symbol, if defined, indicates that the getprotobynumber() + * routine is available to look up protocols by their number. + */ +#define HAS_GETPROTOBYNAME /**/ +#define HAS_GETPROTOBYNUMBER /**/ + +/* HAS_GETSERVENT: + * This symbol, if defined, indicates that the getservent() routine is + * available to look up network services in some data base or another. + */ +#define HAS_GETSERVENT /**/ + +/* HAS_GETSERVBYNAME: + * This symbol, if defined, indicates that the getservbyname() + * routine is available to look up services by their name. + */ +/* HAS_GETSERVBYPORT: + * This symbol, if defined, indicates that the getservbyport() + * routine is available to look up services by their port. + */ +#define HAS_GETSERVBYNAME /**/ +#define HAS_GETSERVBYPORT /**/ + +/* HAS_LONG_DOUBLE: + * This symbol will be defined if the C compiler supports long + * doubles. + */ +/* LONG_DOUBLESIZE: + * This symbol contains the size of a long double, so that the + * C preprocessor can make decisions based on it. It is only + * defined if the system supports long doubles. + */ +#define HAS_LONG_DOUBLE /**/ +#ifdef HAS_LONG_DOUBLE +#define LONG_DOUBLESIZE 12 /**/ +#endif + +/* HAS_LONG_LONG: + * This symbol will be defined if the C compiler supports + * long long. + */ +/* LONGLONGSIZE: + * This symbol contains the size of a long long, so that the + * C preprocessor can make decisions based on it. It is only + * defined if the system supports long long. + */ +#define HAS_LONG_LONG /**/ +#ifdef HAS_LONG_LONG +#define LONGLONGSIZE 8 /**/ +#endif + +/* 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. + */ +#define HAS_SETGROUPS /**/ + +/* HAS_SETHOSTENT: + * This symbol, if defined, indicates that the sethostent() routine is + * available. + */ +#define HAS_SETHOSTENT /**/ + +/* HAS_SETNETENT: + * This symbol, if defined, indicates that the setnetent() routine is + * available. + */ +#define HAS_SETNETENT /**/ + +/* HAS_SETPROTOENT: + * This symbol, if defined, indicates that the setprotoent() routine is + * available. + */ +#define HAS_SETPROTOENT /**/ + +/* HAS_SETSERVENT: + * This symbol, if defined, indicates that the setservent() routine is + * available. + */ +#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. + */ +#define HAS_SETVBUF /**/ + +/* HAS_SOCKET: + * This symbol, if defined, indicates that the BSD socket interface is + * supported. + */ +/* HAS_SOCKETPAIR: + * This symbol, if defined, indicates that the BSD socketpair() call is + * supported. + */ +#define HAS_SOCKET /**/ +#define HAS_SOCKETPAIR /**/ + +/* HAS_UNION_SEMUN: + * This symbol, if defined, indicates that the union semun is + * defined by including <sys/sem.h>. If not, the user code + * probably needs to define it as: + * union semun { + * int val; + * struct semid_ds *buf; + * unsigned short *array; + * } + */ +/* USE_SEMCTL_SEMUN: + * This symbol, if defined, indicates that union semun is + * used for semctl IPC_STAT. + */ +/* USE_SEMCTL_SEMID_DS: + * This symbol, if defined, indicates that struct semid_ds * is + * used for semctl IPC_STAT. + */ +#define HAS_UNION_SEMUN /**/ +#define USE_SEMCTL_SEMUN /**/ +#define USE_SEMCTL_SEMID_DS /**/ + +/* Signal_t: + * This symbol's value is either "void" or "int", corresponding to the + * appropriate return type of a signal handler. Thus, you can declare + * a signal handler using "Signal_t (*handler)()", and define the + * handler using "Signal_t handler(sig)". + */ +#define Signal_t void /* Signal handler's return type */ + +/* Groups_t: + * This symbol holds the type used for the second argument to + * getgroups() and setgropus(). Usually, this is the same as + * gidtype (gid_t) , but sometimes it isn't. + * It can be int, ushort, uid_t, etc... + * It may be necessary to include <sys/types.h> to get any + * typedef'ed information. This is only required if you have + * getgroups() or setgropus().. + */ +#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS) +#define Groups_t gid_t /* Type for 2nd arg to [sg]etgroups() */ +#endif + +/* I_NETDB: + * This symbol, if defined, indicates that <netdb.h> exists and + * should be included. + */ +#define I_NETDB /**/ + +/* I_PWD: + * This symbol, if defined, indicates to the C program that it should + * include <pwd.h>. + */ +/* PWQUOTA: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_quota. + */ +/* PWAGE: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_age. + */ +/* PWCHANGE: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_change. + */ +/* PWCLASS: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_class. + */ +/* PWEXPIRE: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_expire. + */ +/* PWCOMMENT: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_comment. + */ +/* PWGECOS: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_gecos. + */ +/* PWPASSWD: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_passwd. + */ +/* HAS_SETPWENT: + * This symbol, if defined, indicates that the getpwrent routine is + * available for initializing sequential access of the passwd database. + */ +/* HAS_GETPWENT: + * This symbol, if defined, indicates that the getpwent routine is + * available for sequential access of the password database. + */ +/* HAS_ENDPWENT: + * This symbol, if defined, indicates that the getpwent routine is + * available for finalizing sequential access of the passwd database. + */ +#define I_PWD /**/ +/*#define PWQUOTA / **/ +/*#define PWAGE / **/ +/*#define PWCHANGE / **/ +/*#define PWCLASS / **/ +/*#define PWEXPIRE / **/ +/*#define PWCOMMENT / **/ +#define PWGECOS /**/ +#define PWPASSWD /**/ +#define HAS_SETPWENT /**/ +#define HAS_GETPWENT /**/ +#define HAS_ENDPWENT /**/ + +/* Free_t: + * This variable contains the return type of free(). It is usually + * void, but occasionally int. + */ +/* Malloc_t: + * This symbol is the type of pointer returned by malloc and realloc. + */ +#define Malloc_t void * /**/ +#define Free_t void /**/ + +/* MYMALLOC: + * This symbol, if defined, indicates that we're using our own malloc. + */ +/*#define MYMALLOC / **/ + +/* SIG_NAME: + * This symbol contains a list of signal names in order of + * signal number. This is intended + * to be used as a static array initialization, like this: + * char *sig_name[] = { SIG_NAME }; + * The signals in the list are separated with commas, and each signal + * is surrounded by double quotes. There is no leading SIG in the signal + * name, i.e. SIGQUIT is known as "QUIT". + * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn, + * etc., where nn is the actual signal number (e.g. NUM37). + * The signal number for sig_name[i] is stored in sig_num[i]. + * The last element is 0 to terminate the list with a NULL. This + * corresponds to the 0 at the end of the sig_num list. + */ +/* SIG_NUM: + * This symbol contains a list of signal numbers, in the same order as the + * SIG_NAME list. It is suitable for static array initialization, as in: + * int sig_num[] = { SIG_NUM }; + * The signals in the list are separated with commas, and the indices + * within that list and the SIG_NAME list match, so it's easy to compute + * the signal name from a number or vice versa at the price of a small + * dynamic linear lookup. + * Duplicates are allowed, but are moved to the end of the list. + * The signal number corresponding to sig_name[i] is sig_number[i]. + * if (i < NSIG) then sig_number[i] == i. + * The last element is 0, corresponding to the 0 at the end of + * the sig_name list. + */ +#define SIG_NAME "ZERO", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "BUS", "FPE", "KILL", "USR1", "SEGV", "USR2", "PIPE", "ALRM", "TERM", "STKFLT", "CHLD", "CONT", "STOP", "TSTP", "TTIN", "TTOU", "URG", "XCPU", "XFSZ", "VTALRM", "PROF", "WINCH", "IO", "PWR", "UNUSED", "IOT", "CLD", "POLL", 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, 6, 17, 29, 0 /**/ + +/* VOIDFLAGS: + * This symbol indicates how much support of the void type is given by this + * compiler. What various bits mean: + * + * 1 = supports declaration of void + * 2 = supports arrays of pointers to functions returning void + * 4 = supports comparisons between pointers to void functions and + * addresses of void functions + * 8 = suports declaration of generic void pointers + * + * The package designer should define VOIDUSED to indicate the requirements + * of the package. This can be done either by #defining VOIDUSED before + * including config.h, or by defining defvoidused in Myinit.U. If the + * latter approach is taken, only those flags will be tested. If the + * level of void support necessary is not present, defines void to int. + */ +#ifndef VOIDUSED +#define VOIDUSED 15 +#endif +#define VOIDFLAGS 15 +#if (VOIDFLAGS & VOIDUSED) != VOIDUSED +#define void int /* is void to be avoided? */ +#define M_VOID /* Xenix strikes again */ +#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 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 + * program already searches PRIVLIB. + */ +/* ARCHLIB_EXP: + * 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. + */ +#define ARCHLIB "/opt/perl/lib/5.005/i686-linux-thread" /**/ +#define ARCHLIB_EXP "/opt/perl/lib/5.005/i686-linux-thread" /**/ + +/* DLSYM_NEEDS_UNDERSCORE: + * This symbol, if defined, indicates that we need to prepend an + * underscore to the symbol name before calling dlsym(). This only + * makes sense if you *have* dlsym, which we will presume is the + * case if you're using dl_dlopen.xs. + */ +/*#define DLSYM_NEEDS_UNDERSCORE / **/ + +/* USE_SFIO: + * This symbol, if defined, indicates that sfio should + * be used. + */ +/*#define USE_SFIO / **/ + +/* USE_DYNAMIC_LOADING: + * This symbol, if defined, indicates that dynamic loading of + * some sort is available. + */ +#define USE_DYNAMIC_LOADING /**/ + +/* DB_Prefix_t: + * This symbol contains the type of the prefix structure element + * in the <db.h> header file. In older versions of DB, it was + * int, while in newer ones it is u_int32_t. + */ +/* DB_Hash_t: + * This symbol contains the type of the prefix structure element + * 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 u_int32_t /**/ +#define DB_Prefix_t size_t /**/ + +/* PRIVLIB: + * This symbol contains the name of the private library for this package. + * The library is private in the sense that it needn't be in anyone's + * execution path, but it should be accessible by the world. The program + * should be prepared to do ~ expansion. + */ +/* PRIVLIB_EXP: + * 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 "/opt/perl/lib/5.005" /**/ +#define PRIVLIB_EXP "/opt/perl/lib/5.005" /**/ + +/* SITEARCH: + * This symbol contains the name of the private library for this package. + * The library is private in the sense that it needn't be in anyone's + * execution path, but it should be accessible by the world. The program + * should be prepared to do ~ expansion. + * The standard distribution will put nothing in this directory. + * Individual sites may place their own extensions and modules in + * this directory. + */ +/* SITEARCH_EXP: + * 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 "/opt/perl/lib/site_perl/5.005/i686-linux-thread" /**/ +#define SITEARCH_EXP "/opt/perl/lib/site_perl/5.005/i686-linux-thread" /**/ + +/* SITELIB: + * This symbol contains the name of the private library for this package. + * The library is private in the sense that it needn't be in anyone's + * execution path, but it should be accessible by the world. The program + * should be prepared to do ~ expansion. + * The standard distribution will put nothing in this directory. + * Individual sites may place their own extensions and modules in + * this directory. + */ +/* SITELIB_EXP: + * This symbol contains the ~name expanded version of SITELIB, to be used + * in programs that are not prepared to deal with ~ expansion at run-time. + */ +#define SITELIB "/opt/perl/lib/site_perl/5.005" /**/ +#define SITELIB_EXP "/opt/perl/lib/site_perl/5.005" /**/ + +/* 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 "#!/opt/perl/bin/perl" /**/ + +/* USE_PERLIO: + * This symbol, if defined, indicates that the PerlIO abstraction should + * be used throughout. If not defined, stdio should be + * used in a fully backward compatible manner. + */ +/*#define USE_PERLIO / **/ + +/* HAS_GETHOST_PROTOS: + * This symbol, if defined, indicates that <netdb.h> includes + * prototypes for gethostent(), gethostbyname(), and + * gethostbyaddr(). Otherwise, it is up to the program to guess + * them. See netdbtype.U for probing for various Netdb_xxx_t types. + */ +#define HAS_GETHOST_PROTOS /**/ + +/* HAS_GETNET_PROTOS: + * This symbol, if defined, indicates that <netdb.h> includes + * prototypes for getnetent(), getnetbyname(), and + * getnetbyaddr(). Otherwise, it is up to the program to guess + * them. See netdbtype.U for probing for various Netdb_xxx_t types. + */ +#define HAS_GETNET_PROTOS /**/ + +/* HAS_GETPROTO_PROTOS: + * This symbol, if defined, indicates that <netdb.h> includes + * prototypes for getprotoent(), getprotobyname(), and + * getprotobyaddr(). Otherwise, it is up to the program to guess + * them. See netdbtype.U for probing for various Netdb_xxx_t types. + */ +#define HAS_GETPROTO_PROTOS /**/ + +/* HAS_GETSERV_PROTOS: + * This symbol, if defined, indicates that <netdb.h> includes + * prototypes for getservent(), getservbyname(), and + * getservbyaddr(). Otherwise, it is up to the program to guess + * them. See netdbtype.U for probing for various Netdb_xxx_t types. + */ +#define HAS_GETSERV_PROTOS /**/ + +/* Netdb_host_t: + * This symbol holds the type used for the 1st argument + * to gethostbyaddr(). + */ +/* Netdb_hlen_t: + * This symbol holds the type used for the 2nd argument + * to gethostbyaddr(). + */ +/* Netdb_name_t: + * This symbol holds the type used for the argument to + * gethostbyname(). + */ +/* Netdb_net_t: + * This symbol holds the type used for the 1st argument to + * getnetbyaddr(). + */ +#define Netdb_host_t const char * /**/ +#define Netdb_hlen_t int /**/ +#define Netdb_name_t const char * /**/ +#define Netdb_net_t unsigned long /**/ + +/* Select_fd_set_t: + * This symbol holds the type used for the 2nd, 3rd, and 4th + * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET + * is defined, and 'int *' otherwise. This is only useful if you + * have select(), of course. + */ +#define Select_fd_set_t fd_set * /**/ + +/* ARCHNAME: + * This symbol holds a string representing the architecture name. + * It may be used to construct an architecture-dependant pathname + * where library files may be held under a private library, for + * instance. + */ +#define ARCHNAME "i686-linux-thread" /**/ + +/* HAS_PTHREAD_YIELD: + * This symbol, if defined, indicates that the pthread_yield + * routine is available to yield the execution of the current + * thread. + */ +/* HAS_SCHED_YIELD: + * This symbol, if defined, indicates that the sched_yield + * routine is available to yield the execution of the current + * thread. + */ +/*#define HAS_PTHREAD_YIELD / **/ +#define HAS_SCHED_YIELD /**/ + +/* PTHREADS_CREATED_JOINABLE: + * This symbol, if defined, indicates that pthreads are created + * in the joinable (aka undetached) state. + */ +#define PTHREADS_CREATED_JOINABLE /**/ + +/* USE_THREADS: + * This symbol, if defined, indicates that Perl should + * be built to use threads. + */ +/* OLD_PTHREADS_API: + * This symbol, if defined, indicates that Perl should + * be built to use the old draft POSIX threads API. + */ +#define USE_THREADS /**/ +/*#define OLD_PTHREADS_API / **/ + +/* 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 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>. + */ +#define HAS_TIMES /**/ + +/* 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 fpos_t /* File position type */ + +/* Gid_t: + * This symbol holds the return type of getgid() and the type of + * argument to setrgid() and related functions. Typically, + * it is the type of group 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 Gid_t gid_t /* Type for getgid(), etc... */ + +/* Off_t: + * This symbol holds the type used to declare offsets in the kernel. + * It can be int, long, off_t, etc... It may be necessary to include + * <sys/types.h> to get any typedef'ed information. + */ +#define Off_t off_t /* <offset> type */ + +/* Mode_t: + * This symbol holds the type used to declare file modes + * for systems calls. It is usually mode_t, but may be + * int or unsigned short. It may be necessary to include <sys/types.h> + * to get any typedef'ed information. + */ +#define Mode_t mode_t /* file mode parameter for system calls */ + +/* 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 pid_t /* PID type */ + +/* Size_t: + * This symbol holds the type used to declare length parameters + * for string functions. It is usually size_t, but may be + * unsigned long, int, etc. It may be necessary to include + * <sys/types.h> to get any typedef'ed information. + */ +#define Size_t size_t /* length paramater for string functions */ + +/* 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 uid_t /* UID type */ + +#endif diff --git a/contrib/perl5/Porting/findvars b/contrib/perl5/Porting/findvars new file mode 100755 index 0000000000000..2e81244ac86cb --- /dev/null +++ b/contrib/perl5/Porting/findvars @@ -0,0 +1,373 @@ +#!/l/local/bin/perl -w + +$pat = ''; +# construct word list +while (<DATA>) { + chomp; + next unless $_; + $pat .= "$_|"; +} +chop $pat if $pat =~ /\|$/; + +# grep +while (<>) { + if (/^(.*?)\b($pat)\b(.*)$/o) { + my $head = "$1#$2#"; + $_ = $3; + while (/^(.*?)\b($pat)\b(.*)$/o) { + $head .= "$1#$2#"; + $_ = $3; + } + print "$ARGV\:$.\:$head$_\n"; + } +} +continue { + close ARGV if eof; +} +__END__ +Argv +Cmd +DBcv +DBgv +DBline +DBsignal +DBsingle +DBsub +DBtrace +No +Sv +Xpv +Yes +amagic_generation +ampergv +an +archpat_auto +argvgv +argvoutgv +av_fetch_sv +basetime +beginav +bodytarget +bostr +bufend +bufptr +cddir +chopset +collation_ix +collation_name +collation_standard +collxfrm_base +collxfrm_mult +colors +colorset +compcv +compiling +comppad +comppad_name +comppad_name_fill +comppad_name_floor +cop_seqmax +copline +cryptseen +cshlen +cshname +curcop +curcopdb +curinterp +curpad +curpm +curstack +curstackinfo +curstash +curstname +curthr +dbargs +debdelim +debname +debstash +debug +defgv +defoutgv +defstash +delaymagic +diehook +dirty +dlevel +dlmax +do_undump +doextract +doswitches +dowarn +dumplvl +e_script +egid +endav +envgv +errgv +error_count +euid +eval_cond +eval_mutex +eval_owner +eval_root +eval_start +evalseq +exitlist +exitlistlen +expect +extralen +fdpid +filemode +firstgv +forkprocess +formfeed +formtarget +generation +gensym +gid +globalstash +he_root +hexdigit +hintgv +hints +hv_fetch_ent_mh +hv_fetch_sv +in_clean_all +in_clean_objs +in_eval +in_my +in_my_stash +incgv +initav +inplace +last_in_gv +last_lop +last_lop_op +last_proto +last_uni +lastfd +lastgotoprobe +lastscream +lastsize +lastspbase +laststatval +laststype +leftgv +lex_brackets +lex_brackstack +lex_casemods +lex_casestack +lex_defer +lex_dojoin +lex_expect +lex_fakebrack +lex_formbrack +lex_inpat +lex_inwhat +lex_op +lex_repl +lex_starts +lex_state +lex_stuff +lineary +linestart +linestr +localizing +localpatches +main_cv +main_root +main_start +mainstack +malloc_mutex +markstack +markstack_max +markstack_ptr +max_intro_pending +maxo +maxscream +maxsysfd +mess_sv +min_intro_pending +minus_F +minus_a +minus_c +minus_l +minus_n +minus_p +modcount +modglobal +multi_close +multi_end +multi_open +multi_start +multiline +mystrk +na +nexttoke +nexttype +nextval +nice_chunk +nice_chunk_size +ninterps +nomemok +nrs +nthreads +nthreads_cond +numeric_local +numeric_name +numeric_standard +ofmt +ofs +ofslen +oldbufptr +oldlastpm +oldname +oldoldbufptr +op +op_mask +op_seqmax +opsave +origalen +origargc +origargv +origenviron +origfilename +ors +orslen +osname +pad_reset_pending +padix +padix_floor +parsehook +patchlevel +patleave +pending_ident +perl_destruct_level +perldb +pidstatus +preambleav +preambled +preprocess +profiledata +reg_eval_set +reg_flags +reg_start_tmp +reg_start_tmpl +regbol +regcc +regcode +regcomp_parse +regcomp_rx +regcompp +regdata +regdummy +regendp +regeol +regexecp +regflags +regindent +reginput +reginterp_cnt +reglastparen +regnarrate +regnaughty +regnpar +regprecomp +regprev +regprogram +regsawback +regseen +regsize +regstartp +regtill +regxend +replgv +restartop +retstack +retstack_ix +retstack_max +rightgv +rs +rsfp +rsfp_filters +runops +savestack +savestack_ix +savestack_max +sawampersand +sawstudy +sawvec +scopestack +scopestack_ix +scopestack_max +screamfirst +screamnext +secondgv +seen_evals +seen_zerolen +sh_path +siggv +sighandlerp +sortcop +sortcxix +sortstash +specialsv_list +splitstr +stack_base +stack_max +stack_sp +start_env +statbuf +statcache +statgv +statname +statusvalue +statusvalue_vms +stdingv +strchop +strtab +sub_generation +sublex_info +subline +subname +sv_arenaroot +sv_count +sv_mutex +sv_no +sv_objcount +sv_root +sv_undef +sv_yes +svref_mutex +sys_intern +tainted +tainting +thisexpr +thr_key +threadnum +threads_mutex +threadsv_names +thrsv +timesbuf +tmps_floor +tmps_ix +tmps_max +tmps_stack +tokenbuf +top_env +toptarget +uid +unsafe +warnhook +xiv_arenaroot +xiv_root +xnv_root +xpv_root +xrv_root +piMem +piENV +piStdIO +piLIO +piDir +piSock +piProc diff --git a/contrib/perl5/Porting/fixCORE b/contrib/perl5/Porting/fixCORE new file mode 100755 index 0000000000000..4c586d8969813 --- /dev/null +++ b/contrib/perl5/Porting/fixCORE @@ -0,0 +1,68 @@ +#!/usr/local/bin/perl -w +use Data::Dumper; + +my $targ = shift; +my $inc = join(' ',map("-I$_",@INC)); + +my $work = 1; +while ($work) + { + open(PIPE,"$^X -w $inc -M$targ -e '' 2>&1 |") || die "Cannot open pipe to child:$!"; + my %fix; + while (<PIPE>) + { + if (/^Ambiguous call resolved as CORE::(\w+)\(\), qualify as such or use \& at (\S+) line (\d+)/ + && -f $2 ) + { + my ($var,$file,$line) = ($1,$2,$3); + $fix{$file} = [] unless exists $fix{$file}; + push(@{$fix{$file}},[$line => $var]) unless ($var =~ /^PL_/ || $file =~ /\.h$/); + } + print; + } + close(PIPE); +# warn "Make retured $?\n"; +# last unless $?; + my $changed = 0; + foreach my $file (keys %fix) + { + my @ar = sort( { $a->[0] <=> $b->[0] } @{delete $fix{$file}}); + my @miss; + my $fixed = 0; + @ARGV = ($file); + $. = 0; + local $^I = '.sav'; + while (<>) + { + while (@ar && $. == $ar[0][0]) + { + my ($line,$var) = @{shift(@ar)}; + if (s/(?<!CORE::)\b$var\b(?=\s*\()/CORE::$var/) + { + warn "$file:$line: FIX $var\n"; + $fixed++; + $changed++; + } + else + { + push(@miss,[$line,$var,$_]); + } + } + print; + } + unless ($fixed) + { + rename("$file$^I",$file); + if (@miss) + { + while (@miss) + { + my ($line,$var,$txt) = @{shift(@miss)}; + warn "$file:$line:$var | $txt"; + } + } + } + } + last unless $changed; + } + diff --git a/contrib/perl5/Porting/fixvars b/contrib/perl5/Porting/fixvars new file mode 100755 index 0000000000000..a211e5816fa88 --- /dev/null +++ b/contrib/perl5/Porting/fixvars @@ -0,0 +1,69 @@ +#!/usr/local/bin/perl -w +use Data::Dumper; + +my $targ = (@ARGV) ? join(' ',@ARGV) : 'miniperl' ; + +my $work = 1; +while ($work) + { + open(PIPE,"make $targ 2>&1 |") || die "Cannot open pipe to make:$!"; + my %fix; + while (<PIPE>) + { + if (/^(.*):(\d+):\s+\`(\w+)'\s+undeclared/ && -f $1 ) + { + my ($file,$line,$var) = ($1,$2,$3); + $fix{$file} = [] unless exists $fix{$file}; + push(@{$fix{$file}},[$line => $var]) unless ($var =~ /^PL_/ || $file =~ /\.h$/); + } + print; + } + close(PIPE); + warn "Make retured $?\n"; + last unless $?; + my $changed = 0; + foreach my $file (keys %fix) + { + my @ar = sort( { $a->[0] <=> $b->[0] } @{delete $fix{$file}}); + my @miss; + my $fixed = 0; + unless (-w $file) + { + system("d4","edit",$file); + } + @ARGV = ($file); + $. = 0; + local $^I = '.sav'; + while (<>) + { + while (@ar && $. == $ar[0][0]) + { + my ($line,$var) = @{shift(@ar)}; + if (s/\b$var\b/PL_$var/) + { + warn "$file:$line: FIX $var\n"; + $fixed++; + $changed++; + } + else + { + push(@miss,[$line,$var,$_]); + } + } + print; + } + unless ($fixed) + { + rename("$file$^I",$file); + if (@miss) + { + while (@miss) + { + my ($line,$var,$txt) = @{shift(@miss)}; + warn "$file:$line:$var | $txt"; + } + } + } + } + last unless $changed; + } diff --git a/contrib/perl5/Porting/genlog b/contrib/perl5/Porting/genlog new file mode 100755 index 0000000000000..5c3e90577e1cd --- /dev/null +++ b/contrib/perl5/Porting/genlog @@ -0,0 +1,118 @@ +#!/l/local/bin/perl -w +# +# Generate a nice changelist by querying perforce. +# +# Each change is described with the change number, description, +# which branch the change happened in, files modified, +# and who was responsible for entering the change. +# +# Can be called with a list of change numbers or a range of the +# form "12..42". Changelog will be printed from highest number +# to lowest. +# +# Outputs the changelist to stdout. +# +# Gurusamy Sarathy <gsar@umich.edu> +# + +use Text::Wrap; + +$0 =~ s|^.*/||; +unless (@ARGV) { + die <<USAGE; + $0 [-p \$P4PORT] <change numbers or from..to> +USAGE +} + +my @changes; + +my %editkind; +@editkind{ qw( add edit delete integrate branch )} + = qw( + ! - !> +> ); + +my $p4port = $ENV{P4PORT} || 'localhost:1666'; + +while (@ARGV) { + $_ = shift; + if (/^(\d+)\.\.(\d+)$/) { + push @changes, $1 .. $2; + } + elsif (/^\d+$/) { + push @changes, $_; + } + elsif (/^-p(.*)$/) { + $p4port = $1 || shift; + } + else { + warn "Arguments must be change numbers, ignoring `$_'\n"; + } +} + +@changes = sort { $b <=> $a } @changes; + +my @desc = `p4 -p $p4port describe -s @changes`; +if ($?) { + die "$0: `p4 -p $p4port describe -s @changes` failed, status[$?]\n"; +} +else { + chomp @desc; + while (@desc) { + my ($change,$who,$date,$time,@log,$branch,$file,$type,%files); + $_ = shift @desc; + if (/^Change (\d+) by (\w+)\@.+ on (\S+) (\S+)\s*$/) { + ($change, $who, $date, $time) = ($1,$2,$3,$4); + $_ = shift @desc; # get rid of empty line + while (@desc) { + $_ = shift @desc; + last if /^Affected/; + push @log, $_; + } + if (/^Affected/) { + $_ = shift @desc; # get rid of empty line + while ($_ = shift @desc) { + last unless /^\.\.\./; + if (m{^\.\.\. //depot/(.*?perl|[^/]*)/([^#]+)#\d+ (\w+)\s*$}) { + ($branch,$file,$type) = ($1,$2,$3); + $files{$branch} = {} unless exists $files{$branch}; + $files{$branch}{$type} = [] unless exists $files{$branch}{$type}; + push @{$files{$branch}{$type}}, $file; + } + else { + warn "Unknown line [$_], ignoring\n"; + } + } + } + } + next unless $change; + print "_" x 76, "\n"; + printf <<EOT, $change, $who, $date, $time; +[%6s] By: %-25s on %9s %9s +EOT + print " Log: "; + my $i = 0; + while (@log) { + $_ = shift @log; + s/^\s*//; + s/^\[.*\]\s*// unless $i ; + # don't print last empty line + if ($_ or @log) { + print " " if $i++; + print "$_\n"; + } + } + for my $branch (sort keys %files) { + printf "%11s: $branch\n", 'Branch'; + for my $kind (sort keys %{$files{$branch}}) { + warn("### $kind ###\n"), next unless exists $editkind{$kind}; + my $files = $files{$branch}{$kind}; + # don't show large branches and integrations + $files = ["($kind " . scalar(@$files) . ' files)'] + if (@$files > 25 + && ( $kind eq 'integrate' || $kind eq 'branch')); + print wrap(sprintf("%12s ", $editkind{$kind}), + sprintf("%12s ", $editkind{$kind}), + "@$files\n"); + } + } + } +} diff --git a/contrib/perl5/Porting/makerel b/contrib/perl5/Porting/makerel new file mode 100755 index 0000000000000..f2e1f9750b22d --- /dev/null +++ b/contrib/perl5/Porting/makerel @@ -0,0 +1,129 @@ +#!/bin/env perl -w + +# A first attempt at some automated support for making a perl release. +# Very basic but functional - if you're on a unix system. +# +# No matter how automated this gets, you'll always need to read +# and re-read pumpkin.pod checking for things to be done at various +# stages of the process. +# +# Tim Bunce, June 1997 + +use ExtUtils::Manifest qw(fullcheck); + +$|=1; +$relroot = ".."; # XXX make an option + +die "Must be in root of the perl source tree.\n" + unless -f "./MANIFEST" and -f "patchlevel.h"; + +open PATCHLEVEL,"<patchlevel.h" or die; +my @patchlevel_h = <PATCHLEVEL>; +close PATCHLEVEL; +my $patchlevel_h = join "", grep { /^#define/ } @patchlevel_h; +print $patchlevel_h; +$patchlevel = $1 if $patchlevel_h =~ /PATCHLEVEL\s+(\d+)/; +$subversion = $1 if $patchlevel_h =~ /SUBVERSION\s+(\d+)/; +die "Unable to parse patchlevel.h" unless $subversion >= 0; +$vers = sprintf("5.%03d", $patchlevel); +$vms_vers = sprintf("5_%03d", $patchlevel); +if ($subversion) { + $vers.= sprintf( "_%02d", $subversion); + $vms_vers.= sprintf( "%02d", $subversion); +} else { + $vms_vers.= " "; +} + +# fetch list of local patches +my (@local_patches, @lpatch_tags, $lpatch_tags); +@local_patches = grep { /^static.*local_patches/../^};/ } @patchlevel_h; +@local_patches = grep { !/^\s*,?NULL/ } @local_patches; +@lpatch_tags = map { /^\s*,"(\w+)/ } @local_patches; +$lpatch_tags = join "-", @lpatch_tags; + +$perl = "perl$vers"; +$reldir = "$perl"; +$reldir .= "-$lpatch_tags" if $lpatch_tags; + +print "\nMaking a release for $perl in $relroot/$reldir\n\n"; + +print "Cross-checking the MANIFEST...\n"; +($missfile, $missentry) = fullcheck(); +warn "Can't make a release with MANIFEST files missing.\n" if @$missfile; +warn "Can't make a release with files not listed in MANIFEST.\n" if @$missentry; +if ("@$missentry" =~ m/\.orig\b/) { + # Handy listing of find command and .orig files from patching work. + # I tend to run 'xargs rm' and copy and paste the file list. + my $cmd = "find . -name '*.orig' -print"; + print "$cmd\n"; + system($cmd); +} +die "Aborted.\n" if @$missentry or @$missfile; +print "\n"; + +# VMS no longer has hardcoded version numbers descrip.mms +#print "Updating VMS version specific files with $vms_vers...\n"; +#system("perl -pi -e 's/^\QPERL_VERSION = \E\d\_\d+(\s*\#)/PERL_VERSION = $vms_vers$1/' vms/descrip.mms"); + + + +print "Creating $relroot/$reldir release directory...\n"; +die "$relroot/$reldir release directory already exists\n" if -e "$relroot/$reldir"; +die "$relroot/$reldir.tar.gz release file already exists\n" if -e "$relroot/$reldir.tar.gz"; +mkdir("$relroot/$reldir", 0755) or die "mkdir $relroot/$reldir: $!\n"; +print "\n"; + + +print "Copying files to release directory...\n"; +# ExtUtils::Manifest maniread does not preserve the order +$cmd = "awk '{print \$1}' MANIFEST | cpio -pdm $relroot/$reldir"; +system($cmd) == 0 or die "$cmd failed"; +print "\n"; + +chdir "$relroot/$reldir" or die $!; + +print "Setting file permissions...\n"; +system("find . -type f -print | xargs chmod -w"); +system("find . -type d -print | xargs chmod g-s"); +system("find t -name '*.t' -print | xargs chmod +x"); +my @exe = qw( + Configure + configpm + embed.pl + installperl + installman + keywords.pl + myconfig + opcode.pl + perly.fixer + t/TEST + t/*/*.t + *.SH + vms/ext/Stdio/test.pl + vms/ext/filespec.t + x2p/*.SH + Porting/patchls + Porting/makerel +); +system("chmod +x @exe"); + +print "Adding CRs to DOSish files...\n"; +my @crlf = qw( + djgpp/configure.bat + README.dos + README.win32 + win32/Makefile + win32/makefile.mk +); +system("perl -pi -e 's/\$/\\r/' @crlf"); +print "\n"; + +chdir ".." or die $!; + +print "Creating and compressing the tar file...\n"; +my $src = (-e $perl) ? $perl : 'perl'; # 'perl' in maint branch +$cmd = "tar cf - $reldir | gzip --best > $reldir.tar.gz"; +system($cmd) == 0 or die "$cmd failed"; +print "\n"; + +system("ls -ld $perl*"); diff --git a/contrib/perl5/Porting/p4d2p b/contrib/perl5/Porting/p4d2p new file mode 100755 index 0000000000000..67780a9393393 --- /dev/null +++ b/contrib/perl5/Porting/p4d2p @@ -0,0 +1,84 @@ +#!/l/local/bin/perl -wspi.bak + +# +# reads a perforce style diff on stdin and outputs appropriate headers +# so the diff can be applied with the patch program +# +# Gurusamy Sarathy <gsar@umich.edu> +# + +BEGIN { + $0 =~ s|.*/||; + if ($h or $help) { + print STDERR <<USAGE; +Usage: $0 [-v] [-h] files + + -h print this help + -v output progress messages + +Does inplace edit of diff files output by the perforce commands +"p4 describe", "p4 diff", and "p4 diff2". The result is suitable +for feeding to the "patch" program. + +If no files are specified, reads from stdin and writes to stdout. + +WARNING: It only handles context or unified diffs. + +Example: p4 describe -du 123 | $0 > change-123.patch + +USAGE + exit(0); + } + unless (@ARGV) { @ARGV = '-'; undef $^I; } + use vars qw($thisfile $time $file $fnum $v $h $help); + $thisfile = ""; + $time = localtime(time); +} + +my ($cur, $match); +$cur = m<^==== //depot/(.+?)\#\d+.* ====$> ... m<^(\@\@.+\@\@|\*+)$>; + +$match = $1; + +if ($ARGV ne $thisfile) { + warn "processing patchfile [$ARGV]\n" unless $ARGV eq '-'; + $thisfile = $ARGV; +} + +# while we are within range +if ($cur) { + # set the file name after first line + if ($cur == 1) { + $file = $match; + $fnum++; + } + # emit the diff header when we hit last line + elsif ($cur =~ /E0$/) { + my $f = $file; + + # special hack for perl so we can always use "patch -p1" + $f =~ s<^.*?(perl.*?/)><$1>; + + # unified diff + if ($match =~ /^\@/) { + warn "emitting udiff header\n" if $v; + $_ = "Index: $f\n--- $f.~1~\t$time\n+++ $f\t$time\n$_"; + } + # context diff + elsif ($match =~ /^\*/) { + warn "emitting cdiff header\n" if $v; + $_ = "Index: $f\n*** $f.~1~\t$time\n--- $f\t$time\n$_"; + } + } + # see if we hit another patch (i.e. previous patch was empty) + elsif (m<^==== //depot/(.+?)\#\d+.* ====$>) { + $file = $match = $1; + } + # suppress all other lines in the header + else { + $_ = ""; + } + warn "file [$file] line [$cur] file# [$fnum]\n" if $v; +} + +$_ .= "End of Patch.\n" if eof; diff --git a/contrib/perl5/Porting/patching.pod b/contrib/perl5/Porting/patching.pod new file mode 100644 index 0000000000000..e3b6188ff716c --- /dev/null +++ b/contrib/perl5/Porting/patching.pod @@ -0,0 +1,319 @@ +=head1 Name + +patching.pod - Appropriate format for patches to the perl source tree + +=head2 Where to get this document + +The latest version of this document is available from + http://perrin.dimensional.com/perl/perlpatch.html + +=head2 How to contribute to this document + +You may mail corrections, additions, and suggestions to me +at dgris@tdrenterprises.com but the preferred method would be +to follow the instructions set forth in this document and +submit a patch 8-). + +=head1 Description + +=head2 Why this document exists + +As an open source project Perl relies on patches and contributions from +its users to continue functioning properly and to root out the inevitable +bugs. But, some users are unsure as to the I<right> way to prepare a patch +and end up submitting seriously malformed patches. This makes it very +difficult for the current maintainer to integrate said patches into their +distribution. This document sets out usage guidelines for patches in an +attempt to make everybody's life easier. + +=head2 Common problems + +The most common problems appear to be patches being mangled by certain +mailers (I won't name names, but most of these seem to be originating on +boxes running a certain popular commercial operating system). Other problems +include patches not rooted in the appropriate place in the directory structure, +and patches not produced using standard utilities (such as diff). + +=head1 Proper Patch Guidelines + +=head2 How to prepare your patch + +=over 4 + +=item Creating your patch + +First, back up the original files. This can't be stressed enough, +back everything up _first_. + +Also, please create patches against a clean distribution of the perl source. +This insures that everyone else can apply your patch without clobbering their +source tree. + +=item diff + +While individual tastes vary (and are not the point here) patches should +be created using either C<-u> or C<-c> arguments to diff. These produce, +respectively, unified diffs (where the changed line appears immediately next +to the original) and context diffs (where several lines surrounding the changes +are included). See the manpage for diff for more details. + +Also, the preferred method for patching is - + +C<diff [C<-c> | C<-u>] E<lt>old-fileE<gt> E<lt>new-fileE<gt>> + +Note the order of files. + +Also, if your patch is to the core (rather than to a module) it +is better to create it as a context diff as some machines have +broken patch utilities that choke on unified diffs. + +GNU diff has many desirable features not provided by most vendor-supplied +diffs. Some examples using GNU diff: + + # generate a patch for a newly added file + % diff -u /dev/null new/file + + # generate a patch to remove a file (patch > v2.4 will remove it cleanly) + % diff -u old/goner /dev/null + + # get additions, deletions along with everything else, recursively + % diff -ruN olddir newdir + + # ignore whitespace + % diff -bu a/file b/file + + # show function name in every hunk (safer, more informative) + % diff -u -F '^[_a-zA-Z0-9]+ *(' old/file new/file + + +=item Directories + +Patches should be generated from the source root directory, not from the +directory that the patched file resides in. This insures that the maintainer +patches the proper file and avoids name collisions (especially common when trying +to apply patches to files that appear in both $src_root/ext/* and $src_root/lib/*). +It is better to diff the file in $src_root/ext than the file in $src_root/lib. + +=item Filenames + +The most usual convention when submitting patches for a single file is to make +your changes to a copy of the file with the same name as the original. Rename +the original file in such a way that it is obvious what is being patched ($file~ or +$file.old seem to be popular). + +If you are submitting patches that affect multiple files then you should backup +the entire directory tree (to $source_root.old/ for example). This will allow +C<diff C<-c> E<lt>old-dirE<gt> E<lt>new-dirE<gt>> to create all the patches +at once. + +=back + +=head2 What to include in your patch + +=over 4 + +=item Description of problem + +The first thing you should include is a description of the problem that +the patch corrects. If it is a code patch (rather than a documentation +patch) you should also include a small test case that illustrates the +bug. + +=item Direction for application + +You should include instructions on how to properly apply your patch. +These should include the files affected, any shell scripts or commands +that need to be run before or after application of the patch, and +the command line necessary for application. + +=item If you have a code patch + +If you are submitting a code patch there are several other things that +you need to do. + +=over 4 + +=item Comments, Comments, Comments + +Be sure to adequately comment your code. While commenting every +line is unnecessary, anything that takes advantage of side effects of +operators, that creates changes that will be felt outside of the +function being patched, or that others may find confusing should +be documented. If you are going to err, it is better to err on the +side of adding too many comments than too few. + +=item Style + +Please follow the indentation style and nesting style in use in the +block of code that you are patching. + +=item Testsuite + +When submitting a patch you should make every effort to also include +an addition to perl's regression tests to properly exercise your +patch. Your testsuite additions should generally follow these +guidelines (courtesy of Gurusamy Sarathy (gsar@engin.umich.edu))- + + Know what you're testing. Read the docs, and the source. + Tend to fail, not succeed. + Interpret results strictly. + Use unrelated features (this will flush out bizarre interactions). + Use non-standard idioms (otherwise you are not testing TIMTOWTDI). + Avoid using hardcoded test umbers whenever possible (the EXPECTED/GOT style + found in t/op/tie.t is much more maintainable, and gives better failure + reports). + Give meaningful error messages when a test fails. + Avoid using qx// and system() unless you are testing for them. If you + do use them, make sure that you cover _all_ perl platforms. + Unlink any temporary files you create. + Promote unforeseen warnings to errors with $SIG{__WARN__}. + Be sure to use the libraries and modules shipped with version being tested, + not those that were already installed. + Add comments to the code explaining what you are testing for. + Make updating the '1..42' string unnecessary. Or make sure that you update it. + Test _all_ behaviors of a given operator, library, or function- + All optional arguments + Return values in various contexts (boolean, scalar, list, lvalue) + Use both global and lexical variables + Don't forget the exceptional, pathological cases. + +=back + +=item Test your patch + +Apply your patch to a clean distribution, compile, and run the +regression test suite (you did remember to add one for your +patch, didn't you). + +=back + +=head2 An example patch creation + +This should work for most patches- + + cp MANIFEST MANIFEST.old + emacs MANIFEST + (make changes) + cd .. + diff -c perl5.008_42/MANIFEST.old perl5.008_42/MANIFEST > mypatch + (testing the patch:) + mv perl5.008_42/MANIFEST perl5.008_42/MANIFEST.new + cp perl5.008_42/MANIFEST.old perl5.008_42/MANIFEST + patch -p < mypatch + (should succeed) + diff perl5.008_42/MANIFEST perl5.008_42/MANIFEST.new + (should produce no output) + +=head2 Submitting your patch + +=over 4 + +=item Mailers + +Please, please, please (get the point? 8-) don't use a mailer that +word wraps your patch or that MIME encodes it. Both of these leave +the patch essentially worthless to the maintainer. + +If you have no choice in mailers and no way to get your hands on a +better one there is, of course, a perl solution. Just do this- + + perl -ne 'print pack("u*",$_)' patch > patch.uue + +and post patch.uue with a note saying to unpack it using + + perl -ne 'print unpack("u*",$_)' patch.uue > patch + +=item Subject lines for patches + +The subject line on your patch should read + +[PATCH]5.xxx_xx (Area) Description + +where the x's are replaced by the appropriate version number, +area is a short keyword identifying what area of perl you are +patching, and description is a very brief summary of the +problem (don't forget this is an email header). + +Examples- + +[PATCH]5.004_04 (DOC) fix minor typos + +[PATCH]5.004_99 (CORE) New warning for foo() when frobbing + +[PATCH]5.005_42 (CONFIG) Added support for fribnatz 1.5 + +=item Where to send your patch + +If your patch is for the perl core it should be sent perlbug@perl.org. +If it is a patch to a module that you downloaded from CPAN you should +submit your patch to that module's author. + +=back + +=head2 Applying a patch + +=over 4 + +=item General notes on applying patches + +The following are some general notes on applying a patch +to your perl distribution. + +=over 4 + +=item patch C<-p> + +It is generally easier to apply patches with the C<-p> argument to +patch. This helps reconcile differing paths between the machine the +patch was created on and the machine on which it is being applied. + +=item Cut and paste + +_Never_ cut and paste a patch into your editor. This usually clobbers +the tabs and confuses patch. + +=item Hand editing patches + +Avoid hand editing patches as this frequently screws up the whitespace +in the patch and confuses the patch program. + +=back + +=back + +=head2 Final notes + +If you follow these guidelines it will make everybody's life a little +easier. You'll have the satisfaction of having contributed to perl, +others will have an easy time using your work, and it should be easier +for the maintainers to coordinate the occasionally large numbers of +patches received. + +Also, just because you're not a brilliant coder doesn't mean that you can't +contribute. As valuable as code patches are there is always a need for better +documentation (especially considering the general level of joy that most +programmers feel when forced to sit down and write docs). If all you do +is patch the documentation you have still contributed more than the person +who sent in an amazing new feature that noone can use because noone understands +the code (what I'm getting at is that documentation is both the hardest part to +do (because everyone hates doing it) and the most valuable). + +Mostly, when contributing patches, imagine that it is B<you> receiving hundreds +of patches and that it is B<your> responsibility to integrate them into the source. +Obviously you'd want the patches to be as easy to apply as possible. Keep that in +mind. 8-) + +=head1 Last Modified + +Last modified 21 May 1998 by Daniel Grisinger <dgris@perrin.dimensional.com> + +=head1 Author and Copyright Information + +Copyright (c) 1998 Daniel Grisinger + +Adapted from a posting to perl5-porters by Tim Bunce (Tim.Bunce@ig.co.uk). + +I'd like to thank the perl5-porters for their suggestions. + + + diff --git a/contrib/perl5/Porting/patchls b/contrib/perl5/Porting/patchls new file mode 100755 index 0000000000000..38c4dd1f473c7 --- /dev/null +++ b/contrib/perl5/Porting/patchls @@ -0,0 +1,539 @@ +#!/bin/perl -w +# +# patchls - patch listing utility +# +# Input is one or more patchfiles, output is a list of files to be patched. +# +# Copyright (c) 1997 Tim Bunce. All rights reserved. +# This program is free software; you can redistribute it and/or +# modify it under the same terms as Perl itself. +# +# With thanks to Tom Horsley for the seed code. + + +use Getopt::Std; +use Text::Wrap qw(wrap $columns); +use Text::Tabs qw(expand unexpand); +use strict; +use vars qw($VERSION); + +$VERSION = 2.08; + +sub usage { +die qq{ + patchls [options] patchfile [ ... ] + + -h no filename headers (like grep), only the listing. + -l no listing (like grep), only the filename headers. + -i Invert: for each patched file list which patch files patch it. + -c Categorise the patch and sort by category (perl specific). + -m print formatted Meta-information (Subject,From,Msg-ID etc). + -p N strip N levels of directory Prefix (like patch), else automatic. + -v more verbose (-d for noisy debugging). + -n give a count of the number of patches applied to a file if >1. + -f F only list patches which patch files matching regexp F + (F has \$ appended unless it contains a /). + -e Expect patched files to Exist (relative to current directory) + Will print warnings for files which don't. Also affects -4 option. + other options for special uses: + -I just gather and display summary Information about the patches. + -4 write to stdout the PerForce commands to prepare for patching. + -5 like -4 but add "|| exit 1" after each command + -M T Like -m but only output listed meta tags (eg -M 'Title From') + -W N set wrap width to N (defaults to 70, use 0 for no wrap) + -X list patchfiles that may clash (i.e. patch the same file) + + patchls version $VERSION by Tim Bunce +} +} + +$::opt_p = undef; # undef != 0 +$::opt_d = 0; +$::opt_v = 0; +$::opt_m = 0; +$::opt_n = 0; +$::opt_i = 0; +$::opt_h = 0; +$::opt_l = 0; +$::opt_c = 0; +$::opt_f = ''; +$::opt_e = 0; + +# special purpose options +$::opt_I = 0; +$::opt_4 = 0; # output PerForce commands to prepare for patching +$::opt_5 = 0; +$::opt_M = ''; # like -m but only output these meta items (-M Title) +$::opt_W = 70; # set wrap width columns (see Text::Wrap module) +$::opt_C = 0; # 'Chip' mode (handle from/tags/article/bug files) undocumented +$::opt_X = 0; # list patchfiles that patch the same file + +usage unless @ARGV; + +getopts("dmnihlvecC45Xp:f:IM:W:") or usage; + +$columns = $::opt_W || 9999999; + +$::opt_m = 1 if $::opt_M; +$::opt_4 = 1 if $::opt_5; +$::opt_i = 1 if $::opt_X; + +# see get_meta_info() +my @show_meta = split(' ', $::opt_M || 'Title From Msg-ID Files'); +my %show_meta = map { ($_,1) } @show_meta; + +my %cat_title = ( + 'BUILD' => 'BUILD PROCESS', + 'CORE' => 'CORE LANGUAGE', + 'DOC' => 'DOCUMENTATION', + 'LIB' => 'LIBRARY', + 'PORT1' => 'PORTABILITY - WIN32', + 'PORT2' => 'PORTABILITY - GENERAL', + 'TEST' => 'TESTS', + 'UTIL' => 'UTILITIES', + 'OTHER' => 'OTHER CHANGES', + 'EXT' => 'EXTENSIONS', + 'UNKNOWN' => 'UNKNOWN - NO FILES PATCH', +); + + +sub get_meta_info { + my $ls = shift; + local($_) = shift; + if (/^From:\s+(.*\S)/i) {; + my $from = $1; # temporary measure for Chip Salzenberg + $from =~ s/chip\@(atlantic\.net|perlsupport\.com)/chip\@pobox.com/; + $from =~ s/\(Tim Bunce\) \(Tim Bunce\)/(Tim Bunce)/; + $ls->{From}{$from} = 1 + } + if (/^Subject:\s+(?:Re: )?(.*\S)/i) { + my $title = $1; + $title =~ s/\[(PATCH|PERL)[\w\. ]*\]:?//g; + $title =~ s/\b(PATCH|PERL)[\w\.]*://g; + $title =~ s/\bRe:\s+/ /g; + $title =~ s/\s+/ /g; + $title =~ s/^\s*(.*?)\s*$/$1/g; + $ls->{Title}{$title} = 1; + } + $ls->{'Msg-ID'}{$1}=1 if /^Message-Id:\s+(.*\S)/i; + $ls->{Date}{$1}=1 if /^Date:\s+(.*\S)/i; + $ls->{$1}{$2}=1 if $::opt_M && /^([-\w]+):\s+(.*\S)/; +} + + +# Style 1: +# *** perl-5.004/embed.h Sat May 10 03:39:32 1997 +# --- perl-5.004.fixed/embed.h Thu May 29 19:48:46 1997 +# *************** +# *** 308,313 **** +# --- 308,314 ---- +# +# Style 2: +# --- perl5.004001/mg.c Sun Jun 08 12:26:24 1997 +# +++ perl5.004-bc/mg.c Sun Jun 08 11:56:08 1997 +# @@ -656,9 +656,27 @@ +# or (rcs, note the different date format) +# --- 1.18 1997/05/23 19:22:04 +# +++ ./pod/perlembed.pod 1997/06/03 21:41:38 +# +# Variation: +# Index: embed.h + +my %ls; + +my $in; +my $ls; +my $prevline = ''; +my $prevtype = ''; +my (@removed, @added); +my $prologue = 1; # assume prologue till patch or /^exit\b/ seen + + +foreach my $argv (@ARGV) { + $in = $argv; + unless (open F, "<$in") { + warn "Unable to open $in: $!\n"; + next; + } + print "Reading $in...\n" if $::opt_v and @ARGV > 1; + $ls = $ls{$in} ||= { is_in => 1, in => $in }; + my $type; + while (<F>) { + unless (/^([-+*]{3}) / || /^(Index):/) { + # not an interesting patch line + # but possibly meta-information or prologue + if ($prologue) { + push @added, $1 if /^touch\s+(\S+)/; + push @removed, $1 if /^rm\s+(?:-f)?\s*(\S+)/; + $prologue = 0 if /^exit\b/; + } + get_meta_info($ls, $_) if $::opt_m; + next; + } + $type = $1; + next if /^--- [0-9,]+ ----$/ || /^\*\*\* [0-9,]+ \*\*\*\*$/; + $prologue = 0; + + print "Last: $prevline","This: ${_}Got: $type\n\n" if $::opt_d; + + # Some patches have Index lines but not diff headers + # Patch copes with this, so must we. It's also handy for + # documenting manual changes by simply adding Index: lines + # to the file which describes the problem being fixed. + if (/^Index:\s+(.*)/) { + my $f; + foreach $f (split(/ /, $1)) { add_file($ls, $f) } + next; + } + + if ( ($type eq '---' and $prevtype eq '***') # Style 1 + or ($type eq '+++' and $prevtype eq '---') # Style 2 + ) { + if (/^[-+*]{3} (\S+)\s*(.*?\d\d:\d\d:\d\d)?/) { # double check + add_file($ls, $1); + } + else { + warn "$in $.: parse error (prev $prevtype, type $type)\n$prevline$_"; + } + } + } + continue { + $prevline = $_; + $prevtype = $type || ''; + $type = ''; + } + + # special mode for patch sets from Chip + if ($in =~ m:[\\/]patch$:) { + my $is_chip; + my $chip; + my $dir; ($dir = $in) =~ s:[\\/]patch$::; + if (!$ls->{From} && (open(CHIP,"$dir/article") || open(CHIP,"$dir/bug"))) { + get_meta_info($ls, $_) while (<CHIP>); + $is_chip = 1; + } + if (open CHIP,"<$dir/from") { + chop($chip = <CHIP>); + $ls->{From} = { $chip => 1 }; + $is_chip = 1; + } + if (open CHIP,"<$dir/tag") { + chop($chip = <CHIP>); + $ls->{Title} = { $chip => 1 }; + $is_chip = 1; + } + $ls->{From} = { "Chip Salzenberg" => 1 } if $is_chip && !$ls->{From}; + } + + # if we don't have a title for -m then use the file name + $ls->{Title}{$in}=1 if $::opt_m + and !$ls->{Title} and $ls->{out}; + + $ls->{category} = $::opt_c + ? categorize_files([keys %{ $ls->{out} }], $::opt_v) : ''; +} +print scalar(@ARGV)." files read.\n" if $::opt_v and @ARGV > 1; + + +# --- Firstly we filter and sort as needed --- + +my @ls = values %ls; + +if ($::opt_f) { # filter out patches based on -f <regexp> + $::opt_f .= '$' unless $::opt_f =~ m:/:; + @ls = grep { + my $match = 0; + if ($_->{is_in}) { + my @out = keys %{ $_->{out} }; + $match=1 if grep { m/$::opt_f/o } @out; + } + else { + $match=1 if $_->{in} =~ m/$::opt_f/o; + } + $match; + } @ls; +} + +@ls = sort { + $a->{category} cmp $b->{category} || $a->{in} cmp $b->{in} +} @ls; + + +# --- Handle special modes --- + +if ($::opt_4) { + my $tail = ($::opt_5) ? "|| exit 1" : ""; + print map { "p4 delete $_$tail\n" } @removed if @removed; + print map { "p4 add $_$tail\n" } @added if @added; + my @patches = sort grep { $_->{is_in} } @ls; + my @no_outs = grep { keys %{$_->{out}} == 0 } @patches; + warn "Warning: Some files contain no patches:", + join("\n\t", '', map { $_->{in} } @no_outs), "\n" if @no_outs; + my %patched = map { ($_, 1) } map { keys %{$_->{out}} } @patches; + delete @patched{@added}; + my @patched = sort keys %patched; + foreach(@patched) { + my $edit = ($::opt_e && !-f $_) ? "add " : "edit"; + print "p4 $edit $_$tail\n"; + } + exit 0 unless $::opt_C; +} + + +if ($::opt_I) { + my $n_patches = 0; + my($in,$out); + my %all_out; + my @no_outs; + foreach $in (@ls) { + next unless $in->{is_in}; + ++$n_patches; + my @outs = keys %{$in->{out}}; + push @no_outs, $in unless @outs; + @all_out{@outs} = ($in->{in}) x @outs; + } + my @all_out = sort keys %all_out; + my @missing = grep { ! -f $_ } @all_out; + print "$n_patches patch files patch ".@all_out." files (".@missing." missing)\n"; + print @no_outs." patch files don't contain patches.\n" if @no_outs; + print "(use -v to list patches which patch 'missing' files)\n" + if (@missing || @no_outs) && !$::opt_v; + if ($::opt_v and @no_outs) { + print "Patch files which don't contain patches:\n"; + foreach $out (@no_outs) { + printf " %-20s\n", $out->{in}; + } + } + if ($::opt_v and @missing) { + print "Missing files:\n"; + foreach $out (@missing) { + printf " %-20s\t", $out unless $::opt_h; + print $all_out{$out} unless $::opt_l; + print "\n"; + } + } + print "Added files: @added\n" if @added; + print "Removed files: @removed\n" if @removed; + exit 0+@missing; +} + +unless ($::opt_c and $::opt_m) { + foreach $ls (@ls) { + next unless ($::opt_i) ? $ls->{is_out} : $ls->{is_in}; + next if $::opt_X and keys %{$ls->{out}} <= 1; + list_files_by_patch($ls); + } +} +else { + my $c = ''; + foreach $ls (@ls) { + next unless ($::opt_i) ? $ls->{is_out} : $ls->{is_in}; + print "\n ------ $cat_title{$ls->{category}} ------\n" + if $ls->{category} ne $c; + $c = $ls->{category}; + unless ($::opt_i) { + list_files_by_patch($ls); + } + else { + my $out = $ls->{in}; + print "\n$out patched by:\n"; + # find all the patches which patch $out and list them + my @p = grep { $_->{out}->{$out} } values %ls; + foreach $ls (@p) { + list_files_by_patch($ls, ''); + } + } + } + print "\n"; +} + +exit 0; + + +# --- + + +sub add_file { + my $ls = shift; + print "add_file '$_[0]'\n" if $::opt_d; + my $out = trim_name(shift); + + $ls->{out}->{$out} = 1; + + warn "$out patched but not present\n" if $::opt_e && !-f $out; + + # do the -i inverse as well, even if we're not doing -i + my $i = $ls{$out} ||= { + is_out => 1, + in => $out, + category => $::opt_c ? categorize_files([ $out ], $::opt_v) : '', + }; + $i->{out}->{$in} = 1; +} + + +sub trim_name { # reduce/tidy file paths from diff lines + my $name = shift; + $name = "$name ($in)" if $name eq "/dev/null"; + $name =~ s:\\:/:g; # adjust windows paths + $name =~ s://:/:g; # simplify (and make win \\share into absolute path) + if (defined $::opt_p) { + # strip on -p levels of directory prefix + my $dc = $::opt_p; + $name =~ s:^[^/]+/(.+)$:$1: while $dc-- > 0; + } + else { # try to strip off leading path to perl directory + # if absolute path, strip down to any *perl* directory first + $name =~ s:^/.*?perl.*?/::i; + $name =~ s:.*perl[-_]?5?[._]?[-_a-z0-9.+]*/::i; + $name =~ s:^\./::; + } + return $name; +} + + +sub list_files_by_patch { + my($ls, $name) = @_; + $name = $ls->{in} unless defined $name; + my @meta; + if ($::opt_m) { + my $meta; + foreach $meta (@show_meta) { + next unless $ls->{$meta}; + my @list = sort keys %{$ls->{$meta}}; + push @meta, sprintf "%7s: ", $meta; + if ($meta eq 'Title') { + @list = map { "\"$_\""; } @list; + push @list, "#$1" if $::opt_C && $ls->{in} =~ m:\b(\w\d+)/patch$:; + } + elsif ($meta eq 'From') { + # fix-up bizzare addresses from japan and ibm :-) + foreach(@list) { + s:\W+=?iso.*?<: <:; + s/\d\d-\w\w\w-\d{4}\s+\d\d:\S+\s*//; + } + } + elsif ($meta eq 'Msg-ID') { + my %from; # limit long threads to one msg-id per site + @list = map { + $from{(/@(.*?)>/ ? $1 : $_)}++ ? () : ($_); + } @list; + } + push @meta, my_wrap(""," ", join(", ",@list)."\n"); + } + $name = "\n$name" if @meta and $name; + } + # don't print the header unless the file contains something interesting + return if !@meta and !$ls->{out} and !$::opt_v; + if ($::opt_l) { # -l = no listing, just names + print "$ls->{in}"; + my $n = keys %{ $ls->{out} }; + print " ($n patches)" if $::opt_n and $n>1; + print "\n"; + return; + } + + # a twisty maze of little options + my $cat = ($ls->{category} and !$::opt_m) ? "\t$ls->{category}" : ""; + print "$name$cat: " unless ($::opt_h and !$::opt_v) or !"$name$cat"; + print join('',"\n",@meta) if @meta; + + return if $::opt_m && !$show_meta{Files}; + my @v = sort PATORDER keys %{ $ls->{out} }; + my $n = @v; + my $v = "@v"; + print $::opt_m ? " Files: ".my_wrap(""," ",$v) : $v; + print " ($n patches)" if $::opt_n and $n>1; + print "\n"; +} + + +sub my_wrap { + my $txt = eval { expand(wrap(@_)) }; # die's on long lines! + return $txt unless $@; + return expand("@_"); +} + + + +sub categorize_files { + my($files, $verb) = @_; + my(%c, $refine); + + foreach (@$files) { # assign a score to a file path + # the order of some of the tests is important + $c{TEST} += 5,next if m:^t/:; + $c{DOC} += 5,next if m:^pod/:; + $c{UTIL} += 10,next if m:^(utils|x2p|h2pl)/:; + $c{PORT1}+= 15,next if m:^win32:; + $c{PORT2} += 15,next + if m:^(cygwin32|os2|plan9|qnx|vms)/: + or m:^(hints|Porting|ext/DynaLoader)/: + or m:^README\.:; + $c{EXT} += 10,next + if m:^(ext|lib/ExtUtils)/:; + $c{LIB} += 10,next + if m:^(lib)/:; + $c{'CORE'} += 15,next + if m:^[^/]+[\._]([chH]|sym|pl)$:; + $c{BUILD} += 10,next + if m:^[A-Z]+$: or m:^[^/]+\.SH$: + or m:^(install|configure|configpm):i; + print "Couldn't categorise $_\n" if $::opt_v; + $c{OTHER} += 1; + } + if (keys %c > 1) { # sort to find category with highest score + refine: + ++$refine; + my @c = sort { $c{$b} <=> $c{$a} || $a cmp $b } keys %c; + my @v = map { $c{$_} } @c; + if (@v > 1 and $refine <= 1 and "@v" =~ /^(\d) \1/ + and $c[0] =~ m/^(DOC|TESTS|OTHER)/) { # rare + print "Tie, promoting $c[1] over $c[0]\n" if $::opt_d; + ++$c{$c[1]}; + goto refine; + } + print " ".@$files." patches: ", join(", ", map { "$_: $c{$_}" } @c),".\n" + if $verb; + return $c[0] || 'OTHER'; + } + else { + my($c, $v) = %c; + $c ||= 'UNKNOWN'; $v ||= 0; + print " ".@$files." patches: $c: $v\n" if $verb; + return $c; + } +} + + +sub PATORDER { # PATORDER sort by Chip Salzenberg + my ($i, $j); + + $i = ($a =~ m#^[A-Z]+$#); + $j = ($b =~ m#^[A-Z]+$#); + return $j - $i if $i != $j; + + $i = ($a =~ m#configure|hint#i) || ($a =~ m#[S_]H$#); + $j = ($b =~ m#configure|hint#i) || ($b =~ m#[S_]H$#); + return $j - $i if $i != $j; + + $i = ($a =~ m#\.pod$#); + $j = ($b =~ m#\.pod$#); + return $j - $i if $i != $j; + + $i = ($a =~ m#include/#); + $j = ($b =~ m#include/#); + return $j - $i if $i != $j; + + if ((($i = $a) =~ s#/+[^/]*$##) + && (($j = $b) =~ s#/+[^/]*$##)) { + return $i cmp $j if $i ne $j; + } + + $i = ($a =~ m#\.h$#); + $j = ($b =~ m#\.h$#); + return $j - $i if $i != $j; + + return $a cmp $b; +} + diff --git a/contrib/perl5/Porting/pumpkin.pod b/contrib/perl5/Porting/pumpkin.pod new file mode 100644 index 0000000000000..f41dfaca1a72d --- /dev/null +++ b/contrib/perl5/Porting/pumpkin.pod @@ -0,0 +1,1313 @@ +=head1 NAME + +Pumpkin - Notes on handling the Perl Patch Pumpkin + +=head1 SYNOPSIS + +There is no simple synopsis, yet. + +=head1 DESCRIPTION + +This document attempts to begin to describe some of the +considerations involved in patching and maintaining perl. + +This document is still under construction, and still subject to +significant changes. Still, I hope parts of it will be useful, +so I'm releasing it even though it's not done. + +For the most part, it's a collection of anecdotal information that +already assumes some familiarity with the Perl sources. I really need +an introductory section that describes the organization of the sources +and all the various auxiliary files that are part of the distribution. + +=head1 Where Do I Get Perl Sources and Related Material? + +The Comprehensive Perl Archive Network (or CPAN) is the place to go. +There are many mirrors, but the easiest thing to use is probably +http://www.perl.com/CPAN/README.html , which automatically points you to a +mirror site "close" to you. + +=head2 Perl5-porters mailing list + +The mailing list perl5-porters@perl.org +is the main group working with the development of perl. If you're +interested in all the latest developments, you should definitely +subscribe. The list is high volume, but generally has a +fairly low noise level. + +Subscribe by sending the message (in the body of your letter) + + subscribe perl5-porters + +to perl5-porters-request@perl.org . + +Archives of the list are held at: + + http://www.rosat.mpe-garching.mpg.de/mailing-lists/perl-porters/ + +=head1 How are Perl Releases Numbered? + +Perl version numbers are floating point numbers, such as 5.004. +(Observations about the imprecision of floating point numbers for +representing reality probably have more relevance than you might +imagine :-) The major version number is 5 and the '004' is the +patchlevel. (Questions such as whether or not '004' is really a minor +version number can safely be ignored.:) + +The version number is available as the magic variable $], +and can be used in comparisons, e.g. + + print "You've got an old perl\n" if $] < 5.002; + +You can also require particular version (or later) with + + use 5.002; + +At some point in the future, we may need to decide what to call the +next big revision. In the .package file used by metaconfig to +generate Configure, there are two variables that might be relevant: +$baserev=5.0 and $package=perl5. At various times, I have suggested +we might change them to $baserev=5.1 and $package=perl5.1 if want +to signify a fairly major update. Or, we might want to jump to perl6. +Let's worry about that problem when we get there. + +=head2 Subversions + +In addition, there may be "developer" sub-versions available. These +are not official releases. They may contain unstable experimental +features, and are subject to rapid change. Such developer +sub-versions are numbered with sub-version numbers. For example, +version 5.003_04 is the 4'th developer version built on top of +5.003. It might include the _01, _02, and _03 changes, but it +also might not. Sub-versions are allowed to be subversive. (But see +the next section for recent changes.) + +These sub-versions can also be used as floating point numbers, so +you can do things such as + + print "You've got an unstable perl\n" if $] == 5.00303; + +You can also require particular version (or later) with + + use 5.003_03; # the "_" is optional + +Sub-versions produced by the members of perl5-porters are usually +available on CPAN in the F<src/5.0/unsupported> directory. + +=head2 Maintenance and Development Subversions + +As an experiment, starting with version 5.004, subversions _01 through +_49 will be reserved for bug-fix maintenance releases, and subversions +_50 through _99 will be available for unstable development versions. + +The separate bug-fix track is being established to allow us an easy +way to distribute important bug fixes without waiting for the +developers to untangle all the other problems in the current +developer's release. + +Trial releases of bug-fix maintenance releases are announced on +perl5-porters. Trial releases use the new subversion number (to avoid +testers installing it over the previous release) and include a 'local +patch' entry in patchlevel.h. + +Watch for announcements of maintenance subversions in +comp.lang.perl.announce. + +The first rule of maintenance work is "First, do no harm." + +=head2 Why such a complicated scheme? + +Two reasons, really. At least. + +First, we need some way to identify and release collections of patches +that are known to have new features that need testing and exploration. The +subversion scheme does that nicely while fitting into the +C<use 5.004;> mold. + +Second, since most of the folks who help maintain perl do so on a +free-time voluntary basis, perl development does not proceed at a +precise pace, though it always seems to be moving ahead quickly. +We needed some way to pass around the "patch pumpkin" to allow +different people chances to work on different aspects of the +distribution without getting in each other's way. It wouldn't be +constructive to have multiple people working on incompatible +implementations of the same idea. Instead what was needed was +some kind of "baton" or "token" to pass around so everyone knew +whose turn was next. + +=head2 Why is it called the patch pumpkin? + +Chip Salzenberg gets credit for that, with a nod to his cow orker, +David Croy. We had passed around various names (baton, token, hot +potato) but none caught on. Then, Chip asked: + +[begin quote] + + Who has the patch pumpkin? + +To explain: David Croy once told me once that at a previous job, +there was one tape drive and multiple systems that used it for backups. +But instead of some high-tech exclusion software, they used a low-tech +method to prevent multiple simultaneous backups: a stuffed pumpkin. +No one was allowed to make backups unless they had the "backup pumpkin". + +[end quote] + +The name has stuck. + +=head1 Philosophical Issues in Patching Perl + +There are no absolute rules, but there are some general guidelines I +have tried to follow as I apply patches to the perl sources. +(This section is still under construction.) + +=head2 Solve problems as generally as possible + +Never implement a specific restricted solution to a problem when you +can solve the same problem in a more general, flexible way. + +For example, for dynamic loading to work on some SVR4 systems, we had +to build a shared libperl.so library. In order to build "FAT" binaries +on NeXT 4.0 systems, we had to build a special libperl library. Rather +than continuing to build a contorted nest of special cases, I +generalized the process of building libperl so that NeXT and SVR4 users +could still get their work done, but others could build a shared +libperl if they wanted to as well. + +=head2 Seek consensus on major changes + +If you are making big changes, don't do it in secret. Discuss the +ideas in advance on perl5-porters. + +=head2 Keep the documentation up-to-date + +If your changes may affect how users use perl, then check to be sure +that the documentation is in sync with your changes. Be sure to +check all the files F<pod/*.pod> and also the F<INSTALL> document. + +Consider writing the appropriate documentation first and then +implementing your change to correspond to the documentation. + +=head2 Avoid machine-specific #ifdef's + +To the extent reasonable, try to avoid machine-specific #ifdef's in +the sources. Instead, use feature-specific #ifdef's. The reason is +that the machine-specific #ifdef's may not be valid across major +releases of the operating system. Further, the feature-specific tests +may help out folks on another platform who have the same problem. + +=head2 Allow for lots of testing + +We should never release a main version without testing it as a +subversion first. + +=head2 Test popular applications and modules. + +We should never release a main version without testing whether or not +it breaks various popular modules and applications. A partial list of +such things would include majordomo, metaconfig, apache, Tk, CGI, +libnet, and libwww, to name just a few. Of course it's quite possible +that some of those things will be just plain broken and need to be fixed, +but, in general, we ought to try to avoid breaking widely-installed +things. + +=head2 Automate generation of derivative files + +The F<embed.h>, F<keywords.h>, F<opcode.h>, and F<perltoc.pod> files +are all automatically generated by perl scripts. In general, don't +patch these directly; patch the data files instead. + +F<Configure> and F<config_h.SH> are also automatically generated by +B<metaconfig>. In general, you should patch the metaconfig units +instead of patching these files directly. However, very minor changes to +F<Configure> may be made in between major sync-ups with the metaconfig +units, which tends to be complicated operations. But be careful, this +can quickly spiral out of control. Running metaconfig is not really +hard. + +Finally, the sample files in the F<Porting/> subdirectory are +generated automatically by the script F<U/mksample> included +with the metaconfig units. See L<"run metaconfig"> below for +information on obtaining the metaconfig units. + +=head1 How to Make a Distribution + +There really ought to be a 'make dist' target, but there isn't. +The 'dist' suite of tools also contains a number of tools that I haven't +learned how to use yet. Some of them may make this all a bit easier. + +Here are the steps I go through to prepare a patch & distribution. + +Lots of it could doubtless be automated but isn't. The Porting/makerel +(make release) perl script does now help automate some parts of it. + +=head2 Announce your intentions + +First, you should volunteer out loud to take the patch pumpkin. It's +generally counter-productive to have multiple people working in secret +on the same thing. + +At the same time, announce what you plan to do with the patch pumpkin, +to allow folks a chance to object or suggest alternatives, or do it for +you. Naturally, the patch pumpkin holder ought to incorporate various +bug fixes and documentation improvements that are posted while he or +she has the pumpkin, but there might also be larger issues at stake. + +One of the precepts of the subversion idea is that we shouldn't give +the patch pumpkin to anyone unless we have some idea what he or she +is going to do with it. + +=head2 refresh pod/perltoc.pod + +Presumably, you have done a full C<make> in your working source +directory. Before you C<make spotless> (if you do), and if you have +changed any documentation in any module or pod file, change to the +F<pod> directory and run C<make toc>. + +=head2 run installhtml to check the validity of the pod files + +=head2 update patchlevel.h + +Don't be shy about using the subversion number, even for a relatively +modest patch. We've never even come close to using all 99 subversions, +and it's better to have a distinctive number for your patch. If you +need feedback on your patch, go ahead and issue it and promise to +incorporate that feedback quickly (e.g. within 1 week) and send out a +second patch. + +=head2 run metaconfig + +If you need to make changes to Configure or config_h.SH, it may be best to +change the appropriate metaconfig units instead, and regenerate Configure. + + metaconfig -m + +will regenerate Configure and config_h.SH. Much more information +on obtaining and running metaconfig is in the F<U/README> file +that comes with Perl's metaconfig units. Perl's metaconfig units +should be available on CPAN. A set of units that will work with +perl5.005 is in the file F<mc_units-5.005_00-01.tar.gz> under +http://www.perl.com/CPAN/authors/id/ANDYD/ . The mc_units tar file +should be unpacked in your main perl source directory. Note: those +units were for use with 5.005. There may have been changes since then. +Check for later versions or contact perl5-porters@perl.org to obtain a +pointer to the current version. + +Alternatively, do consider if the F<*ish.h> files might be a better +place for your changes. + +=head2 MANIFEST + +Make sure the MANIFEST is up-to-date. You can use dist's B<manicheck> +program for this. You can also use + + perl -w -MExtUtils::Manifest=fullcheck -e fullcheck + +Both commands will also list extra files in the directory that are not +listed in MANIFEST. + +The MANIFEST is normally sorted. + +If you are using metaconfig to regenerate Configure, then you should note +that metaconfig actually uses MANIFEST.new, so you want to be sure +MANIFEST.new is up-to-date too. I haven't found the MANIFEST/MANIFEST.new +distinction particularly useful, but that's probably because I still haven't +learned how to use the full suite of tools in the dist distribution. + +=head2 Check permissions + +All the tests in the t/ directory ought to be executable. The +main makefile used to do a 'chmod t/*/*.t', but that resulted in +a self-modifying distribution--something some users would strongly +prefer to avoid. The F<t/TEST> script will check for this +and do the chmod if needed, but the tests still ought to be +executable. + +In all, the following files should probably be executable: + + Configure + configpm + configure.gnu + embed.pl + installperl + installman + keywords.pl + myconfig + opcode.pl + perly.fixer + t/TEST + t/*/*.t + *.SH + vms/ext/Stdio/test.pl + vms/ext/filespec.t + x2p/*.SH + +Other things ought to be readable, at least :-). + +Probably, the permissions for the files could be encoded in MANIFEST +somehow, but I'm reluctant to change MANIFEST itself because that +could break old scripts that use MANIFEST. + +I seem to recall that some SVR3 systems kept some sort of file that listed +permissions for system files; something like that might be appropriate. + +=head2 Run Configure + +This will build a config.sh and config.h. You can skip this if you haven't +changed Configure or config_h.SH at all. I use the following command + + sh Configure -Dprefix=/opt/perl -Doptimize=-O -Dusethreads \ + -Dcf_by='yourname' \ + -Dcf_email='yourname@yourhost.yourplace.com' \ + -Dperladmin='yourname@yourhost.yourplace.com' \ + -Dmydomain='.yourplace.com' \ + -Dmyhostname='yourhost' \ + -des + +=head2 Update Porting/config.sh and Porting/config_H + +[XXX +This section needs revision. We're currently working on easing +the task of keeping the vms, win32, and plan9 config.sh info +up-to-date. The plan is to use keep up-to-date 'canned' config.sh +files in the appropriate subdirectories and then generate 'canned' +config.h files for vms, win32, etc. from the generic config.sh file. +This is to ease maintenance. When Configure gets updated, the parts +sometimes get scrambled around, and the changes in config_H can +sometimes be very hard to follow. config.sh, on the other hand, can +safely be sorted, so it's easy to track (typically very small) changes +to config.sh and then propoagate them to a canned 'config.h' by any +number of means, including a perl script in win32/ or carrying +config.sh and config_h.SH to a Unix system and running sh +config_h.SH.) +XXX] + +The Porting/config.sh and Porting/config_H files are provided to +help those folks who can't run Configure. It is important to keep +them up-to-date. If you have changed config_h.SH, those changes must +be reflected in config_H as well. (The name config_H was chosen to +distinguish the file from config.h even on case-insensitive file systems.) +Simply edit the existing config_H file; keep the first few explanatory +lines and then copy your new config.h below. + +It may also be necessary to update win32/config.?c, vms/config.vms and +plan9/config.plan9, though you should be quite careful in doing so if +you are not familiar with those systems. You might want to issue your +patch with a promise to quickly issue a follow-up that handles those +directories. + +=head2 make run_byacc + +If you have byacc-1.8.2 (available from CPAN), and if there have been +changes to F<perly.y>, you can regenerate the F<perly.c> file. The +run_byacc makefile target does this by running byacc and then applying +some patches so that byacc dynamically allocates space, rather than +having fixed limits. This patch is handled by the F<perly.fixer> +script. Depending on the nature of the changes to F<perly.y>, you may +or may not have to hand-edit the patch to apply correctly. If you do, +you should include the edited patch in the new distribution. If you +have byacc-1.9, the patch won't apply cleanly. Changes to the printf +output statements mean the patch won't apply cleanly. Long ago I +started to fix F<perly.fixer> to detect this, but I never completed the +task. + +Some additional notes from Larry on this: + +Don't forget to regenerate perly_c.diff. + + byacc -d perly.y + mv y.tab.c perly.c + patch perly.c <perly_c.diff + # manually apply any failed hunks + diff -c2 perly.c.orig perly.c >perly_c.diff + +One chunk of lines that often fails begins with + + #line 29 "perly.y" + +and ends one line before + + #define YYERRCODE 256 + +This only happens when you add or remove a token type. I suppose this +could be automated, but it doesn't happen very often nowadays. + +Larry + +=head2 make regen_headers + +The F<embed.h>, F<keywords.h>, and F<opcode.h> files are all automatically +generated by perl scripts. Since the user isn't guaranteed to have a +working perl, we can't require the user to generate them. Hence you have +to, if you're making a distribution. + +I used to include rules like the following in the makefile: + + # The following three header files are generated automatically + # The correct versions should be already supplied with the perl kit, + # in case you don't have perl or 'sh' available. + # The - is to ignore error return codes in case you have the source + # installed read-only or you don't have perl yet. + keywords.h: keywords.pl + @echo "Don't worry if this fails." + - perl keywords.pl + + +However, I got B<lots> of mail consisting of people worrying because the +command failed. I eventually decided that I would save myself time +and effort by manually running C<make regen_headers> myself rather +than answering all the questions and complaints about the failing +command. + +=head2 global.sym, interp.sym and perlio.sym + +Make sure these files are up-to-date. Read the comments in these +files and in perl_exp.SH to see what to do. + +=head2 Binary compatibility + +If you do change F<global.sym> or F<interp.sym>, think carefully about +what you are doing. To the extent reasonable, we'd like to maintain +souce and binary compatibility with older releases of perl. That way, +extensions built under one version of perl will continue to work with +new versions of perl. + +Of course, some incompatible changes may well be necessary. I'm just +suggesting that we not make any such changes without thinking carefully +about them first. If possible, we should provide +backwards-compatibility stubs. There's a lot of XS code out there. +Let's not force people to keep changing it. + +=head2 Changes + +Be sure to update the F<Changes> file. Try to include both an overall +summary as well as detailed descriptions of the changes. Your +audience will include other developers and users, so describe +user-visible changes (if any) in terms they will understand, not in +code like "initialize foo variable in bar function". + +There are differing opinions on whether the detailed descriptions +ought to go in the Changes file or whether they ought to be available +separately in the patch file (or both). There is no disagreement that +detailed descriptions ought to be easily available somewhere. + +=head2 Todo + +The F<Todo> file contains a roughly-catgorized unordered list of +aspects of Perl that could use enhancement, features that could be +added, areas that could be cleaned up, and so on. During your term as +pumpkin-holder, you will probably address some of these issues, and +perhaps identify others which, while you decide not to address them +this time around, may be tackled in the future. Update the file +reflect the situation as it stands when you hand over the pumpkin. + +You might like, early in your pumpkin-holding career, to see if you +can find champions for partiticular issues on the to-do list: an issue +owned is an issue more likely to be resolved. + +There are also some more porting-specific L<Todo> items later in this +file. + +=head2 OS/2-specific updates + +In the os2 directory is F<diff.configure>, a set of OS/2-specific +diffs against B<Configure>. If you make changes to Configure, you may +want to consider regenerating this diff file to save trouble for the +OS/2 maintainer. + +You can also consider the OS/2 diffs as reminders of portability +things that need to be fixed in Configure. + +=head2 VMS-specific updates + +If you have changed F<perly.y>, then you may want to update +F<vms/perly_{h,c}.vms> by running C<perl vms/vms_yfix.pl>. + +The Perl version number appears in several places under F<vms>. +It is courteous to update these versions. For example, if you are +making 5.004_42, replace "5.00441" with "5.00442". + +=head2 Making the new distribution + +Suppose, for example, that you want to make version 5.004_08. Then you can +do something like the following + + mkdir ../perl5.004_08 + awk '{print $1}' MANIFEST | cpio -pdm ../perl5.004_08 + cd ../ + tar cf perl5.004_08.tar perl5.004_08 + gzip --best perl5.004_08.tar + +These steps, with extra checks, are automated by the Porting/makerel +script. + +=head2 Making a new patch + +I find the F<makepatch> utility quite handy for making patches. +You can obtain it from any CPAN archive under +http://www.perl.com/CPAN/authors/Johan_Vromans/ . There are a couple +of differences between my version and the standard one. I have mine do +a + + # Print a reassuring "End of Patch" note so people won't + # wonder if their mailer truncated patches. + print "\n\nEnd of Patch.\n"; + +at the end. That's because I used to get questions from people asking +if their mail was truncated. + +It also writes Index: lines which include the new directory prefix +(change Index: print, approx line 294 or 310 depending on the version, +to read: print PATCH ("Index: $newdir$new\n");). That helps patches +work with more POSIX conformant patch programs. + +Here's how I generate a new patch. I'll use the hypothetical +5.004_07 to 5.004_08 patch as an example. + + # unpack perl5.004_07/ + gzip -d -c perl5.004_07.tar.gz | tar -xof - + # unpack perl5.004_08/ + gzip -d -c perl5.004_08.tar.gz | tar -xof - + makepatch perl5.004_07 perl5.004_08 > perl5.004_08.pat + +Makepatch will automatically generate appropriate B<rm> commands to remove +deleted files. Unfortunately, it will not correctly set permissions +for newly created files, so you may have to do so manually. For example, +patch 5.003_04 created a new test F<t/op/gv.t> which needs to be executable, +so at the top of the patch, I inserted the following lines: + + # Make a new test + touch t/op/gv.t + chmod +x t/opt/gv.t + +Now, of course, my patch is now wrong because makepatch didn't know I +was going to do that command, and it patched against /dev/null. + +So, what I do is sort out all such shell commands that need to be in the +patch (including possible mv-ing of files, if needed) and put that in the +shell commands at the top of the patch. Next, I delete all the patch parts +of perl5.004_08.pat, leaving just the shell commands. Then, I do the +following: + + cd perl5.004_07 + sh ../perl5.004_08.pat + cd .. + makepatch perl5.004_07 perl5.004_08 >> perl5.004_08.pat + +(Note the append to preserve my shell commands.) +Now, my patch will line up with what the end users are going to do. + +=head2 Testing your patch + +It seems obvious, but be sure to test your patch. That is, verify that +it produces exactly the same thing as your full distribution. + + rm -rf perl5.004_07 + gzip -d -c perl5.004_07.tar.gz | tar -xf - + cd perl5.004_07 + sh ../perl5.004_08.pat + patch -p1 -N < ../perl5.004_08.pat + cd .. + gdiff -r perl5.004_07 perl5.004_08 + +where B<gdiff> is GNU diff. Other diff's may also do recursive checking. + +=head2 More testing + +Again, it's obvious, but you should test your new version as widely as you +can. You can be sure you'll hear about it quickly if your version doesn't +work on both ANSI and pre-ANSI compilers, and on common systems such as +SunOS 4.1.[34], Solaris, and Linux. + +If your changes include conditional code, try to test the different +branches as thoroughly as you can. For example, if your system +supports dynamic loading, you can also test static loading with + + sh Configure -Uusedl + +You can also hand-tweak your config.h to try out different #ifdef +branches. + +=head1 Common Gotcha's + +=over 4 + +=item #elif + +The '#elif' preprocessor directive is not understood on all systems. +Specifically, I know that Pyramids don't understand it. Thus instead of the +simple + + #if defined(I_FOO) + # include <foo.h> + #elif defined(I_BAR) + # include <bar.h> + #else + # include <fubar.h> + #endif + +You have to do the more Byzantine + + #if defined(I_FOO) + # include <foo.h> + #else + # if defined(I_BAR) + # include <bar.h> + # else + # include <fubar.h> + # endif + #endif + +Incidentally, whitespace between the leading '#' and the preprocessor +command is not guaranteed, but is very portable and you may use it freely. +I think it makes things a bit more readable, especially once things get +rather deeply nested. I also think that things should almost never get +too deeply nested, so it ought to be a moot point :-) + +=item Probably Prefer POSIX + +It's often the case that you'll need to choose whether to do +something the BSD-ish way or the POSIX-ish way. It's usually not +a big problem when the two systems use different names for similar +functions, such as memcmp() and bcmp(). The perl.h header file +handles these by appropriate #defines, selecting the POSIX mem*() +functions if available, but falling back on the b*() functions, if +need be. + +More serious is the case where some brilliant person decided to +use the same function name but give it a different meaning or +calling sequence :-). getpgrp() and setpgrp() come to mind. +These are a real problem on systems that aim for conformance to +one standard (e.g. POSIX), but still try to support the other way +of doing things (e.g. BSD). My general advice (still not really +implemented in the source) is to do something like the following. +Suppose there are two alternative versions, fooPOSIX() and +fooBSD(). + + #ifdef HAS_FOOPOSIX + /* use fooPOSIX(); */ + #else + # ifdef HAS_FOOBSD + /* try to emulate fooPOSIX() with fooBSD(); + perhaps with the following: */ + # define fooPOSIX fooBSD + # else + # /* Uh, oh. We have to supply our own. */ + # define fooPOSIX Perl_fooPOSIX + # endif + #endif + +=item Think positively + +If you need to add an #ifdef test, it is usually easier to follow if you +think positively, e.g. + + #ifdef HAS_NEATO_FEATURE + /* use neato feature */ + #else + /* use some fallback mechanism */ + #endif + +rather than the more impenetrable + + #ifndef MISSING_NEATO_FEATURE + /* Not missing it, so we must have it, so use it */ + #else + /* Are missing it, so fall back on something else. */ + #endif + +Of course for this toy example, there's not much difference. But when +the #ifdef's start spanning a couple of screen fulls, and the #else's +are marked something like + + #else /* !MISSING_NEATO_FEATURE */ + +I find it easy to get lost. + +=item Providing Missing Functions -- Problem + +Not all systems have all the neat functions you might want or need, so +you might decide to be helpful and provide an emulation. This is +sound in theory and very kind of you, but please be careful about what +you name the function. Let me use the C<pause()> function as an +illustration. + +Perl5.003 has the following in F<perl.h> + + #ifndef HAS_PAUSE + #define pause() sleep((32767<<16)+32767) + #endif + +Configure sets HAS_PAUSE if the system has the pause() function, so +this #define only kicks in if the pause() function is missing. +Nice idea, right? + +Unfortunately, some systems apparently have a prototype for pause() +in F<unistd.h>, but don't actually have the function in the library. +(Or maybe they do have it in a library we're not using.) + +Thus, the compiler sees something like + + extern int pause(void); + /* . . . */ + #define pause() sleep((32767<<16)+32767) + +and dies with an error message. (Some compilers don't mind this; +others apparently do.) + +To work around this, 5.003_03 and later have the following in perl.h: + + /* Some unistd.h's give a prototype for pause() even though + HAS_PAUSE ends up undefined. This causes the #define + below to be rejected by the compiler. Sigh. + */ + #ifdef HAS_PAUSE + # define Pause pause + #else + # define Pause() sleep((32767<<16)+32767) + #endif + +This works. + +The curious reader may wonder why I didn't do the following in +F<util.c> instead: + + #ifndef HAS_PAUSE + void pause() + { + sleep((32767<<16)+32767); + } + #endif + +That is, since the function is missing, just provide it. +Then things would probably be been alright, it would seem. + +Well, almost. It could be made to work. The problem arises from the +conflicting needs of dynamic loading and namespace protection. + +For dynamic loading to work on AIX (and VMS) we need to provide a list +of symbols to be exported. This is done by the script F<perl_exp.SH>, +which reads F<global.sym> and F<interp.sym>. Thus, the C<pause> +symbol would have to be added to F<global.sym> So far, so good. + +On the other hand, one of the goals of Perl5 is to make it easy to +either extend or embed perl and link it with other libraries. This +means we have to be careful to keep the visible namespace "clean". +That is, we don't want perl's global variables to conflict with +those in the other application library. Although this work is still +in progress, the way it is currently done is via the F<embed.h> file. +This file is built from the F<global.sym> and F<interp.sym> files, +since those files already list the globally visible symbols. If we +had added C<pause> to global.sym, then F<embed.h> would contain the +line + + #define pause Perl_pause + +and calls to C<pause> in the perl sources would now point to +C<Perl_pause>. Now, when B<ld> is run to build the F<perl> executable, +it will go looking for C<perl_pause>, which probably won't exist in any +of the standard libraries. Thus the build of perl will fail. + +Those systems where C<HAS_PAUSE> is not defined would be ok, however, +since they would get a C<Perl_pause> function in util.c. The rest of +the world would be in trouble. + +And yes, this scenario has happened. On SCO, the function C<chsize> +is available. (I think it's in F<-lx>, the Xenix compatibility +library.) Since the perl4 days (and possibly before), Perl has +included a C<chsize> function that gets called something akin to + + #ifndef HAS_CHSIZE + I32 chsize(fd, length) + /* . . . */ + #endif + +When 5.003 added + + #define chsize Perl_chsize + +to F<embed.h>, the compile started failing on SCO systems. + +The "fix" is to give the function a different name. The one +implemented in 5.003_05 isn't optimal, but here's what was done: + + #ifdef HAS_CHSIZE + # ifdef my_chsize /* Probably #defined to Perl_my_chsize in embed.h */ + # undef my_chsize + # endif + # define my_chsize chsize + #endif + +My explanatory comment in patch 5.003_05 said: + + Undef and then re-define my_chsize from Perl_my_chsize to + just plain chsize if this system HAS_CHSIZE. This probably only + applies to SCO. This shows the perils of having internal + functions with the same name as external library functions :-). + +Now, we can safely put C<my_chsize> in F<global.sym>, export it, and +hide it with F<embed.h>. + +To be consistent with what I did for C<pause>, I probably should have +called the new function C<Chsize>, rather than C<my_chsize>. +However, the perl sources are quite inconsistent on this (Consider +New, Mymalloc, and Myremalloc, to name just a few.) + +There is a problem with this fix, however, in that C<Perl_chsize> +was available as a F<libperl.a> library function in 5.003, but it +isn't available any more (as of 5.003_07). This means that we've +broken binary compatibility. This is not good. + +=item Providing missing functions -- some ideas + +We currently don't have a standard way of handling such missing +function names. Right now, I'm effectively thinking aloud about a +solution. Some day, I'll try to formally propose a solution. + +Part of the problem is that we want to have some functions listed as +exported but not have their names mangled by embed.h or possibly +conflict with names in standard system headers. We actually already +have such a list at the end of F<perl_exp.SH> (though that list is +out-of-date): + + # extra globals not included above. + cat <<END >> perl.exp + perl_init_ext + perl_init_fold + perl_init_i18nl14n + perl_alloc + perl_construct + perl_destruct + perl_free + perl_parse + perl_run + perl_get_sv + perl_get_av + perl_get_hv + perl_get_cv + perl_call_argv + perl_call_pv + perl_call_method + perl_call_sv + perl_requirepv + safecalloc + safemalloc + saferealloc + safefree + +This still needs much thought, but I'm inclined to think that one +possible solution is to prefix all such functions with C<perl_> in the +source and list them along with the other C<perl_*> functions in +F<perl_exp.SH>. + +Thus, for C<chsize>, we'd do something like the following: + + /* in perl.h */ + #ifdef HAS_CHSIZE + # define perl_chsize chsize + #endif + +then in some file (e.g. F<util.c> or F<doio.c>) do + + #ifndef HAS_CHSIZE + I32 perl_chsize(fd, length) + /* implement the function here . . . */ + #endif + +Alternatively, we could just always use C<chsize> everywhere and move +C<chsize> from F<global.sym> to the end of F<perl_exp.SH>. That would +probably be fine as long as our C<chsize> function agreed with all the +C<chsize> function prototypes in the various systems we'll be using. +As long as the prototypes in actual use don't vary that much, this is +probably a good alternative. (As a counter-example, note how Configure +and perl have to go through hoops to find and use get Malloc_t and +Free_t for C<malloc> and C<free>.) + +At the moment, this latter option is what I tend to prefer. + +=item All the world's a VAX + +Sorry, showing my age:-). Still, all the world is not BSD 4.[34], +SVR4, or POSIX. Be aware that SVR3-derived systems are still quite +common (do you have any idea how many systems run SCO?) If you don't +have a bunch of v7 manuals handy, the metaconfig units (by default +installed in F</usr/local/lib/dist/U>) are a good resource to look at +for portability. + +=back + +=head1 Miscellaneous Topics + +=head2 Autoconf + +Why does perl use a metaconfig-generated Configure script instead of an +autoconf-generated configure script? + +Metaconfig and autoconf are two tools with very similar purposes. +Metaconfig is actually the older of the two, and was originally written +by Larry Wall, while autoconf is probably now used in a wider variety of +packages. The autoconf info file discusses the history of autoconf and +how it came to be. The curious reader is referred there for further +information. + +Overall, both tools are quite good, I think, and the choice of which one +to use could be argued either way. In March, 1994, when I was just +starting to work on Configure support for Perl5, I considered both +autoconf and metaconfig, and eventually decided to use metaconfig for the +following reasons: + +=over 4 + +=item Compatibility with Perl4 + +Perl4 used metaconfig, so many of the #ifdef's were already set up for +metaconfig. Of course metaconfig had evolved some since Perl4's days, +but not so much that it posed any serious problems. + +=item Metaconfig worked for me + +My system at the time was Interactive 2.2, a SVR3.2/386 derivative that +also had some POSIX support. Metaconfig-generated Configure scripts +worked fine for me on that system. On the other hand, autoconf-generated +scripts usually didn't. (They did come quite close, though, in some +cases.) At the time, I actually fetched a large number of GNU packages +and checked. Not a single one configured and compiled correctly +out-of-the-box with the system's cc compiler. + +=item Configure can be interactive + +With both autoconf and metaconfig, if the script works, everything is +fine. However, one of my main problems with autoconf-generated scripts +was that if it guessed wrong about something, it could be B<very> hard to +go back and fix it. For example, autoconf always insisted on passing the +-Xp flag to cc (to turn on POSIX behavior), even when that wasn't what I +wanted or needed for that package. There was no way short of editing the +configure script to turn this off. You couldn't just edit the resulting +Makefile at the end because the -Xp flag influenced a number of other +configure tests. + +Metaconfig's Configure scripts, on the other hand, can be interactive. +Thus if Configure is guessing things incorrectly, you can go back and fix +them. This isn't as important now as it was when we were actively +developing Configure support for new features such as dynamic loading, +but it's still useful occasionally. + +=item GPL + +At the time, autoconf-generated scripts were covered under the GNU Public +License, and hence weren't suitable for inclusion with Perl, which has a +different licensing policy. (Autoconf's licensing has since changed.) + +=item Modularity + +Metaconfig builds up Configure from a collection of discrete pieces +called "units". You can override the standard behavior by supplying your +own unit. With autoconf, you have to patch the standard files instead. +I find the metaconfig "unit" method easier to work with. Others +may find metaconfig's units clumsy to work with. + +=back + +=head2 @INC search order + +By default, the list of perl library directories in @INC is the +following: + + $archlib + $privlib + $sitearch + $sitelib + +Specifically, on my Solaris/x86 system, I run +B<sh Configure -Dprefix=/opt/perl> and I have the following +directories: + + /opt/perl/lib/i86pc-solaris/5.00307 + /opt/perl/lib + /opt/perl/lib/site_perl/i86pc-solaris + /opt/perl/lib/site_perl + +That is, perl's directories come first, followed by the site-specific +directories. + +The site libraries come second to support the usage of extensions +across perl versions. Read the relevant section in F<INSTALL> for +more information. If we ever make $sitearch version-specific, this +topic could be revisited. + +=head2 Why isn't there a directory to override Perl's library? + +Mainly because no one's gotten around to making one. Note that +"making one" involves changing perl.c, Configure, config_h.SH (and +associated files, see above), and I<documenting> it all in the +INSTALL file. + +Apparently, most folks who want to override one of the standard library +files simply do it by overwriting the standard library files. + +=head2 APPLLIB + +In the perl.c sources, you'll find an undocumented APPLLIB_EXP +variable, sort of like PRIVLIB_EXP and ARCHLIB_EXP (which are +documented in config_h.SH). Here's what APPLLIB_EXP is for, from +a mail message from Larry: + + The main intent of APPLLIB_EXP is for folks who want to send out a + version of Perl embedded in their product. They would set the symbol + to be the name of the library containing the files needed to run or to + support their particular application. This works at the "override" + level to make sure they get their own versions of any library code that + they absolutely must have configuration control over. + + As such, I don't see any conflict with a sysadmin using it for a + override-ish sort of thing, when installing a generic Perl. It should + probably have been named something to do with overriding though. Since + it's undocumented we could still change it... :-) + +Given that it's already there, you can use it to override +distribution modules. If you do + + sh Configure -Dccflags='-DAPPLLIB_EXP=/my/override' + +then perl.c will put /my/override ahead of ARCHLIB and PRIVLIB. + +=head2 Shared libperl.so location + +Why isn't the shared libperl.so installed in /usr/lib/ along +with "all the other" shared libraries? Instead, it is installed +in $archlib, which is typically something like + + /usr/local/lib/perl5/archname/5.00404 + +and is architecture- and version-specific. + +The basic reason why a shared libperl.so gets put in $archlib is so that +you can have more than one version of perl on the system at the same time, +and have each refer to its own libperl.so. + +Three examples might help. All of these work now; none would work if you +put libperl.so in /usr/lib. + +=over + +=item 1. + +Suppose you want to have both threaded and non-threaded perl versions +around. Configure will name both perl libraries "libperl.so" (so that +you can link to them with -lperl). The perl binaries tell them apart +by having looking in the appropriate $archlib directories. + +=item 2. + +Suppose you have perl5.004_04 installed and you want to try to compile +it again, perhaps with different options or after applying a patch. +If you already have libperl.so installed in /usr/lib/, then it may be +either difficult or impossible to get ld.so to find the new libperl.so +that you're trying to build. If, instead, libperl.so is tucked away in +$archlib, then you can always just change $archlib in the current perl +you're trying to build so that ld.so won't find your old libperl.so. +(The INSTALL file suggests you do this when building a debugging perl.) + +=item 3. + +The shared perl library is not a "well-behaved" shared library with +proper major and minor version numbers, so you can't necessarily +have perl5.004_04 and perl5.004_05 installed simultaneously. Suppose +perl5.004_04 were to install /usr/lib/libperl.so.4.4, and perl5.004_05 +were to install /usr/lib/libperl.so.4.5. Now, when you try to run +perl5.004_04, ld.so might try to load libperl.so.4.5, since it has +the right "major version" number. If this works at all, it almost +certainly defeats the reason for keeping perl5.004_04 around. Worse, +with development subversions, you certaily can't guarantee that +libperl.so.4.4 and libperl.so.4.55 will be compatible. + +Anyway, all this leads to quite obscure failures that are sure to drive +casual users crazy. Even experienced users will get confused :-). Upon +reflection, I'd say leave libperl.so in $archlib. + +=back + +=head1 Upload Your Work to CPAN + +You can upload your work to CPAN if you have a CPAN id. Check out +http://www.perl.com/CPAN/modules/04pause.html for information on +_PAUSE_, the Perl Author's Upload Server. + +I typically upload both the patch file, e.g. F<perl5.004_08.pat.gz> +and the full tar file, e.g. F<perl5.004_08.tar.gz>. + +If you want your patch to appear in the F<src/5.0/unsupported> +directory on CPAN, send e-mail to the CPAN master librarian. (Check +out http://www.perl.com/CPAN/CPAN.html ). + +=head1 Help Save the World + +You should definitely announce your patch on the perl5-porters list. +You should also consider announcing your patch on +comp.lang.perl.announce, though you should make it quite clear that a +subversion is not a production release, and be prepared to deal with +people who will not read your disclaimer. + +=head1 Todo + +Here, in no particular order, are some Configure and build-related +items that merit consideration. This list isn't exhaustive, it's just +what I came up with off the top of my head. + +=head2 Good ideas waiting for round tuits + +=over 4 + +=item installprefix + +I think we ought to support + + Configure -Dinstallprefix=/blah/blah + +Currently, we support B<-Dprefix=/blah/blah>, but the changing the install +location has to be handled by something like the F<config.over> trick +described in F<INSTALL>. AFS users also are treated specially. +We should probably duplicate the metaconfig prefix stuff for an +install prefix. + +=item Configure -Dsrc=/blah/blah + +We should be able to emulate B<configure --srcdir>. Tom Tromey +tromey@creche.cygnus.com has submitted some patches to +the dist-users mailing list along these lines. They have been folded +back into the main distribution, but various parts of the perl +Configure/build/install process still assume src='.'. + +=item Hint file fixes + +Various hint files work around Configure problems. We ought to fix +Configure so that most of them aren't needed. + +=item Hint file information + +Some of the hint file information (particularly dynamic loading stuff) +ought to be fed back into the main metaconfig distribution. + +=item Catch GNU Libc "Stub" functions + +Some functions (such as lchown()) are present in libc, but are +unimplmented. That is, they always fail and set errno=ENOSYS. + +Thomas Bushnell provided the following sample code and the explanation +that follows: + + /* System header to define __stub macros and hopefully few prototypes, + which can conflict with char FOO(); below. */ + #include <assert.h> + /* Override any gcc2 internal prototype to avoid an error. */ + /* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ + char FOO(); + + int main() { + + /* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ + #if defined (__stub_FOO) || defined (__stub___FOO) + choke me + #else + FOO(); + #endif + + ; return 0; } + +The choice of <assert.h> is essentially arbitrary. The GNU libc +macros are found in <gnu/stubs.h>. You can include that file instead +of <assert.h> (which itself includes <gnu/stubs.h>) if you test for +its existence first. <assert.h> is assumed to exist on every system, +which is why it's used here. Any GNU libc header file will include +the stubs macros. If either __stub_NAME or __stub___NAME is defined, +then the function doesn't actually exist. Tests using <assert.h> work +on every system around. + +The declaration of FOO is there to override builtin prototypes for +ANSI C functions. + +=back + +=head2 Probably good ideas waiting for round tuits + +=over 4 + +=item GNU configure --options + +I've received sensible suggestions for --exec_prefix and other +GNU configure --options. It's not always obvious exactly what is +intended, but this merits investigation. + +=item make clean + +Currently, B<make clean> isn't all that useful, though +B<make realclean> and B<make distclean> are. This needs a bit of +thought and documentation before it gets cleaned up. + +=item Try gcc if cc fails + +Currently, we just give up. + +=item bypassing safe*alloc wrappers + +On some systems, it may be safe to call the system malloc directly +without going through the util.c safe* layers. (Such systems would +accept free(0), for example.) This might be a time-saver for systems +that already have a good malloc. (Recent Linux libc's apparently have +a nice malloc that is well-tuned for the system.) + +=back + +=head2 Vague possibilities + +=over 4 + +=item MacPerl + +Get some of the Macintosh stuff folded back into the main distribution. + +=item gconvert replacement + +Maybe include a replacement function that doesn't lose data in rare +cases of coercion between string and numerical values. + +=item Improve makedepend + +The current makedepend process is clunky and annoyingly slow, but it +works for most folks. Alas, it assumes that there is a filename +$firstmakefile that the B<make> command will try to use before it uses +F<Makefile>. Such may not be the case for all B<make> commands, +particularly those on non-Unix systems. + +Probably some variant of the BSD F<.depend> file will be useful. +We ought to check how other packages do this, if they do it at all. +We could probably pre-generate the dependencies (with the exception of +malloc.o, which could probably be determined at F<Makefile.SH> +extraction time. + +=item GNU Makefile standard targets + +GNU software generally has standardized Makefile targets. Unless we +have good reason to do otherwise, I see no reason not to support them. + +=item File locking + +Somehow, straighten out, document, and implement lockf(), flock(), +and/or fcntl() file locking. It's a mess. + +=back + +=head1 AUTHORS + +Original author: Andy Dougherty doughera@lafcol.lafayette.edu . +Additions by Chip Salzenberg chip@perl.com and +Tim Bunce Tim.Bunce@ig.co.uk . + +All opinions expressed herein are those of the authorZ<>(s). + +=head1 LAST MODIFIED + +$Id: pumpkin.pod,v 1.22 1998/07/22 16:33:55 doughera Released $ |
