Most paranoid changes to assure the state of things
This commit is contained in:
parent
697dfc6473
commit
33b1f59ee8
@ -206,6 +206,7 @@ int aio_fsync(int op, FAR struct aiocb *aiocbp)
|
|||||||
/* The result -EINPROGRESS means that the transfer has not yet completed */
|
/* The result -EINPROGRESS means that the transfer has not yet completed */
|
||||||
|
|
||||||
aiocbp->aio_result = -EINPROGRESS;
|
aiocbp->aio_result = -EINPROGRESS;
|
||||||
|
aiocbp->aio_priv = NULL;
|
||||||
|
|
||||||
/* Save the ID of the calling, client thread */
|
/* Save the ID of the calling, client thread */
|
||||||
|
|
||||||
|
@ -254,6 +254,7 @@ int aio_read(FAR struct aiocb *aiocbp)
|
|||||||
/* The result -EINPROGRESS means that the transfer has not yet completed */
|
/* The result -EINPROGRESS means that the transfer has not yet completed */
|
||||||
|
|
||||||
aiocbp->aio_result = -EINPROGRESS;
|
aiocbp->aio_result = -EINPROGRESS;
|
||||||
|
aiocbp->aio_priv = NULL;
|
||||||
|
|
||||||
/* Save the ID of the calling, client thread */
|
/* Save the ID of the calling, client thread */
|
||||||
|
|
||||||
|
@ -287,6 +287,7 @@ int aio_write(FAR struct aiocb *aiocbp)
|
|||||||
/* The result -EINPROGRESS means that the transfer has not yet completed */
|
/* The result -EINPROGRESS means that the transfer has not yet completed */
|
||||||
|
|
||||||
aiocbp->aio_result = -EINPROGRESS;
|
aiocbp->aio_result = -EINPROGRESS;
|
||||||
|
aiocbp->aio_priv = NULL;
|
||||||
|
|
||||||
/* Save the ID of the calling, client thread */
|
/* Save the ID of the calling, client thread */
|
||||||
|
|
||||||
|
@ -573,7 +573,6 @@ int lio_listio(int mode, FAR struct aiocb *const list[], int nent,
|
|||||||
status = OK;
|
status = OK;
|
||||||
switch (aiocbp->aio_lio_opcode)
|
switch (aiocbp->aio_lio_opcode)
|
||||||
{
|
{
|
||||||
|
|
||||||
case LIO_NOP:
|
case LIO_NOP:
|
||||||
{
|
{
|
||||||
/* Mark the do-nothing operation complete */
|
/* Mark the do-nothing operation complete */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user