Skip to main content

Module cat

Module cat 

Source

Structs§

CatConfig
Configuration for cat

Functions§

cat_file
Process a single file for cat
cat_plain_file
Plain cat for a single file — tries splice/sendfile, then falls back to mmap+write
cat_plain_stdin
Plain cat for stdin — try splice on Linux, otherwise bulk read+write
cat_with_options
Cat with options (numbering, show-ends, show-tabs, show-nonprinting, squeeze)
splice_file_to_stdout
Use splice for zero-copy file→stdout on Linux (file → pipe)