xref: /freebsd/include/ulimit.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
1af8c0bceSMike Barcroft /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3e58eb3c4SPedro F. Giffuni  *
4af8c0bceSMike Barcroft  * Copyright (c) 2002 Kyle Martin <mkm@ieee.org>
5af8c0bceSMike Barcroft  * All rights reserved.
6af8c0bceSMike Barcroft  *
7af8c0bceSMike Barcroft  * Redistribution and use in source and binary forms, with or without
8af8c0bceSMike Barcroft  * modification, are permitted provided that the following conditions
9af8c0bceSMike Barcroft  * are met:
10af8c0bceSMike Barcroft  * 1. Redistributions of source code must retain the above copyright
11af8c0bceSMike Barcroft  *    notice, this list of conditions and the following disclaimer.
12af8c0bceSMike Barcroft  * 2. Redistributions in binary form must reproduce the above copyright
13af8c0bceSMike Barcroft  *    notice, this list of conditions and the following disclaimer in the
14af8c0bceSMike Barcroft  *    documentation and/or other materials provided with the distribution.
15af8c0bceSMike Barcroft  *
16af8c0bceSMike Barcroft  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17af8c0bceSMike Barcroft  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18af8c0bceSMike Barcroft  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19af8c0bceSMike Barcroft  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20af8c0bceSMike Barcroft  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21af8c0bceSMike Barcroft  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22af8c0bceSMike Barcroft  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23af8c0bceSMike Barcroft  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24af8c0bceSMike Barcroft  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25af8c0bceSMike Barcroft  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26af8c0bceSMike Barcroft  * SUCH DAMAGE.
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 
3791c6113bSTim J. Robbins __BEGIN_DECLS
38af8c0bceSMike Barcroft long	ulimit(int, ...);
3991c6113bSTim J. Robbins __END_DECLS
40af8c0bceSMike Barcroft 
41af8c0bceSMike Barcroft #endif /* !_ULIMIT_H_ */
42