summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-06-02 15:05:48 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-06-02 15:05:48 +0000
commit971830b005e76311a0950d26f6862997c892e76a (patch)
tree599f441faca90309ec3f48698ba5491b0a7017c7 /nuttx/include
parent6f39c643ac7af0880f49f7673307053db11218e9 (diff)
downloadpx4-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.h8
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/