diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-02 15:05:48 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-02 15:05:48 +0000 |
commit | 971830b005e76311a0950d26f6862997c892e76a (patch) | |
tree | 599f441faca90309ec3f48698ba5491b0a7017c7 /nuttx/include | |
parent | 6f39c643ac7af0880f49f7673307053db11218e9 (diff) | |
download | px4-nuttx-971830b005e76311a0950d26f6862997c892e76a.tar.gz px4-nuttx-971830b005e76311a0950d26f6862997c892e76a.tar.bz2 px4-nuttx-971830b005e76311a0950d26f6862997c892e76a.zip |
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
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/net.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/net.h b/nuttx/include/nuttx/net.h index 62b2e1673..1d514e888 100644 --- a/nuttx/include/nuttx/net.h +++ b/nuttx/include/nuttx/net.h @@ -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/ |