~ubuntu-branches/ubuntu/oneiric/daemontools/oneiric

« back to all changes in this revision

Viewing changes to daemontools-0.76/src/fifo.c

  • Committer: Bazaar Package Importer
  • Author(s): Gerrit Pape
  • Date: 2008-04-16 21:20:38 UTC
  • Revision ID: james.westby@ubuntu.com-20080416212038-2ix54o7w5m8lpvni
Tags: upstream-0.76
ImportĀ upstreamĀ versionĀ 0.76

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Public domain. */
 
2
 
 
3
#include <sys/types.h>
 
4
#include <sys/stat.h>
 
5
#include "hasmkffo.h"
 
6
#include "fifo.h"
 
7
 
 
8
#ifdef HASMKFIFO
 
9
int fifo_make(const char *fn,int mode) { return mkfifo(fn,mode); }
 
10
#else
 
11
int fifo_make(const char *fn,int mode) { return mknod(fn,S_IFIFO | mode,0); }
 
12
#endif