2021-09-02 11:27:21 +03:00
|
|
|
/**
|
|
|
|
* @brief Print the number of available processors.
|
|
|
|
*
|
|
|
|
* @copyright
|
|
|
|
* This file is part of ToaruOS and is released under the terms
|
|
|
|
* of the NCSA / University of Illinois License - see LICENSE.md
|
2021-11-26 06:41:56 +03:00
|
|
|
* Copyright (C) 2021 K. Lange
|
2021-09-02 11:27:21 +03:00
|
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <sys/sysfunc.h>
|
|
|
|
|
|
|
|
int main(int argc, char * argv[]) {
|
|
|
|
printf("%d\n", sysfunc(TOARU_SYS_FUNC_NPROC, NULL));
|
|
|
|
return 0;
|
|
|
|
}
|