diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-28 14:11:51 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-28 14:11:51 +0100 |
commit | 97726862dd699cb0843b9d700789e30cf6625dc9 (patch) | |
tree | 07fd74e8e0e3b462ac5ab32994340c5090711348 /Userland/mm.cpp | |
parent | 1d4af5125078b097b9ab843d53ba50a0d9b1de5e (diff) | |
download | serenity-97726862dd699cb0843b9d700789e30cf6625dc9.zip |
Add basic symlink support.
- sys$readlink + readlink()
- Add a /proc/PID/exe symlink to the process's executable.
- Print symlink contents in ls output.
- Some work on plumbing options into VFS::open().
Diffstat (limited to 'Userland/mm.cpp')
-rw-r--r-- | Userland/mm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/mm.cpp b/Userland/mm.cpp index ee03598867..8cd674f255 100644 --- a/Userland/mm.cpp +++ b/Userland/mm.cpp @@ -3,7 +3,7 @@ int main(int c, char** v) { - int fd = open("/proc/mm"); + int fd = open("/proc/mm", O_RDONLY); if (fd == -1) { perror("failed to open /proc/mm"); return 1; |