Changeset d96d9bc in mainline for uspace/lib/posix/source/unistd.c
- Timestamp:
- 2017-04-02T20:38:50Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c23275a
- Parents:
- 1e2e5795
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/unistd.c
r1e2e5795 rd96d9bc 108 108 char *posix_getcwd(char *buf, size_t size) 109 109 { 110 char *p = getcwd(buf, size); 111 112 if (p == NULL) { 113 errno = -errno; 110 int rc = rcerrno(vfs_cwd_get, buf, size); 111 if (rc != EOK) 114 112 return NULL; 115 } 116 117 return p; 113 return buf; 118 114 } 119 115 … … 125 121 int posix_chdir(const char *path) 126 122 { 127 return negerrno(chdir, path); 123 int rc = rcerrno(vfs_cwd_set, path); 124 if (rc != EOK) 125 return -1; 126 return 0; 128 127 } 129 128
Note:
See TracChangeset
for help on using the changeset viewer.