mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
Squashed commit of the following:
psock_close() and net_close() are internal OS functions and should not set the errno variable.
psock_ioctl() and netdev_ioctl() are internal OS functions and should not set the errno variable.
net_dupsd() and net_dupsd2() are internal OS functions and should not set the errno variable.
net/ and fs/: net_vfcntl(), file_fcntl(), file_dup(), and file_dup2() are all internal OS interfaces and should not modify the errno value.
This commit is contained in:
+2
-3
@@ -124,9 +124,8 @@ static void aio_write_worker(FAR void *arg)
|
||||
oflags = file_fcntl(aioc->u.aioc_filep, F_GETFL);
|
||||
if (oflags < 0)
|
||||
{
|
||||
int errcode = get_errno();
|
||||
ferr("ERROR: fcntl failed: %d\n", errcode);
|
||||
aiocbp->aio_result = -errcode;
|
||||
ferr("ERROR: file_fcntl failed: %d\n", oflags);
|
||||
aiocbp->aio_result = oflags;
|
||||
goto errout;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user