Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > a2ec39e13a221506f016c1e1a3abca12 > files > 73

ircd-hybrid-devel-7.2.3-6mdv2009.0.i586.rpm

/*
 *  ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
 *  rlimits.h: sidestep configure test for RLIMIT_* values.
 *
 *  This code is in the public domain.
 *
 *  $Id: rlimits.h 33 2005-10-02 20:50:00Z knight $
 */

#ifndef INCLUDED_rlimits_h
#define INCLUDED_rlimits_h

#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>

/* This nest of #ifdefs is because not all 'cpp's support #elif */

#ifdef RLIMIT_FDMAX
# define RLIMIT_FD_MAX RLIMIT_FDMAX
#else
# ifdef RLIMIT_NOFILE
#  define RLIMIT_FD_MAX RLIMIT_NOFILE
# else
#  ifdef RLIMIT_OPEN_MAX
#   define RLIMIT_FD_MAX RLIMIT_OPEN_MAX
#  else
#   warning No file descriptor limit was found
#  endif
# endif
#endif

#endif /* HAVE_SYS_RESOURCE_H */

#endif /* INCLUDED_rlimits_h */