Changes in / [a1c95da:f94b24c8] in mainline
- Location:
- uspace/lib/posix
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/stdio.h
ra1c95da rf94b24c8 65 65 66 66 #define BUFSIZ 4096 67 #define SEEK_SET 0 68 #define SEEK_CUR 1 69 #define SEEK_END 2 67 70 68 71 typedef struct _IO_FILE FILE; -
uspace/lib/posix/include/posix/unistd.h
ra1c95da rf94b24c8 44 44 #include "stddef.h" 45 45 46 #define SEEK_SET 047 #define SEEK_CUR 148 #define SEEK_END 249 50 46 /* Process Termination */ 51 47 #define _exit exit … … 81 77 extern ssize_t __POSIX_DEF__(read)(int fildes, void *buf, size_t nbyte); 82 78 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);85 79 extern int __POSIX_DEF__(fsync)(int fildes); 86 80 extern int __POSIX_DEF__(ftruncate)(int fildes, __POSIX_DEF__(off_t) length); -
uspace/lib/posix/source/unistd.c
ra1c95da rf94b24c8 221 221 { 222 222 return errnify(write, fildes, buf, nbyte); 223 }224 225 /**226 * Reposition read/write file offset227 *228 * @param fildes File descriptor of the opened file.229 * @param offset New offset in the file.230 * @param whence The position from which the offset argument is specified.231 * @return Upon successful completion, returns the resulting offset232 * as measured in bytes from the beginning of the file, -1 otherwise.233 */234 posix_off_t posix_lseek(int fildes, posix_off_t offset, int whence)235 {236 return errnify(lseek, fildes, offset, whence);237 223 } 238 224
Note:
See TracChangeset
for help on using the changeset viewer.