version 1.4, 2012/03/29 01:31:33
|
version 1.5, 2012/05/14 12:49:21
|
Line 47 SUCH DAMAGE.
|
Line 47 SUCH DAMAGE.
|
|
|
|
|
/* |
/* |
* io_rread() Raw VFS read function | * io_rread() - Raw VFS read function |
* |
* |
* @fd = File handle |
* @fd = File handle |
* @buf = Read buffer |
* @buf = Read buffer |
Line 66 io_rread(int fd, void * __restrict buf, size_t nbytes,
|
Line 66 io_rread(int fd, void * __restrict buf, size_t nbytes,
|
#endif |
#endif |
|
|
if (!buf) { |
if (!buf) { |
io_SetErr(EINVAL, "Error:: invalid arguments ...\n"); | io_SetErr(EINVAL, "Invalid arguments"); |
return -1; |
return -1; |
} |
} |
if (!nbytes) |
if (!nbytes) |
Line 124 io_rread(int fd, void * __restrict buf, size_t nbytes,
|
Line 124 io_rread(int fd, void * __restrict buf, size_t nbytes,
|
} |
} |
|
|
/* |
/* |
* io_rwrite() Raw VFS write function | * io_rwrite() - Raw VFS write function |
* |
* |
* @fd = File handle |
* @fd = File handle |
* @buf = Write buffer |
* @buf = Write buffer |
Line 142 io_rwrite(int fd, void * __restrict buf, size_t nbytes
|
Line 142 io_rwrite(int fd, void * __restrict buf, size_t nbytes
|
#endif |
#endif |
|
|
if (!buf) { |
if (!buf) { |
io_SetErr(EINVAL, "Error:: invalid arguments ...\n"); | io_SetErr(EINVAL, "Invalid arguments"); |
return -1; |
return -1; |
} |
} |
if (!nbytes) |
if (!nbytes) |