xref: /freebsd/include/ulimit.h (revision 86e1d4729fea89232dd77d7babb038bc38e9fdd8)
1af8c0bceSMike Barcroft /*-
2af8c0bceSMike Barcroft  * Copyright (c) 2002 Kyle Martin <mkm@ieee.org>
3af8c0bceSMike Barcroft  * All rights reserved.
4af8c0bceSMike Barcroft  *
5af8c0bceSMike Barcroft  * Redistribution and use in source and binary forms, with or without
6af8c0bceSMike Barcroft  * modification, are permitted provided that the following conditions
7af8c0bceSMike Barcroft  * are met:
8af8c0bceSMike Barcroft  * 1. Redistributions of source code must retain the above copyright
9af8c0bceSMike Barcroft  *    notice, this list of conditions and the following disclaimer.
10af8c0bceSMike Barcroft  * 2. Redistributions in binary form must reproduce the above copyright
11af8c0bceSMike Barcroft  *    notice, this list of conditions and the following disclaimer in the
12af8c0bceSMike Barcroft  *    documentation and/or other materials provided with the distribution.
13af8c0bceSMike Barcroft  *
14af8c0bceSMike Barcroft  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15af8c0bceSMike Barcroft  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16af8c0bceSMike Barcroft  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17af8c0bceSMike Barcroft  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18af8c0bceSMike Barcroft  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19af8c0bceSMike Barcroft  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20af8c0bceSMike Barcroft  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21af8c0bceSMike Barcroft  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22af8c0bceSMike Barcroft  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23af8c0bceSMike Barcroft  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24af8c0bceSMike Barcroft  * SUCH DAMAGE.
25af8c0bceSMike Barcroft  *
26af8c0bceSMike Barcroft  * $FreeBSD$
27af8c0bceSMike Barcroft  */
28af8c0bceSMike Barcroft 
29af8c0bceSMike Barcroft #ifndef _ULIMIT_H_
30af8c0bceSMike Barcroft #define	_ULIMIT_H_
31af8c0bceSMike Barcroft 
3291c6113bSTim J. Robbins #include <sys/cdefs.h>
3391c6113bSTim J. Robbins 
3486e1d472STim J. Robbins #define	UL_GETFSIZE	1
3586e1d472STim J. Robbins #define	UL_SETFSIZE	2
3686e1d472STim J. Robbins 
3786e1d472STim J. Robbins #if __BSD_VISIBLE
3886e1d472STim J. Robbins /*
3986e1d472STim J. Robbins  * The "F" was mistakenly omitted from the macro names in FreeBSD 5.0.
4086e1d472STim J. Robbins  * Do not use these names; they will be removed before 6.0.
4186e1d472STim J. Robbins  */
4286e1d472STim J. Robbins #define	UL_GETSIZE	UL_GETFSIZE
4386e1d472STim J. Robbins #define	UL_SETSIZE	UL_SETFSIZE
4486e1d472STim J. Robbins #endif
45af8c0bceSMike Barcroft 
4691c6113bSTim J. Robbins __BEGIN_DECLS
47af8c0bceSMike Barcroft long	ulimit(int, ...);
4891c6113bSTim J. Robbins __END_DECLS
49af8c0bceSMike Barcroft 
50af8c0bceSMike Barcroft #endif /* !_ULIMIT_H_ */
51