Changeset ae78b53 in mainline for uspace/lib/libc/generic/vfs.c
- Timestamp:
- 2008-01-19T13:40:38Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4bb31f7
- Parents:
- 5973fd0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/vfs.c
r5973fd0 rae78b53 96 96 } 97 97 98 99 int open(const char *path, int oflag, ...) 98 static int _open(const char *path, int lflag, int oflag, ...) 100 99 { 101 100 int res; … … 114 113 } 115 114 } 116 req = async_send_ 2(vfs_phone, VFS_OPEN, oflag, 0, &answer);115 req = async_send_3(vfs_phone, VFS_OPEN, lflag, oflag, 0, &answer); 117 116 rc = ipc_data_write_start(vfs_phone, path, strlen(path)); 118 117 if (rc != EOK) { … … 126 125 futex_up(&vfs_phone_futex); 127 126 return (int) IPC_GET_ARG1(answer); 127 } 128 129 int open(const char *path, int oflag, ...) 130 { 131 return _open(path, L_FILE, oflag); 128 132 } 129 133 … … 243 247 if (!dirp) 244 248 return NULL; 245 dirp->fd = open(dirname, 0); /* TODO: must be a directory */249 dirp->fd = _open(dirname, L_DIRECTORY, 0); 246 250 if (dirp->fd < 0) { 247 251 free(dirp);
Note:
See TracChangeset
for help on using the changeset viewer.