mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Most paranoid changes to assure the state of things
This commit is contained in:
@@ -206,6 +206,7 @@ int aio_fsync(int op, FAR struct aiocb *aiocbp)
|
||||
/* The result -EINPROGRESS means that the transfer has not yet completed */
|
||||
|
||||
aiocbp->aio_result = -EINPROGRESS;
|
||||
aiocbp->aio_priv = NULL;
|
||||
|
||||
/* 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 */
|
||||
|
||||
aiocbp->aio_result = -EINPROGRESS;
|
||||
aiocbp->aio_priv = NULL;
|
||||
|
||||
/* 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 */
|
||||
|
||||
aiocbp->aio_result = -EINPROGRESS;
|
||||
aiocbp->aio_priv = NULL;
|
||||
|
||||
/* 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;
|
||||
switch (aiocbp->aio_lio_opcode)
|
||||
{
|
||||
|
||||
case LIO_NOP:
|
||||
{
|
||||
/* Mark the do-nothing operation complete */
|
||||
|
||||
Reference in New Issue
Block a user