summaryrefslogtreecommitdiffstats
path: root/sys/sys/pipe.h
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2012-02-23 18:37:30 +0000
committerkmacy <kmacy@FreeBSD.org>2012-02-23 18:37:30 +0000
commita5c27d1ee09335bcd4404b5178206c7ce94ecf3e (patch)
tree8bf54dce4a89197401de4325a0cf13b1ffdf3ded /sys/sys/pipe.h
parenta99e9d281db6624cf9b88f07759a77f7b2d96a33 (diff)
downloadFreeBSD-src-a5c27d1ee09335bcd4404b5178206c7ce94ecf3e.zip
FreeBSD-src-a5c27d1ee09335bcd4404b5178206c7ce94ecf3e.tar.gz
merge pipe and fifo implementations
Also reviewed by: jhb, jilles (initial revision) Tested by: pho, jilles Submitted by: gianni Reviewed by: bde
Diffstat (limited to 'sys/sys/pipe.h')
-rw-r--r--sys/sys/pipe.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/pipe.h b/sys/sys/pipe.h
index 20b1092..36e3021 100644
--- a/sys/sys/pipe.h
+++ b/sys/sys/pipe.h
@@ -57,6 +57,7 @@
* See sys_pipe.c for info on what these limits mean.
*/
extern long maxpipekva;
+extern struct fileops pipeops;
/*
* Pipe buffer information.
@@ -94,6 +95,7 @@ struct pipemapping {
#define PIPE_LWANT 0x200 /* Process wants exclusive access to pointers/data. */
#define PIPE_DIRECTW 0x400 /* Pipe direct write active. */
#define PIPE_DIRECTOK 0x800 /* Direct mode ok. */
+#define PIPE_NAMED 0x1000 /* Is a named pipe. */
/*
* Per-pipe data structure.
@@ -138,5 +140,7 @@ struct pipepair {
#define PIPE_UNLOCK(pipe) mtx_unlock(PIPE_MTX(pipe))
#define PIPE_LOCK_ASSERT(pipe, type) mtx_assert(PIPE_MTX(pipe), (type))
+void pipe_dtor(struct pipe *dpipe);
+int pipe_named_ctor(struct pipe **ppipe, struct thread *td);
#endif /* !_SYS_PIPE_H_ */
OpenPOWER on IntegriCloud