mirror of
https://github.com/apache/nuttx.git
synced 2025-12-13 23:17:11 +08:00
sysconf: add _SC_PAGESIZE sysconf support
Also implement getpagesize() based on sysconf(_SC_PAGESIZE). Change-Id: I812eb8f34ed602f7bc12c4cafafcebc0d98fd136 Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
@@ -274,6 +274,7 @@
|
||||
#define link(p1, p2) symlink((p1), (p2))
|
||||
#define fdatasync(f) fsync(f)
|
||||
#define getdtablesize(f) ((int)sysconf(_SC_OPEN_MAX))
|
||||
#define getpagesize(f) ((int)sysconf(_SC_PAGESIZE))
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
|
||||
Reference in New Issue
Block a user