diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2001-08-28 14:47:48 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2001-08-28 14:47:48 +0000 |
commit | ddd99c7e5d2f0f8e7364e8521fa7e8308999344e (patch) | |
tree | 3c0158d035a52c0cf185c08c3288c3c76d6718d0 /otherlibs/unix/gethost.c | |
parent | c345611817d76ccc3bbd02db1f942774220739f9 (diff) |
Chargement dynamique de primitives C
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3677 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/gethost.c')
-rw-r--r-- | otherlibs/unix/gethost.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/unix/gethost.c b/otherlibs/unix/gethost.c index ca22e39b3..65d10595c 100644 --- a/otherlibs/unix/gethost.c +++ b/otherlibs/unix/gethost.c @@ -64,7 +64,7 @@ static value alloc_host_entry(struct hostent *entry) return res; } -value unix_gethostbyaddr(value a) /* ML */ +CAMLprim value unix_gethostbyaddr(value a) { uint32 adr; struct hostent * entry; @@ -76,7 +76,7 @@ value unix_gethostbyaddr(value a) /* ML */ return alloc_host_entry(entry); } -value unix_gethostbyname(value name) /* ML */ +CAMLprim value unix_gethostbyname(value name) { char hostname[256]; struct hostent * entry; @@ -91,10 +91,10 @@ value unix_gethostbyname(value name) /* ML */ #else -value unix_gethostbyaddr(value name) +CAMLprim value unix_gethostbyaddr(value name) { invalid_argument("gethostbyaddr not implemented"); } -value unix_gethostbyname(value name) +CAMLprim value unix_gethostbyname(value name) { invalid_argument("gethostbyname not implemented"); } #endif |