Skip to content

laurelmay/altcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

altcat

An implementation of cat that uses splice and sendfile to write to stdout. In situations where stdout is piped, splice is used; in all other cases, sendfile is used. The combination of these calls avoids unnecessary copying to userspace.

One unfortunate side effect is that

altcat FILE >> OUT

is not supported as neither splice nor sendfile support appending to files.

About

Cat using sendfile and splice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published