mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 20:27:53 +00:00
Add support so that fdopen() may be used on socket descriptors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3659 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
3867f05f0f
commit
45acebc2f9
8 changed files with 246 additions and 46 deletions
|
|
@ -131,6 +131,14 @@ extern "C" {
|
|||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/* net_checksd.c *************************************************************/
|
||||
/* Check if the socket descriptor is valid for the provided TCB and if it
|
||||
* supports the requested access.
|
||||
*/
|
||||
|
||||
typedef struct _TCB _TCB; /* Forward reference */
|
||||
EXTERN int net_checksd(FAR _TCB *tcb, int fd, int oflags);
|
||||
|
||||
/* net_sockets.c *************************************************************/
|
||||
/* There interfaces are called only from OS scheduling and iniialization logic
|
||||
* under sched/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue