Coder Social home page Coder Social logo

linux_syscalls's Introduction

linux_syscalls

Rust Library for executing Linux system calls

This is nothing more than a learning exercise for me. It is in no condition to be used in other projects.

Much of my inspiration comes from kmcallister/syscall.rs

I originally cloned his repo and just updated his ASM! calls to the new syntax. I then decided that instead of building a system call with his awesome macro that I would prefer to have a function corresponding to each system call that wraps the call logic and returns a Result<> for error handling. From what I understand in the Man Pages many of the system calls return -1 for error and writes to the errno. I have not implemented a check on errno to return any useful information. Currently it just returns a String stating that there was indeed an error.

As I have mentioned, this is just a learning project for me as I am new to Rust and Programming. However, I am open to comments and suggestions.

linux_syscalls's People

Contributors

adamharshbarger avatar

Stargazers

 avatar

Watchers

 avatar

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.