yarkoslav / xv6_dup2

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

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


Languages

Language:C 85.8%Language:Assembly 4.0%Language:Makefile 3.6%Language:Shell 2.4%Language:Perl 2.2%Language:Ruby 1.1%Language:OpenEdge ABL 0.8%Language:Emacs Lisp 0.0%