mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-11-13 14:00:20 +01:00
25 lines
496 B
C
25 lines
496 B
C
|
|
/*
|
||
|
|
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
|
*/
|
||
|
|
#pragma once
|
||
|
|
#include <ctype.h>
|
||
|
|
|
||
|
|
#undef isspace
|
||
|
|
#define isspace(__c) (__ctype_lookup((int)__c)&_S)
|
||
|
|
|
||
|
|
#include_next "config.h"
|
||
|
|
#define VERSION "v2.0.18~0"
|
||
|
|
|
||
|
|
#define _SC_OPEN_MAX_OVERRIDE 4
|
||
|
|
|
||
|
|
// used to override syscall for obtaining max open fds
|
||
|
|
static inline long sysconf(int arg)
|
||
|
|
{
|
||
|
|
if (arg == _SC_OPEN_MAX_OVERRIDE) {
|
||
|
|
return 64;
|
||
|
|
}
|
||
|
|
return -1;
|
||
|
|
}
|