| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: pipe.h,v 1.32 2009/12/20 09:36:06 dsl Exp $ */ | | 1 | /* $NetBSD: pipe.h,v 1.33 2016/01/22 23:38:45 dholland Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 1996 John S. Dyson | | 4 | * Copyright (c) 1996 John S. Dyson |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice immediately at the beginning of the file, without modification, | | 11 | * notice immediately at the beginning of the file, without modification, |
12 | * this list of conditions, and the following disclaimer. | | 12 | * this list of conditions, and the following disclaimer. |
13 | * 2. Redistributions in binary form must reproduce the above copyright | | 13 | * 2. Redistributions in binary form must reproduce the above copyright |
14 | * notice, this list of conditions and the following disclaimer in the | | 14 | * notice, this list of conditions and the following disclaimer in the |
| @@ -17,26 +17,27 @@ | | | @@ -17,26 +17,27 @@ |
17 | * John S. Dyson. | | 17 | * John S. Dyson. |
18 | * 4. This work was done expressly for inclusion into FreeBSD. Other use | | 18 | * 4. This work was done expressly for inclusion into FreeBSD. Other use |
19 | * is allowed if this notation is included. | | 19 | * is allowed if this notation is included. |
20 | * 5. Modifications may be freely made to this file if the above conditions | | 20 | * 5. Modifications may be freely made to this file if the above conditions |
21 | * are met. | | 21 | * are met. |
22 | * | | 22 | * |
23 | * $FreeBSD: src/sys/sys/pipe.h,v 1.18 2002/02/27 07:35:59 alfred Exp $ | | 23 | * $FreeBSD: src/sys/sys/pipe.h,v 1.18 2002/02/27 07:35:59 alfred Exp $ |
24 | */ | | 24 | */ |
25 | | | 25 | |
26 | #ifndef _SYS_PIPE_H_ | | 26 | #ifndef _SYS_PIPE_H_ |
27 | #define _SYS_PIPE_H_ | | 27 | #define _SYS_PIPE_H_ |
28 | | | 28 | |
29 | #include <sys/selinfo.h> /* for struct selinfo */ | | 29 | #include <sys/selinfo.h> /* for struct selinfo */ |
| | | 30 | #include <sys/time.h> /* for struct timespec */ |
30 | | | 31 | |
31 | #include <uvm/uvm_extern.h> | | 32 | #include <uvm/uvm_extern.h> |
32 | | | 33 | |
33 | /* | | 34 | /* |
34 | * Pipe buffer size, keep moderate in value, pipes take kva space. | | 35 | * Pipe buffer size, keep moderate in value, pipes take kva space. |
35 | */ | | 36 | */ |
36 | #ifndef PIPE_SIZE | | 37 | #ifndef PIPE_SIZE |
37 | #define PIPE_SIZE 16384 | | 38 | #define PIPE_SIZE 16384 |
38 | #endif | | 39 | #endif |
39 | | | 40 | |
40 | #ifndef BIG_PIPE_SIZE | | 41 | #ifndef BIG_PIPE_SIZE |
41 | #define BIG_PIPE_SIZE (4*PIPE_SIZE) | | 42 | #define BIG_PIPE_SIZE (4*PIPE_SIZE) |
42 | #endif | | 43 | #endif |