Skip to content

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

Notifications You must be signed in to change notification settings

yarkoslav/xv6_dup2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published