Mercurial > hg > xemacs-beta
comparison src/sysproc.h @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 Boston, MA 02111-1307, USA. */ | 19 Boston, MA 02111-1307, USA. */ |
20 | 20 |
21 /* Synched up with: Not really in FSF. */ | 21 /* Synched up with: Not really in FSF. */ |
22 | 22 |
23 #ifndef INCLUDED_sysproc_h_ | |
24 #define INCLUDED_sysproc_h_ | |
25 | |
26 #ifdef HAVE_VFORK_H | 23 #ifdef HAVE_VFORK_H |
27 # include <vfork.h> | 24 # include <vfork.h> |
28 #endif | 25 #endif |
29 | 26 |
30 #include "systime.h" /* necessary for sys/resource.h; also gets the | 27 #include "systime.h" /* necessary for sys/resource.h; also gets the |
31 FD_* defines on some systems. */ | 28 FD_* defines on some systems. */ |
32 #ifndef WIN32_NATIVE | 29 #ifndef WINDOWSNT |
33 #include <sys/resource.h> | 30 #include <sys/resource.h> |
34 #endif | 31 #endif |
35 | 32 |
36 #if !defined (NO_SUBPROCESSES) | 33 #if !defined (NO_SUBPROCESSES) |
37 | 34 |
38 #ifdef HAVE_SOCKETS /* TCP connection support, if kernel can do it */ | 35 #ifdef HAVE_SOCKETS /* TCP connection support, if kernel can do it */ |
39 # include <sys/types.h> /* AJK */ | 36 # include <sys/types.h> /* AJK */ |
40 # ifndef WIN32_NATIVE | 37 # include <sys/socket.h> |
41 # include <sys/socket.h> | 38 # include <netdb.h> |
42 # include <netdb.h> | 39 # include <netinet/in.h> |
43 # include <netinet/in.h> | 40 # include <arpa/inet.h> |
44 # include <arpa/inet.h> | 41 #ifdef NEED_NET_ERRNO_H |
45 # endif | 42 #include <net/errno.h> |
46 # ifdef NEED_NET_ERRNO_H | 43 #endif /* NEED_NET_ERRNO_H */ |
47 # include <net/errno.h> | |
48 # endif /* NEED_NET_ERRNO_H */ | |
49 #elif defined (SKTPAIR) | 44 #elif defined (SKTPAIR) |
50 # include <sys/socket.h> | 45 # include <sys/socket.h> |
51 #endif /* HAVE_SOCKETS */ | 46 #endif /* HAVE_SOCKETS */ |
52 | |
53 #ifdef WIN32_NATIVE | |
54 /* Note: winsock.h already included in systime.h above */ | |
55 /* map winsock error codes to standard names */ | |
56 #define EWOULDBLOCK WSAEWOULDBLOCK | |
57 #define EINPROGRESS WSAEINPROGRESS | |
58 #define EALREADY WSAEALREADY | |
59 #define ENOTSOCK WSAENOTSOCK | |
60 #define EDESTADDRREQ WSAEDESTADDRREQ | |
61 #define EMSGSIZE WSAEMSGSIZE | |
62 #define EPROTOTYPE WSAEPROTOTYPE | |
63 #define ENOPROTOOPT WSAENOPROTOOPT | |
64 #define EPROTONOSUPPORT WSAEPROTONOSUPPORT | |
65 #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT | |
66 #define EOPNOTSUPP WSAEOPNOTSUPP | |
67 #define EPFNOSUPPORT WSAEPFNOSUPPORT | |
68 #define EAFNOSUPPORT WSAEAFNOSUPPORT | |
69 #define EADDRINUSE WSAEADDRINUSE | |
70 #define EADDRNOTAVAIL WSAEADDRNOTAVAIL | |
71 #define ENETDOWN WSAENETDOWN | |
72 #define ENETUNREACH WSAENETUNREACH | |
73 #define ENETRESET WSAENETRESET | |
74 #define ECONNABORTED WSAECONNABORTED | |
75 #define ECONNRESET WSAECONNRESET | |
76 #define ENOBUFS WSAENOBUFS | |
77 #define EISCONN WSAEISCONN | |
78 #define ENOTCONN WSAENOTCONN | |
79 #define ESHUTDOWN WSAESHUTDOWN | |
80 #define ETOOMANYREFS WSAETOOMANYREFS | |
81 #define ETIMEDOUT WSAETIMEDOUT | |
82 #define ECONNREFUSED WSAECONNREFUSED | |
83 #define ELOOP WSAELOOP | |
84 /* #define ENAMETOOLONG WSAENAMETOOLONG */ | |
85 #define EHOSTDOWN WSAEHOSTDOWN | |
86 #define EHOSTUNREACH WSAEHOSTUNREACH | |
87 /* #define ENOTEMPTY WSAENOTEMPTY */ | |
88 #define EPROCLIM WSAEPROCLIM | |
89 #define EUSERS WSAEUSERS | |
90 #define EDQUOT WSAEDQUOT | |
91 #define ESTALE WSAESTALE | |
92 #define EREMOTE WSAEREMOTE | |
93 #endif /* WIN32_NATIVE */ | |
94 | 47 |
95 /* On some systems, e.g. DGUX, inet_addr returns a 'struct in_addr'. */ | 48 /* On some systems, e.g. DGUX, inet_addr returns a 'struct in_addr'. */ |
96 #ifdef HAVE_BROKEN_INET_ADDR | 49 #ifdef HAVE_BROKEN_INET_ADDR |
97 # define IN_ADDR struct in_addr | 50 # define IN_ADDR struct in_addr |
98 # define NUMERIC_ADDR_ERROR (numeric_addr.s_addr == -1) | 51 # define NUMERIC_ADDR_ERROR (numeric_addr.s_addr == -1) |
143 | 96 |
144 #endif /* no FD_SET */ | 97 #endif /* no FD_SET */ |
145 | 98 |
146 int poll_fds_for_input (SELECT_TYPE mask); | 99 int poll_fds_for_input (SELECT_TYPE mask); |
147 | 100 |
148 #endif /* INCLUDED_sysproc_h_ */ | 101 #ifdef MSDOS |
102 /* #include <process.h> */ | |
103 /* Damn that local process.h! Instead we can define P_WAIT ourselves. */ | |
104 #define P_WAIT 1 | |
105 #endif |