This is a repository for setting up an enviroment for learning the linux programming interface book on non-linux place, like mac or windows PC.
- clone the repo
- build your docker image with
docker build -t <tag-name> .
- run the image in interactive mode
docker run -it --cap-add=SYS_PTRACE --security-opt seccomp=unconfined <image-name>
, the extra param is for gdb debugging security setting. - happy learning, the code and built binary are all in
/tlpi-dist
, debug with gdb to see what happened in the programs.