GMS Linux: start?

This commit is contained in:
2025-12-30 01:20:20 +00:00
commit ac241a9148
48 changed files with 2028 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#include <stdio.h>
#include <sys/stat.h>
#include <errno.h>
int main(int argc, char *argv[]) {
if (argc != 2) {
printf("Usage: mkdir <dirname>\n");
return 1;
}
// 0755: 권한 (rwxr-xr-x)
if (mkdir(argv[1], 0755) < 0) {
perror("mkdir");
return 1;
}
return 0;
}