/xv6_dup2

Implementation of dup2 syscall for xv6 os, added this syscall to the shell pipes

Primary LanguageC

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!