1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 12:47:35 +00:00

Kernel: Turn Process::FileDescriptionAndFlags into a proper class

This commit is contained in:
Andreas Kling 2020-07-30 23:50:31 +02:00
parent f2a152e930
commit 2e2de125e5
8 changed files with 34 additions and 24 deletions

View file

@ -52,9 +52,9 @@ int Process::sys$fcntl(int fd, int cmd, u32 arg)
return new_fd;
}
case F_GETFD:
return m_fds[fd].flags;
return m_fds[fd].flags();
case F_SETFD:
m_fds[fd].flags = arg;
m_fds[fd].set_flags(arg);
break;
case F_GETFL:
return description->file_flags();