1 USING: alien.c-types alien.strings alien.syntax destructors
2 io.encodings.utf8 kernel libc system ;
7 ! From errno.h in msvc 10:
39 CONSTANT: ENAMETOOLONG 38
42 CONSTANT: ENOTEMPTY 41
44 ! Error codes used in the Secure CRT functions
48 CONSTANT: STRUNCATE 80
50 ! Support EDEADLOCK for compatibility with older MS-C versions
51 ALIAS: EDEADLOCK EDEADLK
54 CONSTANT: EADDRINUSE 100
55 CONSTANT: EADDRNOTAVAIL 101
56 CONSTANT: EAFNOSUPPORT 102
57 CONSTANT: EALREADY 103
59 CONSTANT: ECANCELED 105
60 CONSTANT: ECONNABORTED 106
61 CONSTANT: ECONNREFUSED 107
62 CONSTANT: ECONNRESET 108
63 CONSTANT: EDESTADDRREQ 109
64 CONSTANT: EHOSTUNREACH 110
66 CONSTANT: EINPROGRESS 112
69 CONSTANT: EMSGSIZE 115
70 CONSTANT: ENETDOWN 116
71 CONSTANT: ENETRESET 117
72 CONSTANT: ENETUNREACH 118
77 CONSTANT: ENOPROTOOPT 123
80 CONSTANT: ENOTCONN 126
81 CONSTANT: ENOTRECOVERABLE 127
82 CONSTANT: ENOTSOCK 128
84 CONSTANT: EOPNOTSUPP 130
86 CONSTANT: EOVERFLOW 132
87 CONSTANT: EOWNERDEAD 133
89 CONSTANT: EPROTONOSUPPORT 135
90 CONSTANT: EPROTOTYPE 136
92 CONSTANT: ETIMEDOUT 138
94 CONSTANT: EWOULDBLOCK 140
96 ! From signal.h in msvc 10:
102 CONSTANT: SIGBREAK 21
105 CONSTANT: SIGABRT_COMPAT 6
109 FUNCTION: int strerror_s ( char *buffer, size_t numberOfElements, int errnum )
113 [ 1024 [ malloc &free ] keep ] dip
114 [ strerror_s drop ] keepdd
118 ! These are uncertain:
120 CONSTANT: LC_COLLATE 1
122 CONSTANT: LC_MONETARY 3
123 CONSTANT: LC_NUMERIC 4