Changeset e3480d5 in mainline
- Timestamp:
- 2013-07-29T13:16:03Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bf963b9
- Parents:
- ccdc63e
- Location:
- uspace/lib/posix
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/stdio.h
rccdc63e re3480d5 65 65 66 66 #define BUFSIZ 4096 67 #define SEEK_SET 068 #define SEEK_CUR 169 #define SEEK_END 270 67 71 68 typedef struct _IO_FILE FILE; -
uspace/lib/posix/include/posix/unistd.h
rccdc63e re3480d5 44 44 #include "stddef.h" 45 45 46 #define SEEK_SET 0 47 #define SEEK_CUR 1 48 #define SEEK_END 2 49 46 50 /* Process Termination */ 47 51 #define _exit exit … … 77 81 extern ssize_t __POSIX_DEF__(read)(int fildes, void *buf, size_t nbyte); 78 82 extern ssize_t __POSIX_DEF__(write)(int fildes, const void *buf, size_t nbyte); 83 extern __POSIX_DEF__(off_t) __POSIX_DEF__(lseek)(int fildes, 84 __POSIX_DEF__(off_t) offset, int whence); 79 85 extern int __POSIX_DEF__(fsync)(int fildes); 80 86 extern int __POSIX_DEF__(ftruncate)(int fildes, __POSIX_DEF__(off_t) length); -
uspace/lib/posix/source/unistd.c
rccdc63e re3480d5 221 221 { 222 222 return errnify(write, fildes, buf, nbyte); 223 } 224 225 /** 226 * Reposition read/write file offset 227 * 228 * @param fildes File descriptor of the opened file. 229 * @return Upon successful completion, returns the resulting offset 230 * as measured in bytes from the beginning of the file, -1 otherwise. 231 */ 232 posix_off_t posix_lseek(int fildes, posix_off_t offset, int whence) 233 { 234 return errnify(lseek, fildes, offset, whence); 223 235 } 224 236
Note:
See TracChangeset
for help on using the changeset viewer.