warn: experimental package, use at your own risk
this repository is a clone of the cat *nix command but made it myself. used to know how io_uring works, and some posix function
compile instruction:
make cat_io_uring
if you see something unexpected:
make clean && make cat_io_uring
-
using default Address Sanitizer (ASan)
append this on CFLAGS-fsanitize=address
-
using valgrind
valgrind --leak-check=full \
--show-leak-kinds=all \
--track-origins=yes \
--verbose \
./cat_io_uring something.txt
- gdb if you found something crash, run program with gdb, example
gdb ./cat_io_uring
> r something.txt
> bt
its will tell you where the program crash
tested operating system: Arch Linux
uname -a:
Linux integral2 6.9.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 21 Jun 2024 19:49:19 +0000 x86_64 GNU/Linux
license: MIT