GithubHelp home page GithubHelp logo

athlohangade / lseek-in-xv6 Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 2.0 108 KB

This project is about implementation of lseek system call in xv6, a unix based operating system developed by MIT

Home Page: https://github.com/mit-pdos/xv6-public

Emacs Lisp 0.04% Makefile 3.59% C++ 4.84% C 79.56% Assembly 3.99% Perl 2.17% Objective-C 1.48% Shell 2.42% Ruby 1.08% OpenEdge ABL 0.83%
c operating-systems xv6-os syscalls

lseek-in-xv6's Introduction

lseek-in-xv6

This repo is about implementation of lseek system call in xv6 OS. The testing is done through 2 programs.

Program1 :

  • Usage : Run qemu and enter command in following format :

    program1 filename offset length string

    Eg: program1 hello.txt 3 15 name is Atharva.

    This will match the string 'name is Atharva' with data from offset 3 in file hello.txt and print whether string is matched or not

  • For now two text files are added for testing, namely hello.txt and some_info.txt

Program2 :

  • Usage : Run qemu and enter command in following format :

    program2 filename

    Eg: program2 some_info.txt

  • The program2 will divide the data from some_info.txt into 10 chunks of same size.

  • The filelength must be multiple of 10 for correct results. This is because the chunks are written to file copy in random order and if there is even one chunk with different size than others then it may overwrite the previously written data by other chunk as the order is random.

  • The program2 prints the length of the file given as input and the length of the copy file after writing into it in random order. The sizes of two files should be same.

  • Also the program2 prints the content of both the file to ensure the correctness of the test.

lseek-in-xv6's People

Contributors

athlohangade avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

sidmeh gauri1709

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.