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

SCM Repository

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

Annotation of /sml/trunk/src/runtime/c-libs/smlnj-sockets/gethostbyaddr.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 249 - (view) (download) (as text)
Original Path: sml/branches/SMLNJ/src/runtime/c-libs/smlnj-sockets/gethostbyaddr.c

1 : monnier 249 /* gethostbyaddr.c
2 :     *
3 :     * COPYRIGHT (c) 1995 AT&T Bell Laboratories.
4 :     */
5 :    
6 :     #include "ml-unixdep.h"
7 :     #include "sockets-osdep.h"
8 :     #include INCLUDE_TYPES_H
9 :     #include INCLUDE_SOCKET_H
10 :     #include INCLUDE_IN_H
11 :     #include <netdb.h>
12 :     #include "ml-base.h"
13 :     #include "ml-values.h"
14 :     #include "ml-objects.h"
15 :     #include "ml-c.h"
16 :     #include "cfun-proto-list.h"
17 :     #include "sock-util.h"
18 :    
19 :     /* _ml_NetDB_gethostbyaddr
20 :     * : addr -> (string * string list * addr_family * addr list) option
21 :     */
22 :     ml_val_t _ml_NetDB_gethostbyaddr (ml_state_t *msp, ml_val_t arg)
23 :     {
24 :     ASSERT (sizeof(struct in_addr) == OBJ_LEN(arg));
25 :    
26 :     return _util_NetDB_mkhostent (
27 :     msp,
28 :     gethostbyaddr (STR_MLtoC(arg), sizeof(struct in_addr), AF_INET));
29 :    
30 :     } /* end of _ml_NetDB_gethostbyaddr */

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0