Rev 1366 | Rev 1519 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1366 | Rev 1451 | ||
---|---|---|---|
1 | #include <libarch/types.h> |
1 | #include <libarch/types.h> |
2 | #include <unistd.h> |
2 | #include <unistd.h> |
3 | 3 | ||
4 | #define EMFILE -17 |
4 | #define EMFILE -17 |
5 | 5 | ||
6 | typedef int fd_t; |
6 | typedef int fd_t; |
7 | 7 | ||
8 | 8 | ||
9 | typedef ssize_t (*pwritefn_t)(void *, const void *, size_t); |
9 | typedef ssize_t (*pwritefn_t)(void *, const void *, size_t); |
10 | typedef ssize_t (*preadfn_t)(void); |
10 | typedef char (*preadfn_t)(void); |
11 | 11 | ||
12 | fd_t open(const char *fname, int flags); |
12 | fd_t open(const char *fname, int flags); |
13 | 13 |