sys_write() "seems to" work. Also added support for sys_lseek().

This commit is contained in:
Bahadir Balban
2008-04-23 14:14:45 +01:00
parent 59bdaf22ec
commit 0629ba3c1a
6 changed files with 101 additions and 46 deletions

View File

@@ -20,7 +20,7 @@ static inline off_t l4_lseek(int fildes, off_t offset, int whence)
write_mr(L4SYS_ARG2, whence);
/* Call pager with shmget() request. Check ipc error. */
if ((offres = l4_sendrecv(VFS_TID, VFS_TID, L4_IPC_TAG_LSEEK)) < 0) {
if ((offres = l4_sendrecv(PAGER_TID, PAGER_TID, L4_IPC_TAG_LSEEK)) < 0) {
printf("%s: L4 IPC Error: %d.\n", __FUNCTION__, offres);
return offres;
}