incubator-nuttx/net/local
Gregory Nutt 9568600ab1 Squashed commit of the following:
This commit backs out most of commit b4747286b1.  That change was added because sem_wait() would sometimes cause cancellation points inappropriated.  But with these recent changes, nxsem_wait() is used instead and it is not a cancellation point.

    In the OS, all calls to sem_wait() changed to nxsem_wait().  nxsem_wait() does not return errors via errno so each place where nxsem_wait() is now called must not examine the errno variable.

    In all OS functions (not libraries), change sem_wait() to nxsem_wait().  This will prevent the OS from creating bogus cancellation points and from modifying the per-task errno variable.

    sched/semaphore:  Add the function nxsem_wait().  This is a new internal OS interface.  It is functionally equivalent to sem_wait() except that (1) it is not a cancellation point, and (2) it does not set the per-thread errno value on return.
2017-10-04 15:22:27 -06:00
..
Kconfig
Make.defs Sockets: Initial steps to adde a socket interface to the networking. Each address family will have an interface that describes how to perform socket operations on that address family. Currently only a couple of methods are defined in the table as a proof of concept. More to come. Currently there are only tables for the INET/INET6 family, the Unix LOCAL family, and the raw PACKET family. Hopefully there will be AF_IEEE802154 and AF_BLUETOOTH comming down the pike. 2017-07-12 15:07:32 -06:00
local.h net/local: fix accept for local stream sockets 2017-07-31 07:36:54 -06:00
local_accept.c Squashed commit of the following: 2017-10-04 15:22:27 -06:00
local_bind.c Socket interface: Added getsockname[C() interfaces. 2017-07-14 09:04:19 -06:00
local_conn.c Squashed commit of the following: 2017-10-03 15:35:24 -06:00
local_connect.c Squashed commit of the following: 2017-10-04 15:22:27 -06:00
local_fifo.c
local_listen.c Networking: Fix typos introduced with network interface changes. 2017-07-14 06:02:49 -06:00
local_netpoll.c Squashed commit of the following: 2017-10-03 15:35:24 -06:00
local_recvfrom.c Socket I/F: Add recvfrom() method to interface. 2017-07-12 17:36:05 -06:00
local_recvutils.c
local_release.c Squashed commit of the following: 2017-10-03 15:35:24 -06:00
local_send.c Socket interface: Fix some configuration chaos. Sometime CONFIG_NET_UDP/TCP was used when CONFIG_NET_LOCAL_DGRAM/STREAM was intended. 2017-07-14 12:36:54 -06:00
local_sendpacket.c
local_sendto.c Be consistent... Use Name: consistent in function headers vs Function: 2017-04-21 16:33:14 -06:00
local_sockif.c Networking: Fix a race condition. The accept() operation is performed with the network locked. However, the network is unlocked BEFORE the connected state is set. Therefore, a context switch may occur and the socket may no longer be connected when it is marked so. Noted by Pascal Speck. 2017-08-31 07:23:19 -06:00