X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Flib%2Fmisc%2Fcbits%2FrecvFrom.c;h=c12c1b0c49463c63bc856374255a1b0bd7e907db;hb=438596897ebbe25a07e1c82085cfbc5bdb00f09e;hp=f345fd6a9aca464fd357b183e712cbe4e1013bd7;hpb=19a4b25b9ecd4a05e784110e9429e67d5643f2c2;p=ghc-hetmet.git diff --git a/ghc/lib/misc/cbits/recvFrom.c b/ghc/lib/misc/cbits/recvFrom.c index f345fd6..c12c1b0 100644 --- a/ghc/lib/misc/cbits/recvFrom.c +++ b/ghc/lib/misc/cbits/recvFrom.c @@ -1,22 +1,18 @@ -#if 0 -% -% (c) The GRASP/AQUA Project, Glasgow University, 1998 -% -\subsection[recvFrom.lc]{recvFrom run-time support} - -\begin{code} -#endif +/* ----------------------------------------------------------------------------- + * $Id: recvFrom.c,v 1.3 1998/12/02 13:26:46 simonm Exp $ + * + * recvFrom run-time support + * + * (c) The GHC Team 1998 + * -------------------------------------------------------------------------- */ #define NON_POSIX_SOURCE -#include "rtsdefs.h" +#include "Rts.h" #include "ghcSockets.h" +#include "stgio.h" StgInt -recvFrom__(fd, buf, nbytes, from) -StgInt fd; -StgAddr buf; -StgInt nbytes; -StgAddr from; +recvFrom__(StgInt fd, StgAddr buf, StgInt nbytes, StgAddr from) { StgInt count; int sz;