summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafcol.lafayette.edu>1995-02-27 22:35:59 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1995-02-27 22:35:59 +0000
commit94b6baf514e11d40f0215cb928074cb7980c3082 (patch)
treee76bdfec5fa9b267fffb2eec2653d14e15dffb3c /ext
parent40000a8c37c35cc00114329ca0add46bca36a0ec (diff)
downloadperl-94b6baf514e11d40f0215cb928074cb7980c3082.tar.gz
perl5.000 patch.0m: [various fixes, hint file updates and documentation]
This is my patch patch.0m for perl5.000. This patch fixes all remaining problems that I am aware of, and for which I have a solution. It also updates some hint files and documentation. Here's what's new: Configure Protect against spaces in uname -m output (unicos). Look in <stdlib.h> for malloctype and freetype. Check if user has void free() or int free(). Look in linux/signal.h for signal names. MANIFEST MANIFEST.new Two new hint files: cxux.sh and PowerUNIX.sh. Sorted. README Indicate what gets installed and where it usually goes. Thanks to Hallvard B. Furuseth <h.b.furuseth@usit.uio.no> for suggesting this. U/Myinit.U Update extliblist comment. U/dist3_051.pat This file contains patches to dist 3 (PL 51) that I used to generate Configure for perl. U/mallocsrc.U Look in <stdlib.h> for malloctype and freetype. Check if user has void free() or int free(). config_h.SH config.H Add Free_t to handle void free() vs. int free(). ext/DynaLoader/README Updated comment. ext/POSIX/POSIX.pm creat() has 2 arguments, not 3 (thanks, Paul). ext/POSIX/POSIX.xs Fix return type of lseek. ext/SDBM_File/sdbm/sdbm.h Add I_STDLIB guard on #include <stdlib.h> ext/util/extliblist Add note indicating this is obsolete. Don't remove it because people might be using it for their own private extensions. hints/PowerUNIX.sh hints/cxux.sh New files. Written by Tom.Horsley@mail.hcsc.com hints/linux.sh Simplified. lib/ExtUtils/MakeMaker.pm Typo fixed, only affected aix? malloc.c Allow for possible int free(). perl.h pp_sys.c util.c If the user is not using vfork, move the #define vfork fork util after various #include files. Since vfork() and fork() might have different prototypes, the #define could cause a conflict in system header files. (Reported for 386bsd.) Makefile.SH make realclean will remove h2xs and makeaperl (but leave behind the .SH versions, of course).
Diffstat (limited to 'ext')
-rw-r--r--ext/DynaLoader/README2
-rw-r--r--ext/POSIX/POSIX.pm2
-rw-r--r--ext/POSIX/POSIX.xs2
-rw-r--r--ext/SDBM_File/sdbm/sdbm.h2
-rwxr-xr-xext/util/extliblist4
5 files changed, 8 insertions, 4 deletions
diff --git a/ext/DynaLoader/README b/ext/DynaLoader/README
index 19dd8e72f6..c4602d3c39 100644
--- a/ext/DynaLoader/README
+++ b/ext/DynaLoader/README
@@ -46,7 +46,7 @@ After the initial implementation of a new DynaLoader dl_*.xs file
you may need to edit or create ext/MODULE/MODULE.bs files to reflect
the needs of your platform and linking software.
-Refer to DynaLoader.doc, ext/utils/mkbootstrap and any existing
+Refer to DynaLoader.doc, lib/ExtUtils/MakeMaker.pm and any existing
ext/MODULE/MODULE.bs files for more information.
Tim Bunce.
diff --git a/ext/POSIX/POSIX.pm b/ext/POSIX/POSIX.pm
index 4ccc5ce520..f59b4c393a 100644
--- a/ext/POSIX/POSIX.pm
+++ b/ext/POSIX/POSIX.pm
@@ -366,7 +366,7 @@ sub errno {
sub creat {
usage "creat(filename, mode)" if @_ != 2;
- &open($_[0], &O_WRONLY | &O_CREAT | &O_TRUNC, $_[2]);
+ &open($_[0], &O_WRONLY | &O_CREAT | &O_TRUNC, $_[1]);
}
sub fcntl {
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs
index 1a900f08ea..fbd21c894b 100644
--- a/ext/POSIX/POSIX.xs
+++ b/ext/POSIX/POSIX.xs
@@ -2841,7 +2841,7 @@ dup2(fd1, fd2)
int fd1
int fd2
-SysRet
+SysRetLong
lseek(fd, offset, whence)
int fd
Off_t offset
diff --git a/ext/SDBM_File/sdbm/sdbm.h b/ext/SDBM_File/sdbm/sdbm.h
index 6f54bd0502..4d6c844890 100644
--- a/ext/SDBM_File/sdbm/sdbm.h
+++ b/ext/SDBM_File/sdbm/sdbm.h
@@ -155,7 +155,7 @@ extern long sdbm_hash proto((char *, int));
#endif
/* Use all the "standard" definitions? */
-#ifdef STANDARD_C
+#if defined(STANDARD_C) && defined(I_STDLIB)
# include <stdlib.h>
#endif /* STANDARD_C */
diff --git a/ext/util/extliblist b/ext/util/extliblist
index 2b8938fa4d..2351ddfd0e 100755
--- a/ext/util/extliblist
+++ b/ext/util/extliblist
@@ -15,6 +15,10 @@ esac
:
: Author: Andy Dougherty doughera@lafcol.lafayette.edu
:
+: This utility was only used by the old Makefile.SH extension
+: mechanism. It is now obsolete and may be removed in a future
+: release.
+:
: This utility takes a list of libraries in the form
: -llib1 -llib2 -llib3
: and prints out lines suitable for inclusion in an extension