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/branches/blume-private-devel/src/runtime/c-libs/smlnj-sockets/bind.c
ViewVC logotype

Annotation of /sml/branches/blume-private-devel/src/runtime/c-libs/smlnj-sockets/bind.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1493 - (view) (download) (as text)

1 : monnier 249 /* bind.c
2 :     *
3 :     * COPYRIGHT (c) 1995 AT&T Bell Laboratories.
4 :     */
5 :    
6 :     #include "sockets-osdep.h"
7 :     #include INCLUDE_SOCKET_H
8 :     #include "ml-base.h"
9 :     #include "ml-values.h"
10 :     #include "ml-objects.h"
11 :     #include "ml-c.h"
12 :     #include "cfun-proto-list.h"
13 :    
14 :     /* _ml_Sock_bind : (sock * addr) -> unit
15 :     */
16 :     ml_val_t _ml_Sock_bind (ml_state_t *msp, ml_val_t arg)
17 :     {
18 :     int sock = REC_SELINT(arg, 0);
19 :     ml_val_t addr = REC_SEL(arg, 1);
20 :     int sts;
21 :    
22 : jhr 727 sts = bind (
23 :     sock,
24 :     GET_SEQ_DATAPTR(struct sockaddr, addr),
25 :     GET_SEQ_LEN(addr));
26 : monnier 249
27 :     CHK_RETURN_UNIT(msp, sts);
28 :    
29 :     } /* end of _ml_Sock_bind */

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