Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/runtime/c-libs/smlnj-sockets/getnetbyaddr.c
ViewVC logotype

View of /sml/trunk/src/runtime/c-libs/smlnj-sockets/getnetbyaddr.c

Parent Directory Parent Directory | Revision Log Revision Log

Revision 1489 - (download) (as text) (annotate)
Tue May 11 19:31:06 2004 UTC (15 years, 6 months ago) by mblume
File size: 923 byte(s)
added missing socket-functionality for win32
/* getnetbyaddr.c
 * COPYRIGHT (c) 1995 AT&T Bell Laboratories.

#include "sockets-osdep.h"
#include "ml-base.h"
#include "ml-values.h"
#include "ml-objects.h"
#include "ml-c.h"
#include "cfun-proto-list.h"
#include "sock-util.h"

#if defined(__CYGWIN32__)
#undef getnetbyaddr
#define getnetbyaddr(x,y) NULL

/* _ml_NetDB_getnetbyaddr
 *     : (sysword * addr_family) -> (string * string list * addr_family * sysword) option
ml_val_t _ml_NetDB_getnetbyaddr (ml_state_t *msp, ml_val_t arg)
#if defined(OPSYS_WIN32)
  /* FIXME:  getnetbyaddr() does not seem to exist under Windows.  What is
     the equivalent? */
  return RAISE_ERROR(msp, "<getnetbyaddr not implemented>");
    unsigned long   net = REC_SELWORD(arg, 0);
    int		    type = REC_SELINT(arg, 1);

    return _util_NetDB_mknetent (msp, getnetbyaddr(net, type));
} /* end of _ml_NetDB_getnetbyaddr */

ViewVC Help
Powered by ViewVC 1.0.0