summaryrefslogtreecommitdiff
path: root/lang/modula-3-lib/files/patch-ax
blob: b0d8d88eb8d54fd6aaba32b3bc8454db18116b46 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Correct some errno declarations for FreeBSD.

Index: m3/m3core/src/unix/freebsd-2/Uerror.i3
===================================================================
RCS file: /home/jdp/m3-cvs/m3/m3core/src/unix/freebsd-2/Uerror.i3,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Uerror.i3
--- Uerror.i3	1996/09/24 05:22:00	1.1.1.1
+++ Uerror.i3	1996/09/24 05:32:41
@@ -23,7 +23,7 @@
   ENOEXEC = 8;                 (* Exec format error *)
   EBADF   = 9;                 (* Bad file number *)
   ECHILD  = 10;                (* No children *)
-  EAGAIN  = 11;                (* No more processes *)
+  EDEADLK = 11;                (* Resource deadlock avoided *)
   ENOMEM  = 12;                (* Not enough core *)
   EACCES  = 13;                (* Permission denied *)
   EFAULT  = 14;                (* Bad address *)
@@ -51,7 +51,8 @@
   ERANGE  = 34;                (* Result too large *)
 
  (* non-blocking and interrupt i/o *)
-  EWOULDBLOCK  = 35;           (* Operation would block *)
+  EAGAIN       = 35;           (* Resource temporarily unavailable *)
+  EWOULDBLOCK  = EAGAIN;       (* Operation would block *)
   EINPROGRESS  = 36;           (* Operation now in progress *)
   EALREADY     = 37;           (* Operation already in progress *)
 
@@ -108,29 +109,22 @@
   EPROCUNAVAIL    = 76;          (* Bad procedure for program *)
 
   (* POSIX errnos *)
-  ENOLCK  = 77;                  (* LOCK_MAX exceeded     *)
-
-  (* IPC errors *)
-
-  (* I don't know about the following codes. ow 02.10.1994 *)
-  ENOMSG = 78;                   (* No message of desired type *)
-  EIDRM  = 79;                   (* Identifier removed *)
-
-  (* Alignment error of some type (i.e., cluster, page, block ...) *)
-  EALIGN  = 80;                  (* alignment error *)
-
-  (* System V mappings from BRL package *)
-  EDEADLK  = EWOULDBLOCK;        (* resource deadlock would occur *)
+  ENOLCK          = 77;          (* No locks available *)
+  ENOSYS          = 78;          (* Function not implemented *)
 
+  EFTYPE          = 79;          (* Inappropriate file type or format *)
+  EAUTH           = 80;          (* Authentication error *)
+  ENEEDAUTH       = 81;          (* Need authenticator *)
+  ELAST           = 81;          (* Must be equal to the largest errno *)
 
 <*EXTERNAL*>
 VAR
   errno: int;
 
 
-(* Extention by mjordan *)
+(* Extension by mjordan *)
 CONST
-  Max = ENOLCK; (* should be exported from Uerror *)
+  Max = ELAST; (* should be exported from Uerror *)
   
 <*EXTERNAL*> VAR
   sys_nerr: int;