Changeset 04803bf in mainline for uspace/lib/c/include/unistd.h
- Timestamp:
- 2011-03-21T22:00:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 143932e3
- Parents:
- b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
-
uspace/lib/c/include/unistd.h (moved) (moved from uspace/lib/libc/include/unistd.h ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/unistd.h
rb50b5af2 r04803bf 37 37 38 38 #include <sys/types.h> 39 #include <time.h> 39 40 #include <libarch/config.h> 40 41 41 42 #ifndef NULL 42 #define NULL 0 43 #define NULL ((void *) 0) 44 #endif 45 46 #ifndef SEEK_SET 47 #define SEEK_SET 0 48 #endif 49 50 #ifndef SEEK_CUR 51 #define SEEK_CUR 1 52 #endif 53 54 #ifndef SEEK_END 55 #define SEEK_END 2 43 56 #endif 44 57 45 58 #define getpagesize() (PAGE_SIZE) 46 59 47 #ifndef SEEK_SET 48 #define SEEK_SET 0 49 #define SEEK_CUR 1 50 #define SEEK_END 2 51 #endif 60 extern int dup2(int oldfd, int newfd); 52 61 53 62 extern ssize_t write(int, const void *, size_t); 54 63 extern ssize_t read(int, void *, size_t); 55 64 56 extern off _t lseek(int, off_t, int);57 extern int ftruncate(int, off_t);65 extern off64_t lseek(int, off64_t, int); 66 extern int ftruncate(int, aoff64_t); 58 67 59 68 extern int close(int); … … 65 74 extern int chdir(const char *); 66 75 67 extern void _exit(int status) __attribute__((noreturn));68 extern int usleep(u nsigned long usec);69 extern unsigned int sleep(unsigned int seconds);76 extern void exit(int) __attribute__((noreturn)); 77 extern int usleep(useconds_t); 78 extern unsigned int sleep(unsigned int); 70 79 71 80 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
