feat: add proclist command, fix TLS bug, link libc for system programs

This commit is contained in:
2026-06-19 12:03:12 +02:00
parent ac25a4edd5
commit f2aaa39ca6
7 changed files with 31 additions and 3 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ void get_bearssl_time(uint32_t* days, uint32_t* seconds) {
montauk::gettime(&dt);
int y = dt.Year, m = dt.Month, d = dt.Day;
uint32_t total = 365u * (uint32_t)y
+ (uint32_t)(y/4) - (uint32_t)(y/100) + (uint32_t)(y/400);
+ (uint32_t)((y+3)/4) - (uint32_t)((y+99)/100) + (uint32_t)((y+399)/400);
const int md[] = {0,31,28,31,30,31,30,31,31,30,31,30,31};
for (int mo = 1; mo < m && mo <= 12; mo++) total += md[mo];
if (y%4==0 && (y%100!=0 || y%400==0) && m > 2) total++;