1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:37:44 +00:00

Add fcntl() F_DUPFD which is slightly different from dup2().

This commit is contained in:
Andreas Kling 2018-11-16 22:14:40 +01:00
parent 6cedb88153
commit 2cf477a151
3 changed files with 22 additions and 0 deletions

View file

@ -3,6 +3,11 @@ rm -vf _fs_contents
cp -vp _fs_contents.stock _fs_contents
mkdir -vp mnt
mount -o loop _fs_contents mnt/
mkdir -vp mnt/dev
mknod mnt/dev/tty0 c 4 0
mknod mnt/dev/tty1 c 4 1
mknod mnt/dev/tty2 c 4 2
mknod mnt/dev/tty3 c 4 3
cp -R ../Base/* mnt/
cp -v ../Userland/sh mnt/bin/sh
cp -v ../Userland/id mnt/bin/id