Renaming all folders

This commit is contained in:
Fabio Scotto di Santolo
2025-08-22 16:21:42 +02:00
parent 331308b2d8
commit 538cb4559e
45 changed files with 9 additions and 9 deletions

View File

@@ -0,0 +1,25 @@
/*
* SPDX-License-Identifier: MIT
* Copyright (c) 2025 Fabio Scotto di Santolo
*/
#include <stdio.h>
#include <sys/resource.h>
#include <unistd.h>
int main(void)
{
int ret;
ret = nice(0);
printf("Current nice by nice function: %d\n", ret);
ret = getpriority(PRIO_PROCESS, 0);
printf("Current nice by getpriority function: %d\n", ret);
if (setpriority(PRIO_PROCESS, 0, 10) == -1) {
perror("setpriority");
return -1;
}
ret = getpriority(PRIO_PROCESS, 0);
printf("Current nice by getpriority function: %d\n", ret);
return 0;
}