Commit 1df3867a826320633f297a62b0032f16c1a3140f

Thomas de Grivel 2017-05-27T21:43:35

Add constants.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/grovel-unistd.lisp b/grovel-unistd.lisp
index fcb56e5..ae08b0e 100644
--- a/grovel-unistd.lisp
+++ b/grovel-unistd.lisp
@@ -3,8 +3,12 @@
 
 (include "unistd.h")
 
-(ctype size-t "size_t")
+(constant (+stdin-fileno+ "STDIN_FILENO"))
+(constant (+stdout-fileno+ "STDOUT_FILENO"))
+(constant (+stderr-fileno+ "STDERR_FILENO"))
+
 (ctype ssize-t "ssize_t")
+(ctype size-t "size_t")
 (ctype gid-t "gid_t")
 (ctype uid-t "uid_t")
 (ctype off-t "off_t")