Fixed the strange return code in the read/write hooks (it's now B_NOT_ALLOWED instead of EROFS).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12262 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-04-06 12:53:17 +00:00
parent 2a912be1d8
commit a6548f7b39
2 changed files with 429 additions and 429 deletions
@@ -1,6 +1,6 @@
/* /*
* Copyright 2004 Haiku, Inc. * Copyright 2004-2005 Haiku, Inc.
* Distributed under the terms of the Haiku License. * Distributed under the terms of the MIT License.
* *
* keyboard.c: * keyboard.c:
* PS/2 keyboard device driver * PS/2 keyboard device driver
@@ -183,7 +183,7 @@ keyboard_read(void *cookie, off_t pos, void *buffer, size_t *_length)
{ {
TRACE(("keyboard read()\n")); TRACE(("keyboard read()\n"));
*_length = 0; *_length = 0;
return EROFS; return B_NOT_ALLOWED;
} }
@@ -192,7 +192,7 @@ keyboard_write(void *cookie, off_t pos, const void *buf, size_t *len)
{ {
TRACE(("keyboard write()\n")); TRACE(("keyboard write()\n"));
*len = 0; *len = 0;
return EROFS; return B_NOT_ALLOWED;
} }
@@ -1,6 +1,6 @@
/* /*
* Copyright 2001-2005 Haiku, Inc. * Copyright 2001-2005 Haiku, Inc.
* Distributed under the terms of the Haiku License. * Distributed under the terms of the MIT License.
* *
* ps2mouse.c: * ps2mouse.c:
* PS/2 mouse device driver * PS/2 mouse device driver
@@ -374,7 +374,7 @@ status_t
mouse_read(void *cookie, off_t pos, void *buf, size_t *len) mouse_read(void *cookie, off_t pos, void *buf, size_t *len)
{ {
*len = 0; *len = 0;
return EROFS; return B_NOT_ALLOWED;
} }
@@ -382,7 +382,7 @@ status_t
mouse_write(void * cookie, off_t pos, const void *buf, size_t *len) mouse_write(void * cookie, off_t pos, const void *buf, size_t *len)
{ {
*len = 0; *len = 0;
return EROFS; return B_NOT_ALLOWED;
} }