Few fixes in libposix error checking.

size_t is a non-negative type and negative error checking didn't work. Now fixed.
Fixed various issues with reading file pages in the sys_read() path.
This commit is contained in:
Bahadir Balban
2008-04-20 02:12:53 +01:00
parent 8b3fedc18d
commit 9992d100d7
6 changed files with 33 additions and 27 deletions

View File

@@ -26,7 +26,7 @@
* for handling syscalls that access file content (i.e. read/write) since
* it maintains the page cache.
*/
int vfs2pager_sys_open(l4id_t sender, int fd, unsigned long vnum, unsigned long size)
int pager_sys_open(l4id_t sender, int fd, unsigned long vnum, unsigned long size)
{
int err;