blob: c518fcbbabad3ce916a395bf9fb816dce520d58d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef IO_SYS_H
#define IO_SYS_H
#include "write.h"
#include "read.h"
#include "open.h"
#include "close.h"
#define STDIN_FD 0
#define STDOUT_FD 1
#define STDERR_FD 2
#define OPEN_READ_ONLY 0
#define OPEN_WRITE_ONLY 1
#define OPEN_READ_WRITE 2
#define OPEN_DIRECTORY 0200000
#define TYPE_UNKNOWN 0
#define TYPE_FIFO 1
#define TYPE_CHAR_DEVICE 2
#define TYPE_DIRECTORY 4
#define TYPE_BLOCK_DEVICE 6
#define TYPE_REGULAR_FILE 8
#define TYPE_SYM_LINK 10
#define TYPE_SOCKET 12
#endif
|