[project @ 1996-06-27 15:55:53 by partain]
[ghc-hetmet.git] / ghc / includes / ghcSockets.h
1 #ifndef GHC_SOCKETS_H
2 #define GHC_SOCKETS_H
3
4 #include <sys/types.h>
5 #include <sys/socket.h>
6 #include <sys/time.h>
7 #include <sys/fcntl.h>
8 #include <sys/uio.h>
9 #include <sys/un.h>
10 #include <netinet/in.h>
11 #include <arpa/inet.h>
12 #include <string.h>
13 #include <netdb.h>
14 #include <stdio.h>
15 #include <stdlib.h>
16 #include <ctype.h>
17 #include <unistd.h>
18
19 /* acceptSocket.lc */
20 StgInt  acceptSocket PROTO((StgInt, StgAddr, StgAddr));
21
22 /* bindSocket.lc */
23 StgInt  bindSocket PROTO((StgInt, StgAddr, StgInt, StgInt));
24
25 /* connectSocket.lc */
26 StgInt  connectSocket PROTO((StgInt, StgAddr, StgInt, StgInt));
27
28 /* createSocket.lc */
29 StgInt  createSocket PROTO((StgInt, StgInt, StgInt));
30
31 /* getSockName.lc */
32 StgInt  getSockName PROTO((StgInt, StgAddr, StgAddr));
33
34 /* getPeerName.lc */
35 StgInt  getPeerName PROTO((StgInt, StgAddr, StgAddr));
36
37 /* listenSocket.lc */
38 StgInt  listenSocket PROTO((StgInt, StgInt));
39
40 /* shutdownSocket.lc */
41 StgInt  shutdownSocket PROTO((StgInt, StgInt));
42
43 /* readDescriptor.lc */
44 StgInt  readDescriptor PROTO((StgInt, StgAddr, StgInt));
45
46 /* writeDescriptor.lc */
47 StgInt  writeDescriptor PROTO((StgInt, StgAddr, StgInt));
48
49
50 #endif /* !GHC_SOCKETS_H */