fifo.c
author tomas@localhost
Thu, 01 Nov 2007 14:46:11 +0100
changeset 0 c045670f36e9
permissions -rw-r--r--
Imported queue-fix-1.4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     1
#include <sys/types.h>
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     2
#include <sys/stat.h>
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     3
#include "hasmkffo.h"
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     4
#include "fifo.h"
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     5
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     6
#ifdef HASMKFIFO
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     7
int fifo_make(fn,mode) char *fn; int mode; { return mkfifo(fn,mode); }
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     8
#else
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     9
int fifo_make(fn,mode) char *fn; int mode; { return mknod(fn,S_IFIFO | mode,0); }
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    10
#endif