An open API service indexing awesome lists of open source software.

https://github.com/mauri870/syscall

syscall(1) - Test a linux system call
https://github.com/mauri870/syscall

command-line linux syscall

Last synced: 2 months ago
JSON representation

syscall(1) - Test a linux system call

Awesome Lists containing this project

README

          

# syscall - Test a system call

This is an effort to port the plan9 syscall command to Linux. Not all the system calls are supposed to work since the system call convention on linux is more complex than plan9 but the most trivial ones are already implemented.
Instead of relying on the libc implementation this program uses the syscall(2) library function to invoke system calls.

## Compilation

```bash
make
make install
make uninstall # to remove the syscall program and man page
```

## Usage:

```bash
man 1 syscall
syscall -h
```

## Examples

```bash
syscall write 1 Hello 5
syscall -o read 0 buf 5
syscall exit 2
syscall -o getpid
syscall -ov getcwd buf 100
```