├── dlsym ├── Makefile ├── dlsym.c └── subject.c ├── epoll ├── Makefile ├── README.md ├── epoll.c └── keys.c ├── eventfd ├── Makefile ├── README.md ├── event1.c ├── event2.c ├── event3.c └── event4.c ├── inotify ├── Makefile ├── dirwatch.c ├── filewatch.c ├── mv_on_close.c └── signal_driven.c ├── pcre ├── Makefile ├── captures.c ├── multi.c └── simple.c ├── pipe ├── Makefile ├── README.md └── pipe1.c ├── posix-msg-queue ├── Makefile ├── README.md ├── mq-read.c ├── mq-unlink.c └── mq-write.c ├── posix-semaphore ├── Makefile ├── README.md ├── psem-create.c ├── psem-getvalue.c ├── psem-post.c ├── psem-unlink.c └── psem-wait.c ├── prctl ├── Makefile └── pr_set_name.c ├── readdir ├── Makefile ├── README.md ├── readdir-lstat.c ├── readdir-suffix.c └── readdir.c ├── readfile ├── Makefile ├── README.md ├── hexdump.c ├── mmap.c ├── slurp.c └── special.c ├── readlink ├── Makefile ├── README.md └── rdlink.c ├── sqlite ├── Makefile ├── README.md ├── create.c ├── insert.c ├── replace.c ├── scan_files.c ├── scan_lines.c ├── select.c └── simple.c ├── template ├── Makefile ├── README.md └── template.c └── uuid ├── Makefile └── get_uuid.c /dlsym/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/dlsym/Makefile -------------------------------------------------------------------------------- /dlsym/dlsym.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/dlsym/dlsym.c -------------------------------------------------------------------------------- /dlsym/subject.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/dlsym/subject.c -------------------------------------------------------------------------------- /epoll/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/epoll/Makefile -------------------------------------------------------------------------------- /epoll/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/epoll/README.md -------------------------------------------------------------------------------- /epoll/epoll.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/epoll/epoll.c -------------------------------------------------------------------------------- /epoll/keys.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/epoll/keys.c -------------------------------------------------------------------------------- /eventfd/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/eventfd/Makefile -------------------------------------------------------------------------------- /eventfd/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/eventfd/README.md -------------------------------------------------------------------------------- /eventfd/event1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/eventfd/event1.c -------------------------------------------------------------------------------- /eventfd/event2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/eventfd/event2.c -------------------------------------------------------------------------------- /eventfd/event3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/eventfd/event3.c -------------------------------------------------------------------------------- /eventfd/event4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/eventfd/event4.c -------------------------------------------------------------------------------- /inotify/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/inotify/Makefile -------------------------------------------------------------------------------- /inotify/dirwatch.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/inotify/dirwatch.c -------------------------------------------------------------------------------- /inotify/filewatch.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/inotify/filewatch.c -------------------------------------------------------------------------------- /inotify/mv_on_close.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/inotify/mv_on_close.c -------------------------------------------------------------------------------- /inotify/signal_driven.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/inotify/signal_driven.c -------------------------------------------------------------------------------- /pcre/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/pcre/Makefile -------------------------------------------------------------------------------- /pcre/captures.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/pcre/captures.c -------------------------------------------------------------------------------- /pcre/multi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/pcre/multi.c -------------------------------------------------------------------------------- /pcre/simple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/pcre/simple.c -------------------------------------------------------------------------------- /pipe/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/pipe/Makefile -------------------------------------------------------------------------------- /pipe/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/pipe/README.md -------------------------------------------------------------------------------- /pipe/pipe1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/pipe/pipe1.c -------------------------------------------------------------------------------- /posix-msg-queue/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/posix-msg-queue/Makefile -------------------------------------------------------------------------------- /posix-msg-queue/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/posix-msg-queue/README.md -------------------------------------------------------------------------------- /posix-msg-queue/mq-read.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/posix-msg-queue/mq-read.c -------------------------------------------------------------------------------- /posix-msg-queue/mq-unlink.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/posix-msg-queue/mq-unlink.c -------------------------------------------------------------------------------- /posix-msg-queue/mq-write.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/posix-msg-queue/mq-write.c -------------------------------------------------------------------------------- /posix-semaphore/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/posix-semaphore/Makefile -------------------------------------------------------------------------------- /posix-semaphore/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/posix-semaphore/README.md -------------------------------------------------------------------------------- /posix-semaphore/psem-create.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/posix-semaphore/psem-create.c -------------------------------------------------------------------------------- /posix-semaphore/psem-getvalue.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/posix-semaphore/psem-getvalue.c -------------------------------------------------------------------------------- /posix-semaphore/psem-post.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/posix-semaphore/psem-post.c -------------------------------------------------------------------------------- /posix-semaphore/psem-unlink.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/posix-semaphore/psem-unlink.c -------------------------------------------------------------------------------- /posix-semaphore/psem-wait.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/posix-semaphore/psem-wait.c -------------------------------------------------------------------------------- /prctl/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/prctl/Makefile -------------------------------------------------------------------------------- /prctl/pr_set_name.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/prctl/pr_set_name.c -------------------------------------------------------------------------------- /readdir/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readdir/Makefile -------------------------------------------------------------------------------- /readdir/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readdir/README.md -------------------------------------------------------------------------------- /readdir/readdir-lstat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readdir/readdir-lstat.c -------------------------------------------------------------------------------- /readdir/readdir-suffix.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readdir/readdir-suffix.c -------------------------------------------------------------------------------- /readdir/readdir.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readdir/readdir.c -------------------------------------------------------------------------------- /readfile/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readfile/Makefile -------------------------------------------------------------------------------- /readfile/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readfile/README.md -------------------------------------------------------------------------------- /readfile/hexdump.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readfile/hexdump.c -------------------------------------------------------------------------------- /readfile/mmap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readfile/mmap.c -------------------------------------------------------------------------------- /readfile/slurp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readfile/slurp.c -------------------------------------------------------------------------------- /readfile/special.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readfile/special.c -------------------------------------------------------------------------------- /readlink/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readlink/Makefile -------------------------------------------------------------------------------- /readlink/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readlink/README.md -------------------------------------------------------------------------------- /readlink/rdlink.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/readlink/rdlink.c -------------------------------------------------------------------------------- /sqlite/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/sqlite/Makefile -------------------------------------------------------------------------------- /sqlite/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/sqlite/README.md -------------------------------------------------------------------------------- /sqlite/create.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/sqlite/create.c -------------------------------------------------------------------------------- /sqlite/insert.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/sqlite/insert.c -------------------------------------------------------------------------------- /sqlite/replace.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/sqlite/replace.c -------------------------------------------------------------------------------- /sqlite/scan_files.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/sqlite/scan_files.c -------------------------------------------------------------------------------- /sqlite/scan_lines.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/sqlite/scan_lines.c -------------------------------------------------------------------------------- /sqlite/select.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/sqlite/select.c -------------------------------------------------------------------------------- /sqlite/simple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/sqlite/simple.c -------------------------------------------------------------------------------- /template/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/template/Makefile -------------------------------------------------------------------------------- /template/README.md: -------------------------------------------------------------------------------- 1 | Basic template for a command line utility. 2 | -------------------------------------------------------------------------------- /template/template.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/template/template.c -------------------------------------------------------------------------------- /uuid/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/uuid/Makefile -------------------------------------------------------------------------------- /uuid/get_uuid.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/troydhanson/examples/HEAD/uuid/get_uuid.c --------------------------------------------------------------------------------