Subversion Repositories HelenOS

Rev

Rev 2674 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2674 Rev 2675
Line 141... Line 141...
141
            futex_up(&vfs_phone_futex);
141
            futex_up(&vfs_phone_futex);
142
            return res;
142
            return res;
143
        }
143
        }
144
    }
144
    }
145
    req = async_send_1(vfs_phone, VFS_READ, fildes, &answer);
145
    req = async_send_1(vfs_phone, VFS_READ, fildes, &answer);
146
    if (ipc_data_read_send(vfs_phone, buf, sizeof(buf)) != EOK) {
146
    if (ipc_data_read_send(vfs_phone, (void *)buf, nbyte) != EOK) {
147
        async_wait_for(req, NULL);
147
        async_wait_for(req, NULL);
148
        async_serialize_end();
148
        async_serialize_end();
149
        futex_up(&vfs_phone_futex);
149
        futex_up(&vfs_phone_futex);
150
        return (ssize_t) rc;
150
        return (ssize_t) rc;
151
    }
151
    }
Line 171... Line 171...
171
            futex_up(&vfs_phone_futex);
171
            futex_up(&vfs_phone_futex);
172
            return res;
172
            return res;
173
        }
173
        }
174
    }
174
    }
175
    req = async_send_1(vfs_phone, VFS_WRITE, fildes, &answer);
175
    req = async_send_1(vfs_phone, VFS_WRITE, fildes, &answer);
176
    if (ipc_data_write_send(vfs_phone, buf, sizeof(buf)) != EOK) {
176
    if (ipc_data_write_send(vfs_phone, (void *)buf, nbyte) != EOK) {
177
        async_wait_for(req, NULL);
177
        async_wait_for(req, NULL);
178
        async_serialize_end();
178
        async_serialize_end();
179
        futex_up(&vfs_phone_futex);
179
        futex_up(&vfs_phone_futex);
180
        return (ssize_t) rc;
180
        return (ssize_t) rc;
181
    }
181
    }