From f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 7 Mar 2024 17:28:52 -0500 Subject: build: Build mlibc + add distclean target Signed-off-by: Ian Moffett --- lib/mlibc/sysdeps/managarm/generic/mount.cpp | 44 ---------------------------- 1 file changed, 44 deletions(-) delete mode 100644 lib/mlibc/sysdeps/managarm/generic/mount.cpp (limited to 'lib/mlibc/sysdeps/managarm/generic/mount.cpp') diff --git a/lib/mlibc/sysdeps/managarm/generic/mount.cpp b/lib/mlibc/sysdeps/managarm/generic/mount.cpp deleted file mode 100644 index 5677b20..0000000 --- a/lib/mlibc/sysdeps/managarm/generic/mount.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -namespace mlibc { - -int sys_mount(const char *source, const char *target, - const char *fstype, unsigned long, const void *) { - SignalGuard sguard; - - managarm::posix::MountRequest req(getSysdepsAllocator()); - req.set_path(frg::string(getSysdepsAllocator(), source)); - req.set_target_path(frg::string(getSysdepsAllocator(), target)); - req.set_fs_type(frg::string(getSysdepsAllocator(), fstype)); - - auto [offer, send_head, send_tail, recv_resp] = - exchangeMsgsSync( - getPosixLane(), - helix_ng::offer( - helix_ng::sendBragiHeadTail(req, getSysdepsAllocator()), - helix_ng::recvInline() - ) - ); - - HEL_CHECK(offer.error()); - HEL_CHECK(send_head.error()); - HEL_CHECK(send_tail.error()); - HEL_CHECK(recv_resp.error()); - - auto resp = *bragi::parse_head_only(recv_resp, getSysdepsAllocator()); - if(resp.error() == managarm::posix::Errors::FILE_NOT_FOUND) - return ENOENT; - __ensure(resp.error() == managarm::posix::Errors::SUCCESS); - return 0; -} - -} //namespace mlibc -- cgit v1.2.3