public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4edbf5
)
sysconf: use nproc value
author
Alan Cox
<alan@linux.intel.com>
Sun, 28 Dec 2014 23:53:23 +0000
(23:53 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Sun, 28 Dec 2014 23:53:23 +0000
(23:53 +0000)
Library/libs/sysconf.c
patch
|
blob
|
history
diff --git
a/Library/libs/sysconf.c
b/Library/libs/sysconf.c
index
d502f78
..
053c1fe
100644
(file)
--- a/
Library/libs/sysconf.c
+++ b/
Library/libs/sysconf.c
@@
-15,7
+15,7
@@
long sysconf(int name)
case _SC_ARG_MAX:
return 512;
case _SC_CHILD_MAX:
- /* nproc -1 ? */
+ return info.nproc - 1;
case _SC_HOST_NAME_MAX:
/* we will implement get/sethostname and domain name in userspace */
return 256;