xref: /titanic_51/usr/src/cmd/ast/libshell/sparc/FEATURE/poll (revision b4dd7d09880f14016feece03929a224eca1cf39a)
1
2/* : : generated by proto : : */
3/* : : generated from contrib/ast/src/cmd/ksh93/features/poll by iffe version 2012-07-17 : : */
4#ifndef _def_poll_ksh93
5#if !defined(__PROTO__)
6#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
7#    if defined(__cplusplus)
8#      define __LINKAGE__	"C"
9#    else
10#      define __LINKAGE__
11#    endif
12#    define __STDARG__
13#    define __PROTO__(x)	x
14#    define __OTORP__(x)
15#    define __PARAM__(n,o)	n
16#    if !defined(__STDC__) && !defined(__cplusplus)
17#      if !defined(c_plusplus)
18#      	define const
19#      endif
20#      define signed
21#      define void		int
22#      define volatile
23#      define __V_		char
24#    else
25#      define __V_		void
26#    endif
27#  else
28#    define __PROTO__(x)	()
29#    define __OTORP__(x)	x
30#    define __PARAM__(n,o)	o
31#    define __LINKAGE__
32#    define __V_		char
33#    define const
34#    define signed
35#    define void		int
36#    define volatile
37#  endif
38#  define __MANGLE__	__LINKAGE__
39#  if defined(__cplusplus) || defined(c_plusplus)
40#    define __VARARG__	...
41#  else
42#    define __VARARG__
43#  endif
44#  if defined(__STDARG__)
45#    define __VA_START__(p,a)	va_start(p,a)
46#  else
47#    define __VA_START__(p,a)	va_start(p)
48#  endif
49#  if !defined(__INLINE__)
50#    if defined(__cplusplus)
51#      define __INLINE__	extern __MANGLE__ inline
52#    else
53#      if defined(_WIN32) && !defined(__GNUC__)
54#      	define __INLINE__	__inline
55#      endif
56#    endif
57#  endif
58#endif
59#if !defined(__LINKAGE__)
60#define __LINKAGE__		/* 2004-08-11 transition */
61#endif
62
63#define _def_poll_ksh93	1
64#define _sys_types	1	/* #include <sys/types.h> ok */
65#define _LIB_nsl	1	/* -lnsl is a library */
66#define _LIB_socket	1	/* -lsocket is a library */
67#define _hdr_poll	1	/* #include <poll.h> ok */
68#define _hdr_netinet_in	1	/* #include <netinet/in.h> ok */
69#define _sys_poll	1	/* #include <sys/poll.h> ok */
70#define _sys_socket	1	/* #include <sys/socket.h> ok */
71#define _lib_select	1	/* select() in default lib(s) */
72#define _lib_poll	1	/* poll() in default lib(s) */
73#define _lib_socket	1	/* socket() in default lib(s) */
74#define _lib_htons	1	/* htons() in default lib(s) */
75#define _lib_htonl	1	/* htonl() in default lib(s) */
76#define _hdr_netdb	1	/* #include <netdb.h> ok */
77#define _lib_getaddrinfo	1	/* getaddrinfo() in default lib(s) */
78#define _hdr_time	1	/* #include <time.h> ok */
79#define _sys_time	1	/* #include <sys/time.h> ok */
80#define _sys_times	1	/* #include <sys/times.h> ok */
81#define _hdr_stddef	1	/* #include <stddef.h> ok */
82#define _hdr_stdlib	1	/* #include <stdlib.h> ok */
83#define _sys_select	1	/* #include <sys/select.h> ok */
84#define _typ_fd_set	1	/* fd_set is a type */
85#define _hdr_unistd	1	/* #include <unistd.h> ok */
86#define _typ_socklen_t	1	/* socklen_t is a type */
87
88#ifdef _lib_poll
89#   define poll _SYS_poll
90#else
91#   undef _hdr_poll
92#   undef _sys_poll
93#endif /* _lib_poll */
94#ifdef _hdr_poll
95#    include    <poll.h>
96#else
97#   ifdef _sys_poll
98#	include    <sys/poll.h>
99#   endif /* _sys_poll */
100#endif /* _hdr_poll */
101#ifdef _lib_poll
102#   undef poll
103    extern __MANGLE__ int poll __PROTO__((struct pollfd*,unsigned long,int));
104#endif /* _lib_poll */
105#ifdef _lib_select
106#   ifndef FD_ZERO
107#	define FD_ZERO(x)	(*(x)=0)
108#   endif /* FD_ZERO */
109#   ifndef FD_SET
110#	define FD_SET(n,x)	(*(x)|=(1L<<(n)))
111#   endif /* FD_SET */
112#   ifndef _typ_fd_set
113	typedef long fd_set;
114#   endif /*_typ_fd_set */
115#endif /* _lib_select */
116
117#endif
118