xref: /illumos-gate/usr/src/uts/common/sys/limits.h (revision 8e935259)
1*8e935259SBryan Cantrill /*
2*8e935259SBryan Cantrill  * This file and its contents are supplied under the terms of the
3*8e935259SBryan Cantrill  * Common Development and Distribution License ("CDDL"), version 1.0.
4*8e935259SBryan Cantrill  * You may only use this file in accordance with the terms of version
5*8e935259SBryan Cantrill  * 1.0 of the CDDL.
6*8e935259SBryan Cantrill  *
7*8e935259SBryan Cantrill  * A full copy of the text of the CDDL should have accompanied this
8*8e935259SBryan Cantrill  * source.  A copy of the CDDL is also available via the Internet at
9*8e935259SBryan Cantrill  * http://www.illumos.org/license/CDDL.
10*8e935259SBryan Cantrill  */
11*8e935259SBryan Cantrill /*
12*8e935259SBryan Cantrill  * Copyright 2015 Joyent, Inc.  All rights reserved.
13*8e935259SBryan Cantrill  */
14*8e935259SBryan Cantrill 
15*8e935259SBryan Cantrill #ifndef _SYS_LIMITS_H
16*8e935259SBryan Cantrill #define	_SYS_LIMITS_H
17*8e935259SBryan Cantrill 
18*8e935259SBryan Cantrill #ifdef	__cplusplus
19*8e935259SBryan Cantrill extern "C" {
20*8e935259SBryan Cantrill #endif
21*8e935259SBryan Cantrill 
22*8e935259SBryan Cantrill #define	IOV_MAX	1024
23*8e935259SBryan Cantrill 
24*8e935259SBryan Cantrill #ifdef _KERNEL
25*8e935259SBryan Cantrill #define	IOV_MAX_STACK	16	/* max. IOV on-stack allocation */
26*8e935259SBryan Cantrill #endif /* _KERNEL */
27*8e935259SBryan Cantrill 
28*8e935259SBryan Cantrill #ifdef	__cplusplus
29*8e935259SBryan Cantrill }
30*8e935259SBryan Cantrill #endif
31*8e935259SBryan Cantrill 
32*8e935259SBryan Cantrill #endif	/* _SYS_LIMITS_H */