diff options
author | Damien Doligez <damien.doligez-inria.fr> | 1998-10-26 19:19:32 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 1998-10-26 19:19:32 +0000 |
commit | 3be947947e3249a9b362fc790d377e43c4108a62 (patch) | |
tree | fa0c0fbdd5b3148f926e2f7f15090f7bd7d9a44d /otherlibs/unix/wait.c | |
parent | 59cb8750d21154c767d7224cd0f726b5da62d59b (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/wait.c')
-rw-r--r-- | otherlibs/unix/wait.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/otherlibs/unix/wait.c b/otherlibs/unix/wait.c index 75151a1f5..3acbbdff7 100644 --- a/otherlibs/unix/wait.c +++ b/otherlibs/unix/wait.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. */ /* */ /***********************************************************************/ @@ -39,19 +39,19 @@ static value alloc_process_status(int pid, int status) value st, res; if (WIFEXITED(status)) { - st = alloc(1, TAG_WEXITED); + st = alloc_small(1, TAG_WEXITED); Field(st, 0) = Val_int(WEXITSTATUS(status)); } else if (WIFSTOPPED(status)) { - st = alloc(1, TAG_WSTOPPED); + st = alloc_small(1, TAG_WSTOPPED); Field(st, 0) = Val_int(WSTOPSIG(status)); } else { - st = alloc(1, TAG_WSIGNALED); + st = alloc_small(1, TAG_WSIGNALED); Field(st, 0) = Val_int(WTERMSIG(status)); } Begin_root (st); - res = alloc_tuple(2); + res = alloc_small(2, 0); Field(res, 0) = Val_int(pid); Field(res, 1) = st; End_roots(); |