Changeset f77c1c9 in mainline for uspace/lib/posix/source/unistd.c
- Timestamp:
- 2017-12-08T21:03:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c19a5a59
- Parents:
- c1694b6b
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-07 19:44:55)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/unistd.c
rc1694b6b rf77c1c9 355 355 int posix_dup2(int fildes, int fildes2) 356 356 { 357 return negerrno(vfs_clone, fildes, fildes2, false); 357 int file; 358 int rc = vfs_clone(fildes, fildes2, false, &file); 359 if (rc != EOK) { 360 errno = rc < 0 ? -rc : rc; 361 return -1; 362 } 363 return file; 358 364 } 359 365
Note:
See TracChangeset
for help on using the changeset viewer.