Commit 64d81cd 1 parent 8cfaced commit 64d81cd Copy full SHA for 64d81cd
File tree 2 files changed +10
-11
lines changed
2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 43
43
(defconstant F-SETFL 4. )
44
44
(defconstant O-NONBLOCK 4. )
45
45
46
- (defconstant EWOULDBLOCK 35. )
47
- (defconstant EPIPE 32. )
48
- (defconstant EINTR 4. )
49
- (defconstant EPROTO 100. )
50
- (defconstant ECONNABORTED 53. )
51
- (defconstant ECONNREFUSED 61. )
52
- (defconstant ECONNRESET 54. )
53
- (defconstant ENOTCONN 57. )
54
- (defconstant EAGAIN 11. )
55
-
56
46
(defun set-fd-nonblock (fd enabled)
57
47
(declare (optimize (speed 3 ) (safety 0 )))
58
48
(let ((current-flags (%fcntl/noarg fd F-GETFL)))
Original file line number Diff line number Diff line change 1
- (include " sys/types.h" " sys/fcntl.h" )
1
+ (include " sys/types.h" " sys/fcntl.h" " errno.h " )
2
2
#+ (or freebsd bsd)
3
3
(include " sys/socket.h" )
4
4
14
14
(constant (+SF-MNOWAIT+ " SF_MNOWAIT" ))
15
15
16
16
(constant (+O-RDONLY+ " O_RDONLY" ))
17
+ (constant (EWOULDBLOCK " EWOULDBLOCK" ))
18
+ (constant (EPIPE " EPIPE" ))
19
+ (constant (EINTR " EINTR" ))
20
+ (constant (EPROTO " EPROTO" ))
21
+ (constant (ECONNABORTED " ECONNABORTED" ))
22
+ (constant (ECONNREFUSED " ECONNREFUSED" ))
23
+ (constant (ECONNRESET " ECONNRESET" ))
24
+ (constant (ENOTCONN " ENOTCONN" ))
25
+ (constant (EAGAIN " EAGAIN" ))
You can’t perform that action at this time.
0 commit comments