[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #9283] Returning access modes with fcntl

From: Joan Lledó
Subject: [lwip-devel] [patch #9283] Returning access modes with fcntl
Date: Tue, 28 Mar 2017 12:56:07 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0

Follow-up Comment #9, patch #9283 (project lwip):

Hello Simon,

I've made some changes on the patch. Now it checks for null pointers and
returns O_RDWR for UDP and raw sockets. It also returns O_RDWR when both
O_RDONLY and O_WRONLY flags are set, because in some systems like Linux[1]
O_RDWR is not equal to O_RDONLY|O_WRONLY.

About the lock, I think I need your help here. The code doesn't make changes
on the socket, it only reads a flag from the pcb. And anyway, I read that it's
not supported that two threads work on the same socket at the same time.
What's the danger?


[1] http://lxr.free-electrons.com/source/include/uapi/asm-generic/fcntl.h

(file #40182)

Additional Item Attachment:

File name: 0001-lwip_fcntl-returns-access-modes.patch Size:2 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]