Raymond Toy pushed to branch issue-386-generate-def-unix-error at cmucl / cmucl

Commits:

2 changed files:

Changes:

  • bin/create-errno.sh
    ... ... @@ -21,6 +21,8 @@ case `uname -s` in
    21 21
     	   ;;
    
    22 22
         Darwin) ERRNO_FILES=/usr/include/sys/errno.h
    
    23 23
     	    ;;
    
    24
    +    SunOS) ERRNO_FILES=/usr/include/sys/errno.h
    
    25
    +	   ;;
    
    24 26
     esac
    
    25 27
     
    
    26 28
     awk -f bin/create-def-unix-error.awk ${ERRNO_FILES} >> $OUTPUT
    

  • bin/errno-template.lisp
    ... ... @@ -44,7 +44,7 @@
    44 44
     ;;; 
    
    45 45
     (def-unix-error ESUCCESS 0 _N"Successful")
    
    46 46
     
    
    47
    -#-(or linux darwin)
    
    47
    +#-(or linux darwin svr4) 
    
    48 48
     (progn
    
    49 49
     (def-unix-error EPERM 1 _N"Operation not permitted")
    
    50 50
     (def-unix-error ENOENT 2 _N"No such file or directory")
    
    ... ... @@ -83,11 +83,7 @@
    83 83
     ;;; Math
    
    84 84
     (def-unix-error EDOM 33 _N"Numerical argument out of domain")
    
    85 85
     (def-unix-error ERANGE 34 #-linux _N"Result too large" #+linux _N"Math result not representable")
    
    86
    -)
    
    87 86
     
    
    88
    -;;; 
    
    89
    -#-(or linux svr4 darwin)
    
    90
    -(progn
    
    91 87
     ;;; non-blocking and interrupt i/o
    
    92 88
     (def-unix-error EWOULDBLOCK 35 _N"Operation would block")
    
    93 89
     #-bsd(def-unix-error EDEADLK 35 _N"Operation would block") ; Ditto
    
    ... ... @@ -143,92 +139,6 @@
    143 139
     (def-unix-error EVICEERR 70 _N"Remote file system error _N")
    
    144 140
     (def-unix-error EVICEOP 71 _N"syscall was handled by Vice")
    
    145 141
     )
    
    146
    -#+svr4
    
    147
    -(progn
    
    148
    -(def-unix-error ENOMSG 35 _N"No message of desired type")
    
    149
    -(def-unix-error EIDRM 36 _N"Identifier removed")
    
    150
    -(def-unix-error ECHRNG 37 _N"Channel number out of range")
    
    151
    -(def-unix-error EL2NSYNC 38 _N"Level 2 not synchronized")
    
    152
    -(def-unix-error EL3HLT 39 _N"Level 3 halted")
    
    153
    -(def-unix-error EL3RST 40 _N"Level 3 reset")
    
    154
    -(def-unix-error ELNRNG 41 _N"Link number out of range")
    
    155
    -(def-unix-error EUNATCH 42 _N"Protocol driver not attached")
    
    156
    -(def-unix-error ENOCSI 43 _N"No CSI structure available")
    
    157
    -(def-unix-error EL2HLT 44 _N"Level 2 halted")
    
    158
    -(def-unix-error EDEADLK 45 _N"Deadlock situation detected/avoided")
    
    159
    -(def-unix-error ENOLCK 46 _N"No record locks available")
    
    160
    -(def-unix-error ECANCELED 47 _N"Error 47")
    
    161
    -(def-unix-error ENOTSUP 48 _N"Error 48")
    
    162
    -(def-unix-error EBADE 50 _N"Bad exchange descriptor")
    
    163
    -(def-unix-error EBADR 51 _N"Bad request descriptor")
    
    164
    -(def-unix-error EXFULL 52 _N"Message tables full")
    
    165
    -(def-unix-error ENOANO 53 _N"Anode table overflow")
    
    166
    -(def-unix-error EBADRQC 54 _N"Bad request code")
    
    167
    -(def-unix-error EBADSLT 55 _N"Invalid slot")
    
    168
    -(def-unix-error EDEADLOCK 56 _N"File locking deadlock")
    
    169
    -(def-unix-error EBFONT 57 _N"Bad font file format")
    
    170
    -(def-unix-error ENOSTR 60 _N"Not a stream device")
    
    171
    -(def-unix-error ENODATA 61 _N"No data available")
    
    172
    -(def-unix-error ETIME 62 _N"Timer expired")
    
    173
    -(def-unix-error ENOSR 63 _N"Out of stream resources")
    
    174
    -(def-unix-error ENONET 64 _N"Machine is not on the network")
    
    175
    -(def-unix-error ENOPKG 65 _N"Package not installed")
    
    176
    -(def-unix-error EREMOTE 66 _N"Object is remote")
    
    177
    -(def-unix-error ENOLINK 67 _N"Link has been severed")
    
    178
    -(def-unix-error EADV 68 _N"Advertise error")
    
    179
    -(def-unix-error ESRMNT 69 _N"Srmount error")
    
    180
    -(def-unix-error ECOMM 70 _N"Communication error on send")
    
    181
    -(def-unix-error EPROTO 71 _N"Protocol error")
    
    182
    -(def-unix-error EMULTIHOP 74 _N"Multihop attempted")
    
    183
    -(def-unix-error EBADMSG 77 _N"Not a data message")
    
    184
    -(def-unix-error ENAMETOOLONG 78 _N"File name too long")
    
    185
    -(def-unix-error EOVERFLOW 79 _N"Value too large for defined data type")
    
    186
    -(def-unix-error ENOTUNIQ 80 _N"Name not unique on network")
    
    187
    -(def-unix-error EBADFD 81 _N"File descriptor in bad state")
    
    188
    -(def-unix-error EREMCHG 82 _N"Remote address changed")
    
    189
    -(def-unix-error ELIBACC 83 _N"Can not access a needed shared library")
    
    190
    -(def-unix-error ELIBBAD 84 _N"Accessing a corrupted shared library")
    
    191
    -(def-unix-error ELIBSCN 85 _N".lib section in a.out corrupted")
    
    192
    -(def-unix-error ELIBMAX 86 _N"Attempting to link in more shared libraries than system limit")
    
    193
    -(def-unix-error ELIBEXEC 87 _N"Can not exec a shared library directly")
    
    194
    -(def-unix-error EILSEQ 88 _N"Error 88")
    
    195
    -(def-unix-error ENOSYS 89 _N"Operation not applicable")
    
    196
    -(def-unix-error ELOOP 90 _N"Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS")
    
    197
    -(def-unix-error ERESTART 91 _N"Error 91")
    
    198
    -(def-unix-error ESTRPIPE 92 _N"Error 92")
    
    199
    -(def-unix-error ENOTEMPTY 93 _N"Directory not empty")
    
    200
    -(def-unix-error EUSERS 94 _N"Too many users")
    
    201
    -(def-unix-error ENOTSOCK 95 _N"Socket operation on non-socket")
    
    202
    -(def-unix-error EDESTADDRREQ 96 _N"Destination address required")
    
    203
    -(def-unix-error EMSGSIZE 97 _N"Message too long")
    
    204
    -(def-unix-error EPROTOTYPE 98 _N"Protocol wrong type for socket")
    
    205
    -(def-unix-error ENOPROTOOPT 99 _N"Option not supported by protocol")
    
    206
    -(def-unix-error EPROTONOSUPPORT 120 _N"Protocol not supported")
    
    207
    -(def-unix-error ESOCKTNOSUPPORT 121 _N"Socket type not supported")
    
    208
    -(def-unix-error EOPNOTSUPP 122 _N"Operation not supported on transport endpoint")
    
    209
    -(def-unix-error EPFNOSUPPORT 123 _N"Protocol family not supported")
    
    210
    -(def-unix-error EAFNOSUPPORT 124 _N"Address family not supported by protocol family")
    
    211
    -(def-unix-error EADDRINUSE 125 _N"Address already in use")
    
    212
    -(def-unix-error EADDRNOTAVAIL 126 _N"Cannot assign requested address")
    
    213
    -(def-unix-error ENETDOWN 127 _N"Network is down")
    
    214
    -(def-unix-error ENETUNREACH 128 _N"Network is unreachable")
    
    215
    -(def-unix-error ENETRESET 129 _N"Network dropped connection because of reset")
    
    216
    -(def-unix-error ECONNABORTED 130 _N"Software caused connection abort")
    
    217
    -(def-unix-error ECONNRESET 131 _N"Connection reset by peer")
    
    218
    -(def-unix-error ENOBUFS 132 _N"No buffer space available")
    
    219
    -(def-unix-error EISCONN 133 _N"Transport endpoint is already connected")
    
    220
    -(def-unix-error ENOTCONN 134 _N"Transport endpoint is not connected")
    
    221
    -(def-unix-error ESHUTDOWN 143 _N"Cannot send after socket shutdown")
    
    222
    -(def-unix-error ETOOMANYREFS 144 _N"Too many references: cannot splice")
    
    223
    -(def-unix-error ETIMEDOUT 145 _N"Connection timed out")
    
    224
    -(def-unix-error ECONNREFUSED 146 _N"Connection refused")
    
    225
    -(def-unix-error EHOSTDOWN 147 _N"Host is down")
    
    226
    -(def-unix-error EHOSTUNREACH 148 _N"No route to host")
    
    227
    -(def-unix-error EWOULDBLOCK 11 _N"Resource temporarily unavailable")
    
    228
    -(def-unix-error EALREADY 149 _N"Operation already in progress")
    
    229
    -(def-unix-error EINPROGRESS 150 _N"Operation now in progress")
    
    230
    -(def-unix-error ESTALE 151 _N"Stale NFS file handle")
    
    231
    -)
    
    232 142
     
    
    233 143
     ;;; Auto-generated forms, if any, follow here.
    
    234 144