head	1.5;
access;
symbols
	RELEASE_4_3_0:1.4
	RELEASE_4_2_0:1.4
	RELEASE_4_1_1:1.4
	RELEASE_4_1_0:1.4
	RELEASE_3_5_0:1.4
	RELEASE_4_0_0:1.4
	RELEASE_3_4_0:1.4
	RELEASE_3_3_0:1.4
	RELEASE_3_2_0:1.4
	RELEASE_3_1_0:1.4
	RELEASE_2_2_8:1.4
	RELEASE_3_0_0:1.4
	RELEASE_2_2_7:1.4
	RELEASE_2_2_6:1.3
	RELEASE_2_2_5:1.2
	RELEASE_2_2_1:1.1.1.1
	RELEASE_2_2_2:1.1.1.1
	jdp_1_0:1.1.1.1
	JDP:1.1.1;
locks; strict;
comment	@# @;


1.5
date	2001.07.21.23.41.40;	author jdp;	state dead;
branches;
next	1.4;

1.4
date	98.04.28.22.20.39;	author jdp;	state Exp;
branches;
next	1.3;

1.3
date	98.01.17.21.12.14;	author jdp;	state Exp;
branches;
next	1.2;

1.2
date	97.07.11.05.16.43;	author jdp;	state Exp;
branches;
next	1.1;

1.1
date	96.10.29.23.01.53;	author jdp;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.10.29.23.01.53;	author jdp;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Remove the old modula-3 and modula-3-lib ports.  They are superseded
by the pm3-* family of ports, which build a newer and better-maintained
version of Modula-3.  I have converted all ports which depended on
modula-3 to use pm3-* instead.

PR:		ports/27664 is rendered irrelevant
@
text
@Support for SOCKS wrappers in Unix.i3.
Also add some missing system call declarations.
Also fix misdirected entries for "open" and "fcntl" which bypassed the
VM wrappers.

--- m3/m3core/src/unix/freebsd-2/Unix.i3.orig	Sat Jan  7 14:41:42 1995
+++ m3/m3core/src/unix/freebsd-2/Unix.i3	Thu Apr 23 22:09:54 1998
@@@@ -84,9 +84,10 @@@@
 <*EXTERNAL*> PROCEDURE fchmod (fd, mode: mode_t): int;
 (* ok *)
 
-(*** chown, fchown - change owner and group of a file ***)
+(*** chown, fchown, lchown - change owner and group of a file ***)
 <*EXTERNAL*> PROCEDURE chown (path: char_star; owner: uid_t; group: gid_t): int;
 <*EXTERNAL*> PROCEDURE fchown (fd: int; owner: uid_t; group: gid_t): int;
+<*EXTERNAL*> PROCEDURE lchown (path: char_star; owner: uid_t; group: gid_t): int;
 (* ok *)
 
 (*** chroot - change root directory ***)
@@@@ -94,7 +95,7 @@@@
 (* ok *)
 
 (*** close - delete a descriptor ***)
-<*EXTERNAL*> PROCEDURE close (d: int): int;
+<*EXTERNAL "m3_close"*> PROCEDURE close (d: int): int;
 (* ok *)
 
 (*** creat - create a new file ***)
@@@@ -102,8 +103,8 @@@@
 (* ok, but obsolete *)
 
 (*** dup, dup2 - duplicate an open file descriptor ***)
-<*EXTERNAL*> PROCEDURE dup (oldd: int): int;
-<*EXTERNAL*> PROCEDURE dup2 (oldd, newd: int): int;
+<*EXTERNAL "m3_dup"*> PROCEDURE dup (oldd: int): int;
+<*EXTERNAL "m3_dup2"*> PROCEDURE dup2 (oldd, newd: int): int;
 (* ok *)
 
 (*** execve - execute a file ***)
@@@@ -156,10 +157,7 @@@@
   F_WRLCK = 3; (* Write lock *)
   F_UNLCK = 2; (* Remove lock(s) *)
 
