summaryrefslogtreecommitdiff
path: root/ghc/includes/stgio.h
diff options
context:
space:
mode:
authorpartain <unknown>1996-06-27 16:00:09 +0000
committerpartain <unknown>1996-06-27 16:00:09 +0000
commita7e6cdbfc4f27c2e0ab9c12ebe6431c246c74c6d (patch)
tree07b816ec8e1aa3887a068287968240e4516d6f21 /ghc/includes/stgio.h
parent26741ec416bae2c502ef00a2ba0e79050a32cb67 (diff)
downloadhaskell-a7e6cdbfc4f27c2e0ab9c12ebe6431c246c74c6d.tar.gz
[project @ 1996-06-27 15:55:53 by partain]
partain 1.3 changes to 960626
Diffstat (limited to 'ghc/includes/stgio.h')
-rw-r--r--ghc/includes/stgio.h37
1 files changed, 36 insertions, 1 deletions
diff --git a/ghc/includes/stgio.h b/ghc/includes/stgio.h
index 972b96eb93..26f09ee3b5 100644
--- a/ghc/includes/stgio.h
+++ b/ghc/includes/stgio.h
@@ -17,7 +17,7 @@ StgInt createDirectory PROTO((StgByteArray));
char * strDup PROTO((const char *));
int setenviron PROTO((char **));
int copyenv (STG_NO_ARGS);
-int setenv PROTO((char *));
+int _setenv PROTO((char *));
int delenv PROTO((char *));
/* errno.lc */
@@ -122,4 +122,39 @@ StgAddr toClockSec PROTO((StgInt, StgInt, StgInt, StgInt, StgInt, StgInt, StgInt
/* writeFile.lc */
StgInt writeFile PROTO((StgAddr, StgAddr, StgInt));
+/* SOCKET THINGS ALL TOGETHER: */
+
+#if 0
+LATER
+/* acceptSocket.lc */
+StgInt acceptSocket(I_ sockfd, A_ peer, A_ addrlen);
+
+/* bindSocket.lc */
+StgInt bindSocket(I_ sockfd, A_ myaddr, I_ addrlen, I_ isUnixDomain);
+
+/* connectSocket.lc */
+StgInt connectSocket(I_ sockfd, A_ servaddr, I_ addrlen, I_ isUnixDomain);
+
+/* createSocket.lc */
+StgInt createSocket(I_ family, I_ type, I_ protocol);
+
+/* getPeerName.lc */
+StgInt getPeerName(int sockfd, struct sockaddr *peer, int *namelen);
+
+/* getSockName.lc */
+StgInt getSockName(int sockfd, struct sockaddr *peer, int *namelen);
+
+/* listenSocket.lc */
+StgInt listenSocket(int sockfd, int backlog);
+
+/* readDescriptor.lc */
+StgInt readDescriptor(int fd, char *buf, int nbytes);
+
+/* shutdownSocket.lc */
+StgInt shutdownSocket(int sockfd, int how);
+
+/* writeDescriptor.lc */
+StgInt writeDescriptor(int fd, char *buf, int nbytes);
+#endif /* 0 */
+
#endif /* ! STGIO_H */