We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c3a3f4 commit 57ba80cCopy full SHA for 57ba80c
lib/tinykvm/linux/system_calls.cpp
@@ -1105,6 +1105,18 @@ void Machine::setup_linux_system_calls()
1105
}
1106
regs.rax = 0;
1107
break;
1108
+ case 7: // RLIMIT_NOFILE
1109
+ if (oldptr != 0x0)
1110
+ {
1111
+ struct rlimit64 lim{};
1112
+ lim.rlim_cur = 4096;
1113
+ lim.rlim_max = 4096;
1114
+ SYSPRINT("prlimit64: current nofile limit 0x%llX max 0x%llX\n",
1115
+ lim.rlim_cur, lim.rlim_max);
1116
+ cpu.machine().copy_to_guest(oldptr, &lim, sizeof(lim));
1117
+ }
1118
+ regs.rax = 0;
1119
+ break;
1120
default:
1121
regs.rax = -ENOSYS;
1122
0 commit comments