version 1.1.2.1, 2010/07/05 09:25:06
|
version 1.1.2.2, 2010/07/05 11:01:56
|
Line 2
|
Line 2
|
|
|
|
|
/* |
/* |
* io_rread() Raw read function | * io_rread() Raw VFS read function |
* @fd = File handle |
* @fd = File handle |
* @buf = Read buffer |
* @buf = Read buffer |
* @nbytes = Read buffer size |
* @nbytes = Read buffer size |
Line 33 io_rread(int fd, void * __restrict buf, size_t nbytes,
|
Line 33 io_rread(int fd, void * __restrict buf, size_t nbytes,
|
} |
} |
|
|
#ifdef AIO_OPS |
#ifdef AIO_OPS |
|
/* This made for generate EOF for file */ |
|
if (update && offset >= lseek(fd, 0, SEEK_END)) |
|
return 0; |
|
|
memset(buf, 0, nbytes); |
memset(buf, 0, nbytes); |
memset(&acb, 0, sizeof acb); |
memset(&acb, 0, sizeof acb); |
acb.aio_fildes = fd; |
acb.aio_fildes = fd; |
Line 67 io_rread(int fd, void * __restrict buf, size_t nbytes,
|
Line 71 io_rread(int fd, void * __restrict buf, size_t nbytes,
|
} |
} |
|
|
/* |
/* |
* io_rwrite() Raw write function | * io_rwrite() Raw VFS write function |
* @fd = File handle |
* @fd = File handle |
* @buf = Write buffer |
* @buf = Write buffer |
* @nbytes = Write bytes from buffer |
* @nbytes = Write bytes from buffer |
Line 98 io_rwrite(int fd, void * __restrict buf, size_t nbytes
|
Line 102 io_rwrite(int fd, void * __restrict buf, size_t nbytes
|
} |
} |
|
|
#ifdef AIO_OPS |
#ifdef AIO_OPS |
memset(buf, 0, nbytes); |
|
memset(&acb, 0, sizeof acb); |
memset(&acb, 0, sizeof acb); |
acb.aio_fildes = fd; |
acb.aio_fildes = fd; |
acb.aio_nbytes = nbytes; |
acb.aio_nbytes = nbytes; |