Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 854 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 854 Bytes

Lab work ?: xv6 - add dup2() syscall

Authors (team): Yaroslav Romanus, Sasha Tsepilova
OS: LINUX(Ubuntu)

Prerequisites

MAKE, QEMU, GCC(11 or smaller version)

Compilation

$ cd xv6-public
$ make
$ make qemu or make qemu-nox

after this, xv6 will be running

Installation

$ git clone https://github.com/yarkoslav/xv6_dup2

If You don't have QEMU installed, please refer to QEMU installation guide here

Usage

When xv6 is running, you can test implemented pipes with dup2:

$ ls | wc | wc

Important!

You can see changes in the code for dup2 implementation in the diff of commits :=)

Results

Implemented dup2() syscall and used it in the shell pipes!