// Copyright (c) 2004 David Muse
// See the COPYING file for more information.

#ifndef RUDIMENTS_PIPE_H
#define RUDIMENTS_PIPE_H

#include <rudiments/private/pipe.h>

// create() calls ::pipe()
// read() methods read from filedes[0]
// write() methods write to filedes[1]

// wrap:
//      unistd.h - pipe(), pathconf()/fpathconf(): __POSIX_PIPE_BUF()

#ifdef RUDIMENTS_NAMESPACE
namespace rudiments {
#endif

class pipeprivate;

class pipe : public filedescriptor {
        public:

        #include <rudiments/private/pipe.h>
};

#ifdef RUDIMENTS_NAMESPACE
}
#endif

#endif