Select one of the symbols to view example projects that use it.
 
Outline
#include <unistd.h>
#include <errno.h>
#include <limits.h>
#include "esp_err.h"
#include "esp_log.h"
#include "sdkconfig.h"
TAG
#define CPU_NUM
#define CPU_NUM
sysconf(int)
fpathconf(int, int)
pathconf(const char *, int)
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/newlib/sysconf.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #include <unistd.h> #include <errno.h> #include <limits.h> #include "esp_err.h" #include "esp_log.h" #include "sdkconfig.h"6 includes static const char *TAG = "sysconf"; #ifdef CONFIG_FREERTOS_UNICORE #define CPU_NUM 1 #else #define CPU_NUM CONFIG_SOC_CPU_CORES_NUM #endif long sysconf(int arg) { switch (arg) { case _SC_NPROCESSORS_CONF: case _SC_NPROCESSORS_ONLN: return CPU_NUM;... default: errno = EINVAL; return -1;... }{...} }{ ... } // pathconf long fpathconf(int fildes, int name) { if (name == _PC_PATH_MAX) { return PATH_MAX; }{...} ESP_LOGW(TAG, "fpathconf: unsupported name %d", name); errno = EINVAL; return -1; }{ ... } long pathconf(const char *path, int name) { if (name == _PC_PATH_MAX) { return PATH_MAX; }{...} ESP_LOGW(TAG, "pathconf: unsupported name %d", name); errno = EINVAL; return -1; }{ ... }
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.