Skip to content

Commit b77a680

Browse files
committed
Add support for _SC_CLK_TCK and _SC_PAGE_SIZE in TOS
In FreeMiNT we get the values from Sysconf() syscall.
1 parent a86fc76 commit b77a680

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

posix/sysconf.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <mintbind.h>
1212
#include <errno.h>
1313
#include <limits.h>
14+
#include <time.h>
1415
#include "lib.h"
1516

1617
#define UNLIMITED (0x7fffffffL)
@@ -42,6 +43,10 @@ __sysconf (int var)
4243
return NGROUPS_MAX;
4344
case _SC_CHILD_MAX:
4445
return UNLIMITED; /* good 'ol TOS :-) */
46+
case _SC_CLK_TCK:
47+
return CLOCKS_PER_SEC;
48+
case _SC_PAGE_SIZE:
49+
return getpagesize();
4550
default:
4651
return -1;
4752
}

0 commit comments

Comments
 (0)