Przeglądaj źródła

[Libc][dlib] Add STDIN_FILENO, STDOUT_FILENO and STDERR_FILENO to dlib sys/unistd.h .

armink 7 lat temu
rodzic
commit
991baa7a04
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      components/libc/compilers/dlib/sys/unistd.h

+ 5 - 0
components/libc/compilers/dlib/sys/unistd.h

@@ -2,6 +2,11 @@
 #define _SYS_UNISTD_H
 
 #ifdef RT_USING_DFS
+
+#define STDIN_FILENO    0       /* standard input file descriptor */
+#define STDOUT_FILENO   1       /* standard output file descriptor */
+#define STDERR_FILENO   2       /* standard error file descriptor */
+
 #include <dfs_posix.h>
 #else
 #define	_FREAD		0x0001	/* read enabled */