[libc] Fix the result length issue in aio_read_work.
This commit is contained in:
parent
99bef01983
commit
75061a2712
|
@ -170,7 +170,7 @@ static void aio_read_work(struct rt_work* work, void* work_data)
|
||||||
if (len <= 0)
|
if (len <= 0)
|
||||||
cb->aio_result = errno;
|
cb->aio_result = errno;
|
||||||
else
|
else
|
||||||
cb->aio_result = 0;
|
cb->aio_result = len;
|
||||||
rt_hw_interrupt_enable(level);
|
rt_hw_interrupt_enable(level);
|
||||||
|
|
||||||
return ;
|
return ;
|
||||||
|
@ -321,6 +321,7 @@ static void aio_write_work(struct rt_work* work, void* work_data)
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The aio_write() function shall write aiocbp->aio_nbytes to the file associated
|
* The aio_write() function shall write aiocbp->aio_nbytes to the file associated
|
||||||
* with aiocbp->aio_fildes from the buffer pointed to by aiocbp->aio_buf. The
|
* with aiocbp->aio_fildes from the buffer pointed to by aiocbp->aio_buf. The
|
||||||
|
|
Loading…
Reference in New Issue