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:
patacongo
2011-06-02 15:05:48 +00:00
parent 3867f05f0f
commit 45acebc2f9
8 changed files with 246 additions and 46 deletions
+8
View File
@@ -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/