Raymond Toy pushed to branch issue-446-use-cc-to-get-errno at cmucl / cmucl

Commits:

4 changed files:

Changes:

  • bin/create-errno.sh
    ... ... @@ -91,9 +91,30 @@ find_errno ()
    91 91
         # values in different orders.
    
    92 92
         echo '#include <errno.h>' |
    
    93 93
     	cpp -dM - |
    
    94
    -	grep "#define[ \t]\{1,\}E[A-Z0-9]\{1,\}" |
    
    95
    -	sed 's/#define \(.*\) \(.*\)$/(def-unix-error \1 \2)/' |
    
    96
    -	sort -nr -k 3
    
    94
    +	awk "BEGIN {
    
    95
    +    max = 0
    
    96
    +}
    
    97
    +/* Pattern is '#define Efoo number' */
    
    98
    +/^#define[ \t]+(E[A-Z0-9]+)[ \t]+([0-9]+)/ {
    
    99
    +    errno[\$3] = \$2
    
    100
    +    max = (\$3 > max) ? \$3 : max
    
    101
    +}
    
    102
    +/* Pattern is '#define Efoo Ealias' */
    
    103
    +/^#define[ \t]+(E[A-Z0-9]+)[ \t]+(E[A-Z0-9]+)/ {
    
    104
    +    alias[\$3] = \$2
    
    105
    +}
    
    106
    +END {
    
    107
    +    /* Print out each errno and print the alias right after the actual value */
    
    108
    +    for (i = 0; i <= max; i++) {
    
    109
    +        if (i in errno) {
    
    110
    +            printf \"(defconstant %s %d)\n\", errno[i], i
    
    111
    +            if (errno[i] in alias) {
    
    112
    +                printf \"(defconstant %s %s)\n\", alias[errno[i]], errno[i]
    
    113
    +            }
    
    114
    +        }
    
    115
    +    }
    
    116
    +}"
    
    117
    +
    
    97 118
     }
    
    98 119
     
    
    99 120
     if [ "$UPDATE" = "yes" ]; then
    

  • bin/errno-default.lisp
    1 1
     ;;; Default errno values.  These are used only if we could not
    
    2 2
     ;;; auto-generate these forms.
    
    3
    -(def-unix-error EPERM 1)
    
    4
    -(def-unix-error ENOENT 2)
    
    5
    -(def-unix-error ESRCH 3)
    
    6
    -(def-unix-error EINTR 4)
    
    7
    -(def-unix-error EIO 5)
    
    8
    -(def-unix-error ENXIO 6)
    
    9
    -(def-unix-error E2BIG 7)
    
    10
    -(def-unix-error ENOEXEC 8)
    
    11
    -(def-unix-error EBADF 9)
    
    12
    -(def-unix-error ECHILD 10)
    
    13
    -#+bsd(def-unix-error EDEADLK 11)
    
    14
    -#-bsd(def-unix-error EAGAIN 11 #-linux)
    
    15
    -(def-unix-error ENOMEM 12)
    
    16
    -(def-unix-error EACCES 13)
    
    17
    -(def-unix-error EFAULT 14)
    
    18
    -(def-unix-error ENOTBLK 15)
    
    19
    -(def-unix-error EBUSY 16)
    
    20
    -(def-unix-error EEXIST 17)
    
    21
    -(def-unix-error EXDEV 18)
    
    22
    -(def-unix-error ENODEV 19)
    
    23
    -(def-unix-error ENOTDIR 20)
    
    24
    -(def-unix-error EISDIR 21)
    
    25
    -(def-unix-error EINVAL 22)
    
    26
    -(def-unix-error ENFILE 23)
    
    27
    -(def-unix-error EMFILE 24)
    
    28
    -(def-unix-error ENOTTY 25)
    
    29
    -(def-unix-error ETXTBSY 26)
    
    30
    -(def-unix-error EFBIG 27)
    
    31
    -(def-unix-error ENOSPC 28)
    
    32
    -(def-unix-error ESPIPE 29)
    
    33
    -(def-unix-error EROFS 30)
    
    34
    -(def-unix-error EMLINK 31)
    
    35
    -(def-unix-error EPIPE 32)
    
    3
    +(defconstant EPERM 1)
    
    4
    +(defconstant ENOENT 2)
    
    5
    +(defconstant ESRCH 3)
    
    6
    +(defconstant EINTR 4)
    
    7
    +(defconstant EIO 5)
    
    8
    +(defconstant ENXIO 6)
    
    9
    +(defconstant E2BIG 7)
    
    10
    +(defconstant ENOEXEC 8)
    
    11
    +(defconstant EBADF 9)
    
    12
    +(defconstant ECHILD 10)
    
    13
    +#+bsd(defconstant EDEADLK 11)
    
    14
    +#-bsd(defconstant EAGAIN 11 #-linux)
    
    15
    +(defconstant ENOMEM 12)
    
    16
    +(defconstant EACCES 13)
    
    17
    +(defconstant EFAULT 14)
    
    18
    +(defconstant ENOTBLK 15)
    
    19
    +(defconstant EBUSY 16)
    
    20
    +(defconstant EEXIST 17)
    
    21
    +(defconstant EXDEV 18)
    
    22
    +(defconstant ENODEV 19)
    
    23
    +(defconstant ENOTDIR 20)
    
    24
    +(defconstant EISDIR 21)
    
    25
    +(defconstant EINVAL 22)
    
    26
    +(defconstant ENFILE 23)
    
    27
    +(defconstant EMFILE 24)
    
    28
    +(defconstant ENOTTY 25)
    
    29
    +(defconstant ETXTBSY 26)
    
    30
    +(defconstant EFBIG 27)
    
    31
    +(defconstant ENOSPC 28)
    
    32
    +(defconstant ESPIPE 29)
    
    33
    +(defconstant EROFS 30)
    
    34
    +(defconstant EMLINK 31)
    
    35
    +(defconstant EPIPE 32)
    
    36 36
     ;;; 
    
    37 37
     ;;; Math
    
    38
    -(def-unix-error EDOM 33)
    
    39
    -(def-unix-error ERANGE 34 #-linux)
    
    38
    +(defconstant EDOM 33)
    
    39
    +(defconstant ERANGE 34 #-linux)
    
    40 40
     
    
    41 41
     ;;; non-blocking and interrupt i/o
    
    42
    -(def-unix-error EWOULDBLOCK 35)
    
    43
    -#-bsd(def-unix-error EDEADLK 35 _N"Operation would block") ; Ditto
    
    44
    -#+bsd(def-unix-error EAGAIN 35)
    
    45
    -(def-unix-error EINPROGRESS 36)
    
    46
    -(def-unix-error EALREADY 37)
    
    42
    +(defconstant EWOULDBLOCK 35)
    
    43
    +#-bsd(defconstant EDEADLK 35 _N"Operation would block") ; Ditto
    
    44
    +#+bsd(defconstant EAGAIN 35)
    
    45
    +(defconstant EINPROGRESS 36)
    
    46
    +(defconstant EALREADY 37)
    
    47 47
     ;;;
    
    48 48
     ;;; ipc/network software
    
    49
    -(def-unix-error ENOTSOCK 38)
    
    50
    -(def-unix-error EDESTADDRREQ 39)
    
    51
    -(def-unix-error EMSGSIZE 40)
    
    52
    -(def-unix-error EPROTOTYPE 41)
    
    53
    -(def-unix-error ENOPROTOOPT 42)
    
    54
    -(def-unix-error EPROTONOSUPPORT 43)
    
    55
    -(def-unix-error ESOCKTNOSUPPORT 44)
    
    56
    -(def-unix-error EOPNOTSUPP 45)
    
    57
    -(def-unix-error EPFNOSUPPORT 46)
    
    58
    -(def-unix-error EAFNOSUPPORT 47)
    
    59
    -(def-unix-error EADDRINUSE 48)
    
    60
    -(def-unix-error EADDRNOTAVAIL 49)
    
    49
    +(defconstant ENOTSOCK 38)
    
    50
    +(defconstant EDESTADDRREQ 39)
    
    51
    +(defconstant EMSGSIZE 40)
    
    52
    +(defconstant EPROTOTYPE 41)
    
    53
    +(defconstant ENOPROTOOPT 42)
    
    54
    +(defconstant EPROTONOSUPPORT 43)
    
    55
    +(defconstant ESOCKTNOSUPPORT 44)
    
    56
    +(defconstant EOPNOTSUPP 45)
    
    57
    +(defconstant EPFNOSUPPORT 46)
    
    58
    +(defconstant EAFNOSUPPORT 47)
    
    59
    +(defconstant EADDRINUSE 48)
    
    60
    +(defconstant EADDRNOTAVAIL 49)
    
    61 61
     ;;;
    
    62 62
     ;;; operational errors
    
    63
    -(def-unix-error ENETDOWN 50)
    
    64
    -(def-unix-error ENETUNREACH 51)
    
    65
    -(def-unix-error ENETRESET 52)
    
    66
    -(def-unix-error ECONNABORTED 53)
    
    67
    -(def-unix-error ECONNRESET 54)
    
    68
    -(def-unix-error ENOBUFS 55)
    
    69
    -(def-unix-error EISCONN 56)
    
    70
    -(def-unix-error ENOTCONN 57)
    
    71
    -(def-unix-error ESHUTDOWN 58)
    
    72
    -(def-unix-error ETOOMANYREFS 59)
    
    73
    -(def-unix-error ETIMEDOUT 60)
    
    74
    -(def-unix-error ECONNREFUSED 61)
    
    63
    +(defconstant ENETDOWN 50)
    
    64
    +(defconstant ENETUNREACH 51)
    
    65
    +(defconstant ENETRESET 52)
    
    66
    +(defconstant ECONNABORTED 53)
    
    67
    +(defconstant ECONNRESET 54)
    
    68
    +(defconstant ENOBUFS 55)
    
    69
    +(defconstant EISCONN 56)
    
    70
    +(defconstant ENOTCONN 57)
    
    71
    +(defconstant ESHUTDOWN 58)
    
    72
    +(defconstant ETOOMANYREFS 59)
    
    73
    +(defconstant ETIMEDOUT 60)
    
    74
    +(defconstant ECONNREFUSED 61)
    
    75 75
     ;;; 
    
    76
    -(def-unix-error ELOOP 62)
    
    77
    -(def-unix-error ENAMETOOLONG 63)
    
    76
    +(defconstant ELOOP 62)
    
    77
    +(defconstant ENAMETOOLONG 63)
    
    78 78
     ;;; 
    
    79
    -(def-unix-error EHOSTDOWN 64)
    
    80
    -(def-unix-error EHOSTUNREACH 65)
    
    81
    -(def-unix-error ENOTEMPTY 66)
    
    79
    +(defconstant EHOSTDOWN 64)
    
    80
    +(defconstant EHOSTUNREACH 65)
    
    81
    +(defconstant ENOTEMPTY 66)
    
    82 82
     ;;; 
    
    83 83
     ;;; quotas & resource 
    
    84
    -(def-unix-error EPROCLIM 67)
    
    85
    -(def-unix-error EUSERS 68)
    
    86
    -(def-unix-error EDQUOT 69)
    
    84
    +(defconstant EPROCLIM 67)
    
    85
    +(defconstant EUSERS 68)
    
    86
    +(defconstant EDQUOT 69)
    
    87 87
     ;;;
    
    88 88
     ;;; CMU RFS
    
    89
    -(def-unix-error ELOCAL 126)
    
    90
    -(def-unix-error EREMOTE 127)
    
    89
    +(defconstant ELOCAL 126)
    
    90
    +(defconstant EREMOTE 127)
    
    91 91
     ;;;
    
    92 92
     ;;; VICE
    
    93
    -(def-unix-error EVICEERR 70)
    
    94
    -(def-unix-error EVICEOP 71)
    93
    +(defconstant EVICEERR 70)
    
    94
    +(defconstant EVICEOP 71)

  • bin/errno-linux.lisp
    1
    -(def-unix-error EHWPOISON 133)
    
    2
    -(def-unix-error ERFKILL 132)
    
    3
    -(def-unix-error ENOTRECOVERABLE 131)
    
    4
    -(def-unix-error EOWNERDEAD 130)
    
    5
    -(def-unix-error EKEYREJECTED 129)
    
    6
    -(def-unix-error EKEYREVOKED 128)
    
    7
    -(def-unix-error EKEYEXPIRED 127)
    
    8
    -(def-unix-error ENOKEY 126)
    
    9
    -(def-unix-error ECANCELED 125)
    
    10
    -(def-unix-error EMEDIUMTYPE 124)
    
    11
    -(def-unix-error ENOMEDIUM 123)
    
    12
    -(def-unix-error EDQUOT 122)
    
    13
    -(def-unix-error EREMOTEIO 121)
    
    14
    -(def-unix-error EISNAM 120)
    
    15
    -(def-unix-error ENAVAIL 119)
    
    16
    -(def-unix-error ENOTNAM 118)
    
    17
    -(def-unix-error EUCLEAN 117)
    
    18
    -(def-unix-error ESTALE 116)
    
    19
    -(def-unix-error EINPROGRESS 115)
    
    20
    -(def-unix-error EALREADY 114)
    
    21
    -(def-unix-error EHOSTUNREACH 113)
    
    22
    -(def-unix-error EHOSTDOWN 112)
    
    23
    -(def-unix-error ECONNREFUSED 111)
    
    24
    -(def-unix-error ETIMEDOUT 110)
    
    25
    -(def-unix-error ETOOMANYREFS 109)
    
    26
    -(def-unix-error ESHUTDOWN 108)
    
    27
    -(def-unix-error ENOTCONN 107)
    
    28
    -(def-unix-error EISCONN 106)
    
    29
    -(def-unix-error ENOBUFS 105)
    
    30
    -(def-unix-error ECONNRESET 104)
    
    31
    -(def-unix-error ECONNABORTED 103)
    
    32
    -(def-unix-error ENETRESET 102)
    
    33
    -(def-unix-error ENETUNREACH 101)
    
    34
    -(def-unix-error ENETDOWN 100)
    
    35
    -(def-unix-error EADDRNOTAVAIL 99)
    
    36
    -(def-unix-error EADDRINUSE 98)
    
    37
    -(def-unix-error EAFNOSUPPORT 97)
    
    38
    -(def-unix-error EPFNOSUPPORT 96)
    
    39
    -(def-unix-error EOPNOTSUPP 95)
    
    40
    -(def-unix-error ESOCKTNOSUPPORT 94)
    
    41
    -(def-unix-error EPROTONOSUPPORT 93)
    
    42
    -(def-unix-error ENOPROTOOPT 92)
    
    43
    -(def-unix-error EPROTOTYPE 91)
    
    44
    -(def-unix-error EMSGSIZE 90)
    
    45
    -(def-unix-error EDESTADDRREQ 89)
    
    46
    -(def-unix-error ENOTSOCK 88)
    
    47
    -(def-unix-error EUSERS 87)
    
    48
    -(def-unix-error ESTRPIPE 86)
    
    49
    -(def-unix-error ERESTART 85)
    
    50
    -(def-unix-error EILSEQ 84)
    
    51
    -(def-unix-error ELIBEXEC 83)
    
    52
    -(def-unix-error ELIBMAX 82)
    
    53
    -(def-unix-error ELIBSCN 81)
    
    54
    -(def-unix-error ELIBBAD 80)
    
    55
    -(def-unix-error ELIBACC 79)
    
    56
    -(def-unix-error EREMCHG 78)
    
    57
    -(def-unix-error EBADFD 77)
    
    58
    -(def-unix-error ENOTUNIQ 76)
    
    59
    -(def-unix-error EOVERFLOW 75)
    
    60
    -(def-unix-error EBADMSG 74)
    
    61
    -(def-unix-error EDOTDOT 73)
    
    62
    -(def-unix-error EMULTIHOP 72)
    
    63
    -(def-unix-error EPROTO 71)
    
    64
    -(def-unix-error ECOMM 70)
    
    65
    -(def-unix-error ESRMNT 69)
    
    66
    -(def-unix-error EADV 68)
    
    67
    -(def-unix-error ENOLINK 67)
    
    68
    -(def-unix-error EREMOTE 66)
    
    69
    -(def-unix-error ENOPKG 65)
    
    70
    -(def-unix-error ENONET 64)
    
    71
    -(def-unix-error ENOSR 63)
    
    72
    -(def-unix-error ETIME 62)
    
    73
    -(def-unix-error ENODATA 61)
    
    74
    -(def-unix-error ENOSTR 60)
    
    75
    -(def-unix-error EBFONT 59)
    
    76
    -(def-unix-error EBADSLT 57)
    
    77
    -(def-unix-error EBADRQC 56)
    
    78
    -(def-unix-error ENOANO 55)
    
    79
    -(def-unix-error EXFULL 54)
    
    80
    -(def-unix-error EBADR 53)
    
    81
    -(def-unix-error EBADE 52)
    
    82
    -(def-unix-error EL2HLT 51)
    
    83
    -(def-unix-error ENOCSI 50)
    
    84
    -(def-unix-error EUNATCH 49)
    
    85
    -(def-unix-error ELNRNG 48)
    
    86
    -(def-unix-error EL3RST 47)
    
    87
    -(def-unix-error EL3HLT 46)
    
    88
    -(def-unix-error EL2NSYNC 45)
    
    89
    -(def-unix-error ECHRNG 44)
    
    90
    -(def-unix-error EIDRM 43)
    
    91
    -(def-unix-error ENOMSG 42)
    
    92
    -(def-unix-error ELOOP 40)
    
    93
    -(def-unix-error ENOTEMPTY 39)
    
    94
    -(def-unix-error ENOSYS 38)
    
    95
    -(def-unix-error ENOLCK 37)
    
    96
    -(def-unix-error ENAMETOOLONG 36)
    
    97
    -(def-unix-error EDEADLK 35)
    
    98
    -(def-unix-error ERANGE 34)
    
    99
    -(def-unix-error EDOM 33)
    
    100
    -(def-unix-error EPIPE 32)
    
    101
    -(def-unix-error EMLINK 31)
    
    102
    -(def-unix-error EROFS 30)
    
    103
    -(def-unix-error ESPIPE 29)
    
    104
    -(def-unix-error ENOSPC 28)
    
    105
    -(def-unix-error EFBIG 27)
    
    106
    -(def-unix-error ETXTBSY 26)
    
    107
    -(def-unix-error ENOTTY 25)
    
    108
    -(def-unix-error EMFILE 24)
    
    109
    -(def-unix-error ENFILE 23)
    
    110
    -(def-unix-error EINVAL 22)
    
    111
    -(def-unix-error EISDIR 21)
    
    112
    -(def-unix-error ENOTDIR 20)
    
    113
    -(def-unix-error ENODEV 19)
    
    114
    -(def-unix-error EXDEV 18)
    
    115
    -(def-unix-error EEXIST 17)
    
    116
    -(def-unix-error EBUSY 16)
    
    117
    -(def-unix-error ENOTBLK 15)
    
    118
    -(def-unix-error EFAULT 14)
    
    119
    -(def-unix-error EACCES 13)
    
    120
    -(def-unix-error ENOMEM 12)
    
    121
    -(def-unix-error EAGAIN 11)
    
    122
    -(def-unix-error ECHILD 10)
    
    123
    -(def-unix-error EBADF 9)
    
    124
    -(def-unix-error ENOEXEC 8)
    
    125
    -(def-unix-error E2BIG 7)
    
    126
    -(def-unix-error ENXIO 6)
    
    127
    -(def-unix-error EIO 5)
    
    128
    -(def-unix-error EINTR 4)
    
    129
    -(def-unix-error ESRCH 3)
    
    130
    -(def-unix-error ENOENT 2)
    
    131
    -(def-unix-error EPERM 1)
    
    132
    -(def-unix-error EWOULDBLOCK EAGAIN)
    
    133
    -(def-unix-error ENOTSUP EOPNOTSUPP)
    
    134
    -(def-unix-error EDEADLOCK EDEADLK)
    1
    +(defconstant EPERM 1)
    
    2
    +(defconstant ENOENT 2)
    
    3
    +(defconstant ESRCH 3)
    
    4
    +(defconstant EINTR 4)
    
    5
    +(defconstant EIO 5)
    
    6
    +(defconstant ENXIO 6)
    
    7
    +(defconstant E2BIG 7)
    
    8
    +(defconstant ENOEXEC 8)
    
    9
    +(defconstant EBADF 9)
    
    10
    +(defconstant ECHILD 10)
    
    11
    +(defconstant EAGAIN 11)
    
    12
    +(defconstant EWOULDBLOCK EAGAIN)
    
    13
    +(defconstant ENOMEM 12)
    
    14
    +(defconstant EACCES 13)
    
    15
    +(defconstant EFAULT 14)
    
    16
    +(defconstant ENOTBLK 15)
    
    17
    +(defconstant EBUSY 16)
    
    18
    +(defconstant EEXIST 17)
    
    19
    +(defconstant EXDEV 18)
    
    20
    +(defconstant ENODEV 19)
    
    21
    +(defconstant ENOTDIR 20)
    
    22
    +(defconstant EISDIR 21)
    
    23
    +(defconstant EINVAL 22)
    
    24
    +(defconstant ENFILE 23)
    
    25
    +(defconstant EMFILE 24)
    
    26
    +(defconstant ENOTTY 25)
    
    27
    +(defconstant ETXTBSY 26)
    
    28
    +(defconstant EFBIG 27)
    
    29
    +(defconstant ENOSPC 28)
    
    30
    +(defconstant ESPIPE 29)
    
    31
    +(defconstant EROFS 30)
    
    32
    +(defconstant EMLINK 31)
    
    33
    +(defconstant EPIPE 32)
    
    34
    +(defconstant EDOM 33)
    
    35
    +(defconstant ERANGE 34)
    
    36
    +(defconstant EDEADLK 35)
    
    37
    +(defconstant EDEADLOCK EDEADLK)
    
    38
    +(defconstant ENAMETOOLONG 36)
    
    39
    +(defconstant ENOLCK 37)
    
    40
    +(defconstant ENOSYS 38)
    
    41
    +(defconstant ENOTEMPTY 39)
    
    42
    +(defconstant ELOOP 40)
    
    43
    +(defconstant ENOMSG 42)
    
    44
    +(defconstant EIDRM 43)
    
    45
    +(defconstant ECHRNG 44)
    
    46
    +(defconstant EL2NSYNC 45)
    
    47
    +(defconstant EL3HLT 46)
    
    48
    +(defconstant EL3RST 47)
    
    49
    +(defconstant ELNRNG 48)
    
    50
    +(defconstant EUNATCH 49)
    
    51
    +(defconstant ENOCSI 50)
    
    52
    +(defconstant EL2HLT 51)
    
    53
    +(defconstant EBADE 52)
    
    54
    +(defconstant EBADR 53)
    
    55
    +(defconstant EXFULL 54)
    
    56
    +(defconstant ENOANO 55)
    
    57
    +(defconstant EBADRQC 56)
    
    58
    +(defconstant EBADSLT 57)
    
    59
    +(defconstant EBFONT 59)
    
    60
    +(defconstant ENOSTR 60)
    
    61
    +(defconstant ENODATA 61)
    
    62
    +(defconstant ETIME 62)
    
    63
    +(defconstant ENOSR 63)
    
    64
    +(defconstant ENONET 64)
    
    65
    +(defconstant ENOPKG 65)
    
    66
    +(defconstant EREMOTE 66)
    
    67
    +(defconstant ENOLINK 67)
    
    68
    +(defconstant EADV 68)
    
    69
    +(defconstant ESRMNT 69)
    
    70
    +(defconstant ECOMM 70)
    
    71
    +(defconstant EPROTO 71)
    
    72
    +(defconstant EMULTIHOP 72)
    
    73
    +(defconstant EDOTDOT 73)
    
    74
    +(defconstant EBADMSG 74)
    
    75
    +(defconstant EOVERFLOW 75)
    
    76
    +(defconstant ENOTUNIQ 76)
    
    77
    +(defconstant EBADFD 77)
    
    78
    +(defconstant EREMCHG 78)
    
    79
    +(defconstant ELIBACC 79)
    
    80
    +(defconstant ELIBBAD 80)
    
    81
    +(defconstant ELIBSCN 81)
    
    82
    +(defconstant ELIBMAX 82)
    
    83
    +(defconstant ELIBEXEC 83)
    
    84
    +(defconstant EILSEQ 84)
    
    85
    +(defconstant ERESTART 85)
    
    86
    +(defconstant ESTRPIPE 86)
    
    87
    +(defconstant EUSERS 87)
    
    88
    +(defconstant ENOTSOCK 88)
    
    89
    +(defconstant EDESTADDRREQ 89)
    
    90
    +(defconstant EMSGSIZE 90)
    
    91
    +(defconstant EPROTOTYPE 91)
    
    92
    +(defconstant ENOPROTOOPT 92)
    
    93
    +(defconstant EPROTONOSUPPORT 93)
    
    94
    +(defconstant ESOCKTNOSUPPORT 94)
    
    95
    +(defconstant EOPNOTSUPP 95)
    
    96
    +(defconstant ENOTSUP EOPNOTSUPP)
    
    97
    +(defconstant EPFNOSUPPORT 96)
    
    98
    +(defconstant EAFNOSUPPORT 97)
    
    99
    +(defconstant EADDRINUSE 98)
    
    100
    +(defconstant EADDRNOTAVAIL 99)
    
    101
    +(defconstant ENETDOWN 100)
    
    102
    +(defconstant ENETUNREACH 101)
    
    103
    +(defconstant ENETRESET 102)
    
    104
    +(defconstant ECONNABORTED 103)
    
    105
    +(defconstant ECONNRESET 104)
    
    106
    +(defconstant ENOBUFS 105)
    
    107
    +(defconstant EISCONN 106)
    
    108
    +(defconstant ENOTCONN 107)
    
    109
    +(defconstant ESHUTDOWN 108)
    
    110
    +(defconstant ETOOMANYREFS 109)
    
    111
    +(defconstant ETIMEDOUT 110)
    
    112
    +(defconstant ECONNREFUSED 111)
    
    113
    +(defconstant EHOSTDOWN 112)
    
    114
    +(defconstant EHOSTUNREACH 113)
    
    115
    +(defconstant EALREADY 114)
    
    116
    +(defconstant EINPROGRESS 115)
    
    117
    +(defconstant ESTALE 116)
    
    118
    +(defconstant EUCLEAN 117)
    
    119
    +(defconstant ENOTNAM 118)
    
    120
    +(defconstant ENAVAIL 119)
    
    121
    +(defconstant EISNAM 120)
    
    122
    +(defconstant EREMOTEIO 121)
    
    123
    +(defconstant EDQUOT 122)
    
    124
    +(defconstant ENOMEDIUM 123)
    
    125
    +(defconstant EMEDIUMTYPE 124)
    
    126
    +(defconstant ECANCELED 125)
    
    127
    +(defconstant ENOKEY 126)
    
    128
    +(defconstant EKEYEXPIRED 127)
    
    129
    +(defconstant EKEYREVOKED 128)
    
    130
    +(defconstant EKEYREJECTED 129)
    
    131
    +(defconstant EOWNERDEAD 130)
    
    132
    +(defconstant ENOTRECOVERABLE 131)
    
    133
    +(defconstant ERFKILL 132)
    
    134
    +(defconstant EHWPOISON 133)

  • bin/errno-template.lisp
    ... ... @@ -9,27 +9,16 @@
    9 9
     ;;;
    
    10 10
     ;;; **********************************************************************
    
    11 11
     ;;;
    
    12
    -;;; This file contains the UNIX low-level support, just enough to run
    
    13
    -;;; CMUCL.
    
    12
    +;;; This file contains the definition of UNIX errno values from errno.h.
    
    14 13
     ;;;
    
    15 14
     (in-package "UNIX")
    
    16 15
     (intl:textdomain "cmucl-unix")
    
    17 16
     
    
    18 17
     ;;;; Errno stuff.
    
    19 18
     
    
    20
    -(eval-when (compile eval)
    
    21
    -
    
    22
    -(defparameter *compiler-unix-errors* nil)
    
    23
    -
    
    24
    -(defmacro def-unix-error (name number)
    
    25
    -  `(progn
    
    26
    -     (defconstant ,name ,number)
    
    27
    -     (export ',name)))
    
    28
    -
    
    29
    -) ;eval-when
    
    30
    -
    
    31 19
     ;;; 
    
    32 20
     ;;; From <errno.h>
    
    33 21
     ;;; 
    
    34
    -(def-unix-error ESUCCESS 0)
    
    35
    -
    22
    +(defconstant ESUCCESS 0)
    
    23
    +;;; The following values are autogenerated via bin/create-errno.sh
    
    24
    +;;; DO NOT EDIT this file.  Update the templates instead.