mirror of
https://github.com/apache/nuttx.git
synced 2025-12-13 15:12:38 +08:00
libc/sysconf: add _SC_GETPW_R_SIZE_MAX
pass tlpi example: https://man7.org/tlpi/code/online/dist/users_groups/t_getpwnam_r.c.html Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
This commit is contained in:
@@ -57,6 +57,9 @@
|
||||
#undef _POSIX_MEMLOCK_RANGE
|
||||
#undef _POSIX_FSYNC
|
||||
#define _POSIX_SYNCHRONIZED_IO 1
|
||||
#ifdef CONFIG_LIBC_PASSWD_LINESIZE
|
||||
# define _POSIX_GETPW_R_SIZE_MAX CONFIG_LIBC_PASSWD_LINESIZE
|
||||
#endif
|
||||
|
||||
#define _POSIX_VERSION 201712L
|
||||
#define _POSIX_PRIORITIZED_IO _POSIX_VERSION
|
||||
|
||||
Reference in New Issue
Block a user