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/shutdown.c
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : monnier 249 /* shutdown.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-c.h"
11 :     #include "cfun-proto-list.h"
12 :    
13 :     /* _ml_Sock_shutdown : (sock * int) -> unit
14 :     */
15 :     ml_val_t _ml_Sock_shutdown (ml_state_t *msp, ml_val_t arg)
16 :     {
17 :     if (shutdown (REC_SELINT(arg, 0), REC_SELINT(arg, 1)) < 0)
18 :     return RAISE_SYSERR(msp, sts);
19 :     else
20 :     return ML_unit;
21 :    
22 :     } /* end of _ml_Sock_shutdown */

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