Need double escape
[ACE_TAO.git] / ACE / ace / os_include / os_stropts.h
blob7b641bee9da4bcb5c329389ac35cd922dd5ac018
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file os_stropts.h
7 * STREAMS interface (STREAMS)
9 * @author Don Hinton <dhinton@dresystems.com>
10 * @author This code was originally in various places including ace/OS.h.
12 //=============================================================================
14 #ifndef ACE_OS_INCLUDE_OS_STROPTS_H
15 #define ACE_OS_INCLUDE_OS_STROPTS_H
17 #include /**/ "ace/pre.h"
19 #include /**/ "ace/config-all.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 # pragma once
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 #include "ace/os_include/os_unistd.h"
27 #if !defined (ACE_LACKS_SYS_IOCTL_H)
28 # include /**/ <sys/ioctl.h>
29 #endif /* !ACE_LACKS_SYS_IOCTL_H */
31 #if defined (ACE_HAS_SYS_FILIO_H)
32 # include /**/ <sys/filio.h>
33 #endif /* ACE_HAS_SYS_FILIO_H */
35 #if defined (ACE_HAS_SYS_SOCKIO_H)
36 # include /**/ <sys/sockio.h>
37 #endif /* ACE_HAS_SOCKIO_H */
39 #if !defined (ACE_LACKS_STROPTS_H)
40 # include /**/ <stropts.h>
41 #endif /* !ACE_LACKS_STROPTS_H */
43 #if defined (ACE_VXWORKS)
44 // for ioctl()
45 # include /**/ <ioLib.h>
46 #endif /* ACE_VXWORKS */
48 // Place all additions (especially function declarations) within extern "C" {}
49 #ifdef __cplusplus
50 extern "C"
52 #endif /* __cplusplus */
54 #if defined (ACE_LACKS_STRRECVFD)
55 struct strrecvfd { int dummy; };
56 #endif /* ACE_LACKS_STRRECVFD */
58 # if !defined (SIOCGIFBRDADDR)
59 # define SIOCGIFBRDADDR 0
60 # endif /* SIOCGIFBRDADDR */
62 # if !defined (SIOCGIFADDR)
63 # define SIOCGIFADDR 0
64 # endif /* SIOCGIFADDR */
66 # if !defined (SIOCGIFCONF)
67 # define SIOCGIFCONF 0
68 # endif /* SIOCGIFCONF */
70 # if !defined (SIOCGIFFLAGS)
71 # define SIOCGIFFLAGS 0
72 # endif /* SIOCGIFFLAGS */
74 # if !defined (SIOCGIFHWADDR)
75 # define SIOCGIFHWADDR 0
76 # endif /* SIOCGIFHWADDR */
78 # if !defined (ACE_HAS_STRBUF_T)
79 struct strbuf
81 /// No. of bytes in buffer.
82 int maxlen;
83 /// No. of bytes returned.
84 int len;
85 /// Pointer to data.
86 void *buf;
88 # endif /* ACE_HAS_STRBUF_T */
90 // These prototypes are chronically lacking from many versions of UNIX.
91 #if !defined (ACE_WIN32) && !defined (ACE_HAS_ISASTREAM_PROTOTYPE)
92 int isastream (int);
93 #endif /* !ACE_WIN32 && ACE_HAS_ISASTREAM_PROTOTYPE */
95 #ifdef __cplusplus
97 #endif /* __cplusplus */
99 #include /**/ "ace/post.h"
100 #endif /* ACE_OS_INCLUDE_OS_STROPTS_H */