1 /***********************************************************************/
5 /* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
7 /* Copyright 1996 Institut National de Recherche en Informatique et */
8 /* en Automatique. All rights reserved. This file is distributed */
9 /* under the terms of the GNU Library General Public License, with */
10 /* the special exception on linking described in file ../../LICENSE. */
12 /***********************************************************************/
18 #include "unixsupport.h"
22 #include "socketaddr.h"
24 CAMLprim value
unix_bind(value socket
, value address
)
27 union sock_addr_union addr
;
28 socklen_param_type addr_len
;
30 get_sockaddr(address
, &addr
, &addr_len
);
31 ret
= bind(Int_val(socket
), &addr
.s_gen
, addr_len
);
32 if (ret
== -1) uerror("bind", Nothing
);
38 CAMLprim value
unix_bind(value socket
, value address
)
39 { invalid_argument("bind not implemented"); }