Changeset 955c2b0 in mainline
- Timestamp:
- 2011-07-28T22:34:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9350bfdd
- Parents:
- 75406dc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/unistd.c
r75406dc r955c2b0 111 111 } 112 112 char *ret = getcwd(buf, size); 113 if (ret == NULL) { 113 /* Check errno to avoid shadowing possible ENOMEM. */ 114 if (ret == NULL && errno == EOK) { 114 115 errno = ERANGE; 115 116 } … … 271 272 if (fd < 0) { 272 273 errno = -fd; 273 return 0;274 return -1; 274 275 } 275 276 close(fd); 276 return 1;277 return 0; 277 278 } else { 278 279 /* Invalid amode argument. */
Note:
See TracChangeset
for help on using the changeset viewer.