Skip to content

mauri870/syscall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Usage:

man 1 syscall
syscall -h

Examples

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

About

syscall(1) - Test a linux system call

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published