Rev 1033 | Rev 1228 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1033 | Rev 1113 | ||
|---|---|---|---|
| Line 28... | Line 28... | ||
| 28 | 28 | ||
| 29 | #ifndef __LIBC__UNISTD_H__ |
29 | #ifndef __LIBC__UNISTD_H__ |
| 30 | #define __LIBC__UNISTD_H__ |
30 | #define __LIBC__UNISTD_H__ |
| 31 | 31 | ||
| 32 | #include <types.h> |
32 | #include <types.h> |
| - | 33 | #include <arch/mm/page.h> |
|
| 33 | 34 | ||
| 34 | #define NULL 0 |
35 | #define NULL 0 |
| - | 36 | #define getpagesize() (PAGE_SIZE) |
|
| 35 | 37 | ||
| 36 | extern ssize_t write(int fd, const void * buf, size_t count); |
38 | extern ssize_t write(int fd, const void * buf, size_t count); |
| 37 | extern void _exit(int status); |
39 | extern void _exit(int status); |
| 38 | void *mmap(void *address, size_t size, int flags); |
40 | void *mmap(void *address, size_t size, int flags); |
| 39 | void *mremap(void *address, size_t size, int flags); |
41 | void *mremap(void *address, size_t size, int flags); |