mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 06:06:48 +00:00
LibC+Kernel: Start implementing sysconf
For now, only the non-standard _SC_NPROCESSORS_CONF and _SC_NPROCESSORS_ONLN are implemented. Use them to make ninja pick a better default -j value. While here, make the ninja package script not fail if no other port has been built yet.
This commit is contained in:
parent
782cd93c01
commit
4eb967b5eb
Notes:
sideshowbarker
2024-07-19 04:49:35 +09:00
Author: https://github.com/nico
Commit: 4eb967b5eb
Pull-request: https://github.com/SerenityOS/serenity/pull/2800
9 changed files with 34 additions and 14 deletions
|
@ -172,4 +172,10 @@ enum {
|
|||
#define _POSIX_PRIORITY_SCHEDULING
|
||||
#define _POSIX_VDISABLE '\0'
|
||||
|
||||
enum {
|
||||
_SC_NPROCESSORS_CONF,
|
||||
_SC_NPROCESSORS_ONLN,
|
||||
};
|
||||
long sysconf(int name);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue