mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
sysconf: add _SC_PAGESIZE sysconf support
MIRTOS-262 Also implement getpagesize() based on sysconf(_SC_PAGESIZE). Signed-off-by: liuhaitao <liuhaitao@xiaomi.com> Change-Id: Ib6baccb9f7dac19f5e3c681db1c51e8a2fe8d3fe
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