-(* with vm use this
 <*EXTERNAL "ufcntl"*> PROCEDURE fcntl (fd, request, arg: int): int;
-*)
-<*EXTERNAL "m3_fcntl"*> PROCEDURE fcntl (fd, request, arg: int): int;
 (* ok *)
 
 (*** flock - apply or remove an advisory lock on an open file ***)
@@@@ -773,6 +771,9 @@@@
  PROCEDURE lseek (d: int; offset: off_t; whence: int): off_t;
 (* ok *)
 
+(*** mkfifo - make a FIFO (named pipe) ***)
+<*EXTERNAL*> PROCEDURE mkfifo (path: char_star; mode: mode_t): int;
+
 (*** mkdir - make a directory file ***)
 <*EXTERNAL*> PROCEDURE mkdir (path: char_star; mode: mode_t): int;
 (* ok *)
@@@@ -827,12 +828,8 @@@@
 
   M3_NONBLOCK = O_NONBLOCK;  (* -1 => would block, 0 => EOF *)
 
-(* with vm use this
 <*EXTERNAL "uopen" *> PROCEDURE open (name: char_star; 
                                        flags, mode: int): int;
-*)
-<*EXTERNAL "m3_open" *> PROCEDURE open (name: char_star; 
-                                       flags, mode: int): int;
 (* ok *)
 
 (*** pipe - create an interprocess channel ***)
@@@@ -892,7 +889,7 @@@@
 TYPE
   FDSet = SET OF [0 .. MAX_FDSET - 1];
 
-<*EXTERNAL*> PROCEDURE select (nfds: int;
+<*EXTERNAL "m3_select"*> PROCEDURE select (nfds: int;
                            readfds, writefds, exceptfds: UNTRACED REF FDSet;
                            timeout: UNTRACED REF struct_timeval): int;
 (* ok *)
@


1.4
log
@Fix an old bug in the runtime system which very rarely could cause
EFAULT to be generated on calls to open(2) or fcntl(2).

Bump the shared libraries' major version numbers to guard against
possible binary incompatibilities introduced by this fix.
@
text
@@


1.3
log
@Fix all the paths in context diff headers and remove the Index
lines, since the WORTHLESS, BROKEN new version of patch ignores
them.
@
text
@d3 2
d7 1
a7 1
+++ m3/m3core/src/unix/freebsd-2/Unix.i3	Thu Jul 10 18:32:36 1997
d40 12
a51 1
@@@@ -773,6 +774,9 @@@@
d61 14
a74 1
@@@@ -892,7 +896,7 @@@@
@


1.2
log
@Add several bugfixes.  Produce more informative messages when
segmentation violations and assertion failures occur.  Support
several system calls not supported previously.

PR:		This is part of the fix for ports/3572.
@
text
@d4 2
a5 3
Index: m3/m3core/src/unix/freebsd-2/Unix.i3
--- Unix.i3.orig	Sat Jan  7 14:41:42 1995
+++ Unix.i3	Thu Jul 10 18:32:36 1997
@


1.1
log
@Initial revision
@
text
@d2 1
d6 14
a19 2
+++ Unix.i3	Tue Oct  8 14:20:50 1996
@@@@ -94,7 +94,7 @@@@
d28 1
a28 1
@@@@ -102,8 +102,8 @@@@
d39 11
a49 1
@@@@ -892,7 +892,7 @@@@
@


1.1.1.1
log
@Split the Modula-3 port into two pieces, creating a new port
"modula-3-lib".  It installs only the shared libraries needed for
executing Modula-3 programs.  This saves a lot of disk space for
people who need to run Modula-3 programs but don't need to build
them.  The original "modula-3" port now depends on this one, and
uses it to install the compiler and the rest of the development
system.

Also, everything is now built with optimization.  I have been
testing this for at least a month, and haven't seen any problems
from it.  It makes the libraries and executables substantially
smaller.

This new port also includes some hooks that will make SOCKS support
possible in the near future.
@
text
@@
