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 /***********************************************************************/
14 /* $Id: mkfifo.c 6824 2005-03-24 17:20:54Z doligez $ */
16 #include <sys/types.h>
20 #include "unixsupport.h"
24 CAMLprim value unix_mkfifo(value path, value mode)
26 if (mkfifo(String_val(path), Int_val(mode)) == -1)
27 uerror("mkfifo", path);
33 #include <sys/types.h>
38 CAMLprim value unix_mkfifo(value path, value mode)
40 if (mknod(String_val(path), (Int_val(mode) & 07777) | S_IFIFO, 0) == -1)
41 uerror("mkfifo", path);
47 CAMLprim value unix_mkfifo(value path, value mode)
49 invalid_argument("mkfifo not implemented");