Changeset 8b863a62 in mainline for uspace/lib/posix/source/unistd.c
- Timestamp:
- 2014-04-16T17:14:06Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f857e8b
- Parents:
- dba3e2c (diff), 70b570c (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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/unistd.c
rdba3e2c r8b863a62 35 35 36 36 #define LIBPOSIX_INTERNAL 37 #define __POSIX_DEF__(x) posix_##x 37 38 38 39 #include "internal/common.h" … … 220 221 { 221 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 * @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 offset 232 * 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); 222 237 } 223 238 … … 374 389 // TODO: low priority, just a compile-time dependency of binutils 375 390 not_implemented(); 391 return -1; 376 392 } 377 393 … … 384 400 // TODO: low priority, just a compile-time dependency of binutils 385 401 not_implemented(); 402 return -1; 386 403 } 387 404 … … 396 413 // TODO: low priority, just a compile-time dependency of binutils 397 414 not_implemented(); 415 return -1; 398 416 } 399 417 … … 408 426 // TODO: low priority, just a compile-time dependency of binutils 409 427 not_implemented(); 428 return -1; 410 429 } 411 430 … … 419 438 // TODO: low priority, just a compile-time dependency of binutils 420 439 not_implemented(); 440 return -1; 441 } 442 443 unsigned int posix_alarm(unsigned int seconds) 444 { 445 not_implemented(); 446 return 0; 421 447 } 422 448
Note:
See TracChangeset
for help on using the changeset viewer.