/* * Copyright (c) 2018-2021, Andreas Kling * Copyright (c) 2021, Spencer Dixon * Copyright (c) 2021, Liav A. * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace Kernel { ProcFSInode::ProcFSInode(ProcFS const& fs, InodeIndex index) : Inode(const_cast(fs), index) { } ProcFSInode::~ProcFSInode() = default; ErrorOr ProcFSInode::flush_metadata() { return {}; } ErrorOr ProcFSInode::add_child(Inode&, StringView, mode_t) { return EROFS; } ErrorOr> ProcFSInode::create_child(StringView, mode_t, dev_t, UserID, GroupID) { return EROFS; } ErrorOr ProcFSInode::remove_child(StringView) { return EROFS; } ErrorOr ProcFSInode::chmod(mode_t) { return EPERM; } ErrorOr ProcFSInode::chown(UserID, GroupID) { return EPERM; } ErrorOr ProcFSInode::replace_child(StringView, Inode&) { return EROFS; } }