ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.3/include/rlimits.h
Revision: 31
Committed: Sun Oct 2 20:34:05 2005 UTC (20 years, 9 months ago) by knight
Content type: text/x-chdr
Original Path: ircd-hybrid/include/rlimits.h
File size: 703 byte(s)
Log Message:
- Fix svn:keywords

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * rlimits.h: sidestep configure test for RLIMIT_* values.
4     *
5     * This code is in the public domain.
6     *
7 knight 31 * $Id$
8 adx 30 */
9    
10     #ifndef INCLUDED_rlimits_h
11     #define INCLUDED_rlimits_h
12    
13     #ifdef HAVE_SYS_RESOURCE_H
14     #include <sys/resource.h>
15    
16     /* This nest of #ifdefs is because not all 'cpp's support #elif */
17    
18     #ifdef RLIMIT_FDMAX
19     # define RLIMIT_FD_MAX RLIMIT_FDMAX
20     #else
21     # ifdef RLIMIT_NOFILE
22     # define RLIMIT_FD_MAX RLIMIT_NOFILE
23     # else
24     # ifdef RLIMIT_OPEN_MAX
25     # define RLIMIT_FD_MAX RLIMIT_OPEN_MAX
26     # else
27     # warning No file descriptor limit was found
28     # endif
29     # endif
30     #endif
31    
32     #endif /* HAVE_SYS_RESOURCE_H */
33    
34     #endif /* INCLUDED_rlimits_h */

Properties

Name Value
svn:eol-style native
svn:keywords "Id Revision"