Rev 1237 | Rev 1452 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1237 | Rev 1250 | ||
---|---|---|---|
Line 29... | Line 29... | ||
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 | #include <arch/mm/page.h> |
34 | #include <task.h> |
- | |
35 | 34 | ||
36 | #define NULL 0 |
35 | #define NULL 0 |
37 | #define getpagesize() (PAGE_SIZE) |
36 | #define getpagesize() (PAGE_SIZE) |
38 | 37 | ||
39 | 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); |
40 | extern void _exit(int status); |
39 | extern void _exit(int status); |
41 | extern void *as_area_create(void *address, size_t size, int flags); |
- | |
42 | extern void *as_area_resize(void *address, size_t size, int flags); |
- | |
43 | extern int as_area_accept(task_id_t id, void *base, size_t size, int flags); |
- | |
44 | extern int as_area_send(task_id_t id, void *base); |
- | |
45 | void *sbrk(ssize_t incr); |
40 | void *sbrk(ssize_t incr); |
46 | 41 | ||
47 | #endif |
42 | #endif |