Changeset 97b1dfc2 in mainline for uspace/lib/posix/include/posix/unistd.h
- Timestamp:
- 2018-09-24T15:36:21Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 34c76e2f
- Parents:
- 631281d
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-09-24 15:02:32)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-09-24 15:36:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/unistd.h
r631281d r97b1dfc2 80 80 extern ssize_t read(int fildes, void *buf, size_t nbyte); 81 81 extern ssize_t write(int fildes, const void *buf, size_t nbyte); 82 extern off_t lseek(int fildes,83 off_t offset, int whence);84 82 extern int fsync(int fildes); 85 83 extern int ftruncate(int fildes, off_t length); … … 88 86 extern int dup(int fildes); 89 87 extern int dup2(int fildes, int fildes2); 88 89 #ifdef _LARGEFILE64_SOURCE 90 extern off64_t lseek64(int fildes, off64_t offset, int whence); 91 #endif 92 93 #if _FILE_OFFSET_BITS == 64 94 static inline off_t lseek(int fildes, off_t offset, int whence) 95 { 96 /* Declarations visible in this function body only. */ 97 typedef int64_t off64_t; 98 extern off64_t lseek64(int fildes, off64_t offset, int whence); 99 100 /* With _FILE_OFFSET_BITS == 64, lseek is actually lseek64. */ 101 return lseek64(fildes, offset, whence); 102 } 103 #else 104 extern off_t lseek(int fildes, off_t offset, int whence); 105 #endif 90 106 91 107 /* Standard Streams */
Note:
See TracChangeset
for help on using the changeset viewer.