summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/select.c
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>1998-10-26 19:19:32 +0000
committerDamien Doligez <damien.doligez-inria.fr>1998-10-26 19:19:32 +0000
commit3be947947e3249a9b362fc790d377e43c4108a62 (patch)
treefa0c0fbdd5b3148f926e2f7f15090f7bd7d9a44d /otherlibs/unix/select.c
parent59cb8750d21154c767d7224cd0f726b5da62d59b (diff)
nouvelles fonctions alloc/alloc_small
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2134 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/select.c')
-rw-r--r--otherlibs/unix/select.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/otherlibs/unix/select.c b/otherlibs/unix/select.c
index 5cbf42ca1..9ae187ee0 100644
--- a/otherlibs/unix/select.c
+++ b/otherlibs/unix/select.c
@@ -5,7 +5,7 @@
/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
/* */
/* Copyright 1996 Institut National de Recherche en Informatique et */
-/* Automatique. Distributed only by permission. */
+/* en Automatique. Distributed only by permission. */
/* */
/***********************************************************************/
@@ -58,7 +58,7 @@ static value fdset_to_fdlist(file_descr_set *fdset)
Begin_root(res);
for (i = FD_SETSIZE - 1; i >= 0; i--) {
if (FD_ISSET(i, fdset)) {
- value newres = alloc(2, 0);
+ value newres = alloc_small(2, 0);
Field(newres, 0) = Val_int(i);
Field(newres, 1) = res;
res = newres;
@@ -97,7 +97,7 @@ value unix_select(value readfds, value writefds, value exceptfds, value timeout)
read_list = fdset_to_fdlist(&read);
write_list = fdset_to_fdlist(&write);
except_list = fdset_to_fdlist(&except);
- res = alloc_tuple(3);
+ res = alloc_small(3, 0);
Field(res, 0) = read_list;
Field(res, 1) = write_list;
Field(res, 2) = except_list;