aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/pipe.h
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-10-19 13:54:31 +0300
committerCem Keylan <cem@ckyln.com>2020-10-19 13:54:31 +0300
commit317043010879767bc6a3bef6cbec0c5f300d1ce0 (patch)
tree4bb7c8cd59acb28c4c21eea06cb653f7b82d5aeb /sys/sys/pipe.h
parent54d853eaccae1f4f2e04ae70d79e34cfef86bf67 (diff)
downloadotools-317043010879767bc6a3bef6cbec0c5f300d1ce0.tar.gz
sys: update to 6.8
Diffstat (limited to 'sys/sys/pipe.h')
-rw-r--r--sys/sys/pipe.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sys/pipe.h b/sys/sys/pipe.h
index d23f266..72822aa 100644
--- a/sys/sys/pipe.h
+++ b/sys/sys/pipe.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pipe.h,v 1.24 2020/01/24 11:07:41 anton Exp $ */
+/* $OpenBSD: pipe.h,v 1.27 2020/06/29 18:23:18 anton Exp $ */
/*
* Copyright (c) 1996 John S. Dyson
@@ -67,6 +67,8 @@ struct pipebuf {
#define PIPE_LOCK 0x100 /* Thread has exclusive I/O access. */
#define PIPE_LWANT 0x200 /* Thread wants exclusive I/O access. */
+struct pipe_pair;
+
/*
* Per-pipe data structure.
* Two of these are linked together to produce bi-directional pipes.
@@ -85,6 +87,7 @@ struct pipe {
struct timespec pipe_ctime; /* [I] time of status change */
struct sigio_ref pipe_sigio; /* [S] async I/O registration */
struct pipe *pipe_peer; /* [p] link with other direction */
+ struct pipe_pair *pipe_pair; /* [I] pipe storage */
u_int pipe_state; /* [p] pipe status info */
int pipe_busy; /* [p] # readers/writers */
};