More posix codes...

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@95 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
David Reid 2002-07-11 21:41:20 +00:00
parent 058d10cc83
commit 62f1aef129

View File

@ -164,7 +164,7 @@ static ssize_t mouse_read(void * cookie, off_t pos, void* buf, size_t *len)
// wait until there is data to read
if(acquire_sem_etc(mouse_sem, 1, B_CAN_INTERRUPT, 0) ==
ERR_SEM_INTERRUPTED) {
EINTR) {
return 0;
} // if
@ -190,7 +190,7 @@ static ssize_t mouse_read(void * cookie, off_t pos, void* buf, size_t *len)
static ssize_t mouse_write(void * cookie, off_t pos, const void *buf, size_t *len)
{
*len = 0;
return ERR_VFS_READONLY_FS;
return EROFS;
} // mouse_write
/*
@ -198,7 +198,7 @@ static ssize_t mouse_write(void * cookie, off_t pos, const void *buf, size_t *le
*/
static int mouse_ioctl(void * cookie, uint32 op, void *buf, size_t len)
{
return ERR_INVALID_ARGS;
return EINVAL;
} // mouse_ioctl
/*