ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/include/rlimits.h
Revision: 30
Committed: Sun Oct 2 20:03:27 2005 UTC (18 years, 5 months ago) by adx
Content type: text/x-chdr
Original Path: ircd-hybrid/include/rlimits.h
File size: 749 byte(s)
Log Message:
- imported sources
- can be moved later according to the directory/branching scheme,
  but we need the svn up

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     * $Id: rlimits.h,v 7.2 2005/07/25 04:52:36 adx Exp $
8     */
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"