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
- Host: GitHub
- URL: https://github.com/mauri870/syscall
- Owner: mauri870
- Created: 2019-05-29T14:22:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-08T19:34:29.000Z (over 1 year ago)
- Last Synced: 2025-05-21T03:38:04.478Z (11 months ago)
- Topics: command-line, linux, syscall
- Language: C
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```