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:
Gregory Nutt
2017-09-30 10:41:21 -06:00
parent 2c2aa94b7d
commit e4dd33280d
18 changed files with 251 additions and 180 deletions
+2 -3
View File
@@ -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;
}