Skip to content

Commit

Permalink
[WIP] sysdeps/managarm: implement sys_sysconf
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectrodeYT committed Oct 12, 2023
1 parent 7047232 commit 6b3afe9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions options/linux/generic/sys-sysinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <mlibc/linux-sysdeps.hpp>

int sysinfo(struct sysinfo *info) {
mlibc::infoLogger() << "mlibc: sysinfo top" << frg::endlog;
MLIBC_CHECK_OR_ENOSYS(mlibc::sys_sysinfo, -1);
if(int e = mlibc::sys_sysinfo(info); e) {
errno = e;
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/managarm/generic/sched.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#include <bits/ensure.h>
#include <unistd.h>
#include <pwd.h>

#include <hel.h>
#include <hel-syscalls.h>
#include <mlibc/debug.hpp>
#include <mlibc/allocator.hpp>
// #include <mlibc/arch-defs.hpp>
#include <mlibc/posix-pipe.hpp>
#include <mlibc/posix-sysdeps.hpp>

Expand Down Expand Up @@ -94,5 +96,4 @@ int sys_setthreadaffinity(pid_t tid, size_t cpusetsize, const cpu_set_t *mask) {
return 0;
}


}
1 change: 1 addition & 0 deletions sysdeps/managarm/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ libc_sources += files(
'generic/sched.cpp',
'generic/signals.cpp',
'generic/socket.cpp',
'generic/sysinfo.cpp',
'generic/time.cpp'
)
libc_sources += [
Expand Down

0 comments on commit 6b3afe9

Please sign in to comment.