sysfdsetsize.h (1521B)
1 /* 2 This file is part of libmicrohttpd 3 Copyright (C) 2015-2023 Karlson2k (Evgeny Grin) 4 5 This library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public 7 License as published by the Free Software Foundation; either 8 version 2.1 of the License, or (at your option) any later version. 9 10 This library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with this library; if not, write to the Free Software 17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 */ 19 20 /** 21 * @file microhttpd/sysfdsetsize.h 22 * @brief Helper for obtaining FD_SETSIZE system default value 23 * @author Karlson2k (Evgeny Grin) 24 */ 25 26 #ifndef SYSFDSETSIZE_H 27 #define SYSFDSETSIZE_H 1 28 29 #include "mhd_options.h" 30 31 #ifndef MHD_SYS_FD_SETSIZE_ 32 /** 33 * Get system default value of FD_SETSIZE 34 * @return system default value of FD_SETSIZE 35 */ 36 unsigned int 37 get_system_fdsetsize_value (void); 38 39 #else /* MHD_SYS_FD_SETSIZE_ */ 40 /** 41 * Get system default value of FD_SETSIZE 42 * @return system default value of FD_SETSIZE 43 */ 44 _MHD_static_inline unsigned int 45 get_system_fdsetsize_value (void) 46 { 47 return (unsigned int) MHD_SYS_FD_SETSIZE_; 48 } 49 50 51 #endif /* MHD_SYS_FD_SETSIZE_ */ 52 53 #endif /* !SYSFDSETSIZE_H */