mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Make sysconf(_SC_PAGESIZE) return the value from getpagesize(3).
That avoids a syscall - getpagesize(3) gets the value from the ELF aux strings. Reviewed by: kib MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D17989
This commit is contained in:
parent
00bf4d2515
commit
3a9cdc5132
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340641
@ -291,10 +291,7 @@ sysconf(int name)
|
||||
mib[1] = CTL_P1003_1B_MQ_OPEN_MAX;
|
||||
goto yesno;
|
||||
case _SC_PAGESIZE:
|
||||
defaultresult = getpagesize();
|
||||
mib[0] = CTL_P1003_1B;
|
||||
mib[1] = CTL_P1003_1B_PAGESIZE;
|
||||
goto yesno;
|
||||
return (getpagesize());
|
||||
case _SC_RTSIG_MAX:
|
||||
mib[0] = CTL_P1003_1B;
|
||||
mib[1] = CTL_P1003_1B_RTSIG_MAX;
|
||||
|
Loading…
Reference in New Issue
Block a user