Changes in uspace/lib/libc/generic/vfs/vfs.c [b9067dfa:1313ee9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/vfs/vfs.c
rb9067dfa r1313ee9 197 197 } 198 198 199 int unmount(const char *mp)200 {201 ipcarg_t rc;202 ipcarg_t rc_orig;203 aid_t req;204 size_t mpa_size;205 char *mpa;206 207 mpa = absolutize(mp, &mpa_size);208 if (!mpa)209 return ENOMEM;210 211 futex_down(&vfs_phone_futex);212 async_serialize_start();213 vfs_connect();214 215 req = async_send_0(vfs_phone, VFS_IN_UNMOUNT, NULL);216 rc = async_data_write_start(vfs_phone, (void *) mpa, mpa_size);217 if (rc != EOK) {218 async_wait_for(req, &rc_orig);219 async_serialize_end();220 futex_up(&vfs_phone_futex);221 free(mpa);222 if (rc_orig == EOK)223 return (int) rc;224 else225 return (int) rc_orig;226 }227 228 229 async_wait_for(req, &rc);230 async_serialize_end();231 futex_up(&vfs_phone_futex);232 free(mpa);233 234 return (int) rc;235 }236 237 199 static int open_internal(const char *abs, size_t abs_size, int lflag, int oflag) 238 200 {
Note:
See TracChangeset
for help on using the changeset viewer.