├── LICENSE ├── README.md ├── docs ├── TheDescentToC-SimonTatham.pdf ├── c99.txt ├── commandline.txt ├── cppcheck.txt ├── fortify-source.txt ├── gdb.txt ├── generaldebugging.txt ├── network-structs.txt ├── other-resources.txt ├── profiling.txt ├── usefulvars.txt └── valgrind.txt ├── kernel-module └── README.md ├── liberr ├── .gitignore ├── CREDITS.txt ├── Makefile ├── README.txt ├── liberr.c └── liberrRun ├── linking-types-example ├── Makefile ├── README.txt ├── dlexample.c ├── libfoo.h ├── main.c ├── one.c └── two.c ├── make-example ├── .gitignore ├── Makefile ├── README.txt ├── file1.c ├── file2.c ├── head.h ├── head2.h └── subdir │ ├── Makefile │ ├── subfile.c │ ├── subfile.h │ └── tmp │ ├── subfile.d │ └── subfile.o └── simple-examples ├── Makefile ├── abort.c ├── access.c ├── argv-argc.c ├── array-copy.c ├── array-init.c ├── array-too-large.c ├── array_size.c ├── asm.c ├── assert.c ├── atexit.c ├── atoi-strtol.c ├── backtrace.c ├── basename-dirname.c ├── bitwise.c ├── bool.c ├── break-stack.c ├── bsearch.c ├── char-signed-unsigned.c ├── chroot.c ├── clock.c ├── clock_gettime.c ├── color-tty.c ├── comment.c ├── complex.c ├── const-funcparam.c ├── core-dump.c ├── ctime.c ├── difftime.c ├── digraph-trigraph.c ├── directory-stream.c ├── dup2-wrongterm.c ├── dup2.c ├── endianness.c ├── enum.c ├── errno.c ├── exec-variations.c ├── exitstatus.c ├── fcntl-lock.c ├── feof.c ├── fgetc.c ├── fgets-simple.c ├── fgets.c ├── fileio-binary.c ├── fileio-convert.c ├── fileio-fopen-delete.c ├── fileio-fopen-directory.c ├── fileio-fopen-modify.c ├── fileio-fopen-repeat.c ├── fileio-fopen-twice.c ├── fileio-fopen.c ├── fileio-open.c ├── fileio-read-full-file.c ├── fileio-readwrite.c ├── float-div0.c ├── float-except.c ├── float-type-default.c ├── float-weirdness.c ├── fork-basics.c ├── fork-bomb.c ├── fork-orphan.c ├── fork-zombie.c ├── fts.c ├── ftw.c ├── function-param-void.c ├── get_nprocs.c ├── getaddrinfo-localhost.c ├── getaddrinfo.c ├── getenv.c ├── gethostname.c ├── getopt.c ├── gettimeofday.c ├── glob.c ├── initialized.c ├── integer-promotion.c ├── internet-dgram-client.c ├── internet-dgram-server-ipv46.c ├── internet-dgram-server-twosocks.c ├── internet-dgram-server.c ├── internet-stream-client.c ├── internet-stream-server.c ├── isatty.c ├── localtime.c ├── malloc-calloc.c ├── malloc-get-size.c ├── malloc-vs-local.c ├── memory-org.c ├── mkdir-example.c ├── mmap.c ├── modify-string-literal.c ├── nested-functions.c ├── pause.c ├── perror.c ├── pipe-buffer-size.c ├── pipe-dup2-loop.c ├── pipe-dup2.c ├── pipe.c ├── poll.c ├── popen.c ├── printf-error.c ├── printf-fail.c ├── printf-formatting.c ├── pthread-mutex.c ├── qsort.c ├── qsort_r.c ├── raise.c ├── rand.c ├── rdtsc.c ├── read-wouldblock.c ├── readline-color.c ├── readline.c ├── readlink.c ├── realloc.c ├── restrict.c ├── scandir.c ├── select.c ├── setpgid.c ├── setvbuf.c ├── sigaction.c ├── signal-atomic-error.c ├── signal-better.c ├── signal-sigttin.c ├── signal.c ├── sigprocmask.c ├── sigsuspend.c ├── sizeof-strings.c ├── sizeof.c ├── sleep-subsecond.c ├── socketpair.c ├── sprintf-overlap.c ├── sscanf-and-arrays.c ├── stack-protector.c ├── stat-chmod.c ├── static.c ├── stdint.c ├── strcat-fail.c ├── string-null-terminator.c ├── strncat.c ├── strstr.c ├── strtok.c ├── strtol.c ├── struct-bitfield.c ├── struct-padding.c ├── struct.c ├── sysconf-clk-tck.c ├── syslog.c ├── tmpfile.c ├── tpgid.c ├── types.c ├── umask-example.c ├── uname-example.c ├── undefined-arithmetic.c ├── undefined-seq-points.c ├── unicode-utf8.c ├── union.c ├── unix-dgram-client.c ├── unix-dgram-server.c ├── unix-stream-client.c ├── unix-stream-server.c ├── vargs.c ├── vla.c └── wait-nochild.c /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/README.md -------------------------------------------------------------------------------- /docs/TheDescentToC-SimonTatham.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/docs/TheDescentToC-SimonTatham.pdf -------------------------------------------------------------------------------- /docs/c99.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/docs/c99.txt -------------------------------------------------------------------------------- /docs/commandline.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/docs/commandline.txt -------------------------------------------------------------------------------- /docs/cppcheck.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/docs/cppcheck.txt -------------------------------------------------------------------------------- /docs/fortify-source.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/docs/fortify-source.txt -------------------------------------------------------------------------------- /docs/gdb.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/docs/gdb.txt -------------------------------------------------------------------------------- /docs/generaldebugging.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/docs/generaldebugging.txt -------------------------------------------------------------------------------- /docs/network-structs.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/docs/network-structs.txt -------------------------------------------------------------------------------- /docs/other-resources.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/docs/other-resources.txt -------------------------------------------------------------------------------- /docs/profiling.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/docs/profiling.txt -------------------------------------------------------------------------------- /docs/usefulvars.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/docs/usefulvars.txt -------------------------------------------------------------------------------- /docs/valgrind.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/docs/valgrind.txt -------------------------------------------------------------------------------- /kernel-module/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/kernel-module/README.md -------------------------------------------------------------------------------- /liberr/.gitignore: -------------------------------------------------------------------------------- 1 | /liberr.so 2 | -------------------------------------------------------------------------------- /liberr/CREDITS.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/liberr/CREDITS.txt -------------------------------------------------------------------------------- /liberr/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/liberr/Makefile -------------------------------------------------------------------------------- /liberr/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/liberr/README.txt -------------------------------------------------------------------------------- /liberr/liberr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/liberr/liberr.c -------------------------------------------------------------------------------- /liberr/liberrRun: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/liberr/liberrRun -------------------------------------------------------------------------------- /linking-types-example/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/linking-types-example/Makefile -------------------------------------------------------------------------------- /linking-types-example/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/linking-types-example/README.txt -------------------------------------------------------------------------------- /linking-types-example/dlexample.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/linking-types-example/dlexample.c -------------------------------------------------------------------------------- /linking-types-example/libfoo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/linking-types-example/libfoo.h -------------------------------------------------------------------------------- /linking-types-example/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/linking-types-example/main.c -------------------------------------------------------------------------------- /linking-types-example/one.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/linking-types-example/one.c -------------------------------------------------------------------------------- /linking-types-example/two.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/linking-types-example/two.c -------------------------------------------------------------------------------- /make-example/.gitignore: -------------------------------------------------------------------------------- 1 | /test 2 | /tmp 3 | -------------------------------------------------------------------------------- /make-example/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/make-example/Makefile -------------------------------------------------------------------------------- /make-example/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/make-example/README.txt -------------------------------------------------------------------------------- /make-example/file1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/make-example/file1.c -------------------------------------------------------------------------------- /make-example/file2.c: -------------------------------------------------------------------------------- 1 | #include "head.h" 2 | 3 | 4 | /* otherwise empty... */ 5 | -------------------------------------------------------------------------------- /make-example/head.h: -------------------------------------------------------------------------------- 1 | /* An empty header file... */ 2 | #include "head2.h" 3 | -------------------------------------------------------------------------------- /make-example/head2.h: -------------------------------------------------------------------------------- 1 | /* empty */ 2 | -------------------------------------------------------------------------------- /make-example/subdir/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/make-example/subdir/Makefile -------------------------------------------------------------------------------- /make-example/subdir/subfile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/make-example/subdir/subfile.c -------------------------------------------------------------------------------- /make-example/subdir/subfile.h: -------------------------------------------------------------------------------- 1 | void subfile(); 2 | -------------------------------------------------------------------------------- /make-example/subdir/tmp/subfile.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/make-example/subdir/tmp/subfile.d -------------------------------------------------------------------------------- /make-example/subdir/tmp/subfile.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/make-example/subdir/tmp/subfile.o -------------------------------------------------------------------------------- /simple-examples/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/Makefile -------------------------------------------------------------------------------- /simple-examples/abort.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/abort.c -------------------------------------------------------------------------------- /simple-examples/access.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/access.c -------------------------------------------------------------------------------- /simple-examples/argv-argc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/argv-argc.c -------------------------------------------------------------------------------- /simple-examples/array-copy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/array-copy.c -------------------------------------------------------------------------------- /simple-examples/array-init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/array-init.c -------------------------------------------------------------------------------- /simple-examples/array-too-large.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/array-too-large.c -------------------------------------------------------------------------------- /simple-examples/array_size.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/array_size.c -------------------------------------------------------------------------------- /simple-examples/asm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/asm.c -------------------------------------------------------------------------------- /simple-examples/assert.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/assert.c -------------------------------------------------------------------------------- /simple-examples/atexit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/atexit.c -------------------------------------------------------------------------------- /simple-examples/atoi-strtol.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/atoi-strtol.c -------------------------------------------------------------------------------- /simple-examples/backtrace.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/backtrace.c -------------------------------------------------------------------------------- /simple-examples/basename-dirname.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/basename-dirname.c -------------------------------------------------------------------------------- /simple-examples/bitwise.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/bitwise.c -------------------------------------------------------------------------------- /simple-examples/bool.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/bool.c -------------------------------------------------------------------------------- /simple-examples/break-stack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/break-stack.c -------------------------------------------------------------------------------- /simple-examples/bsearch.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/bsearch.c -------------------------------------------------------------------------------- /simple-examples/char-signed-unsigned.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/char-signed-unsigned.c -------------------------------------------------------------------------------- /simple-examples/chroot.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/chroot.c -------------------------------------------------------------------------------- /simple-examples/clock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/clock.c -------------------------------------------------------------------------------- /simple-examples/clock_gettime.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/clock_gettime.c -------------------------------------------------------------------------------- /simple-examples/color-tty.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/color-tty.c -------------------------------------------------------------------------------- /simple-examples/comment.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/comment.c -------------------------------------------------------------------------------- /simple-examples/complex.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/complex.c -------------------------------------------------------------------------------- /simple-examples/const-funcparam.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/const-funcparam.c -------------------------------------------------------------------------------- /simple-examples/core-dump.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/core-dump.c -------------------------------------------------------------------------------- /simple-examples/ctime.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/ctime.c -------------------------------------------------------------------------------- /simple-examples/difftime.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/difftime.c -------------------------------------------------------------------------------- /simple-examples/digraph-trigraph.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/digraph-trigraph.c -------------------------------------------------------------------------------- /simple-examples/directory-stream.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/directory-stream.c -------------------------------------------------------------------------------- /simple-examples/dup2-wrongterm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/dup2-wrongterm.c -------------------------------------------------------------------------------- /simple-examples/dup2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/dup2.c -------------------------------------------------------------------------------- /simple-examples/endianness.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/endianness.c -------------------------------------------------------------------------------- /simple-examples/enum.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/enum.c -------------------------------------------------------------------------------- /simple-examples/errno.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/errno.c -------------------------------------------------------------------------------- /simple-examples/exec-variations.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/exec-variations.c -------------------------------------------------------------------------------- /simple-examples/exitstatus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/exitstatus.c -------------------------------------------------------------------------------- /simple-examples/fcntl-lock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fcntl-lock.c -------------------------------------------------------------------------------- /simple-examples/feof.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/feof.c -------------------------------------------------------------------------------- /simple-examples/fgetc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fgetc.c -------------------------------------------------------------------------------- /simple-examples/fgets-simple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fgets-simple.c -------------------------------------------------------------------------------- /simple-examples/fgets.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fgets.c -------------------------------------------------------------------------------- /simple-examples/fileio-binary.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fileio-binary.c -------------------------------------------------------------------------------- /simple-examples/fileio-convert.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fileio-convert.c -------------------------------------------------------------------------------- /simple-examples/fileio-fopen-delete.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fileio-fopen-delete.c -------------------------------------------------------------------------------- /simple-examples/fileio-fopen-directory.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fileio-fopen-directory.c -------------------------------------------------------------------------------- /simple-examples/fileio-fopen-modify.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fileio-fopen-modify.c -------------------------------------------------------------------------------- /simple-examples/fileio-fopen-repeat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fileio-fopen-repeat.c -------------------------------------------------------------------------------- /simple-examples/fileio-fopen-twice.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fileio-fopen-twice.c -------------------------------------------------------------------------------- /simple-examples/fileio-fopen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fileio-fopen.c -------------------------------------------------------------------------------- /simple-examples/fileio-open.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fileio-open.c -------------------------------------------------------------------------------- /simple-examples/fileio-read-full-file.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fileio-read-full-file.c -------------------------------------------------------------------------------- /simple-examples/fileio-readwrite.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fileio-readwrite.c -------------------------------------------------------------------------------- /simple-examples/float-div0.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/float-div0.c -------------------------------------------------------------------------------- /simple-examples/float-except.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/float-except.c -------------------------------------------------------------------------------- /simple-examples/float-type-default.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/float-type-default.c -------------------------------------------------------------------------------- /simple-examples/float-weirdness.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/float-weirdness.c -------------------------------------------------------------------------------- /simple-examples/fork-basics.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fork-basics.c -------------------------------------------------------------------------------- /simple-examples/fork-bomb.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fork-bomb.c -------------------------------------------------------------------------------- /simple-examples/fork-orphan.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fork-orphan.c -------------------------------------------------------------------------------- /simple-examples/fork-zombie.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fork-zombie.c -------------------------------------------------------------------------------- /simple-examples/fts.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/fts.c -------------------------------------------------------------------------------- /simple-examples/ftw.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/ftw.c -------------------------------------------------------------------------------- /simple-examples/function-param-void.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/function-param-void.c -------------------------------------------------------------------------------- /simple-examples/get_nprocs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/get_nprocs.c -------------------------------------------------------------------------------- /simple-examples/getaddrinfo-localhost.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/getaddrinfo-localhost.c -------------------------------------------------------------------------------- /simple-examples/getaddrinfo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/getaddrinfo.c -------------------------------------------------------------------------------- /simple-examples/getenv.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/getenv.c -------------------------------------------------------------------------------- /simple-examples/gethostname.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/gethostname.c -------------------------------------------------------------------------------- /simple-examples/getopt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/getopt.c -------------------------------------------------------------------------------- /simple-examples/gettimeofday.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/gettimeofday.c -------------------------------------------------------------------------------- /simple-examples/glob.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/glob.c -------------------------------------------------------------------------------- /simple-examples/initialized.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/initialized.c -------------------------------------------------------------------------------- /simple-examples/integer-promotion.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/integer-promotion.c -------------------------------------------------------------------------------- /simple-examples/internet-dgram-client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/internet-dgram-client.c -------------------------------------------------------------------------------- /simple-examples/internet-dgram-server-ipv46.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/internet-dgram-server-ipv46.c -------------------------------------------------------------------------------- /simple-examples/internet-dgram-server-twosocks.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/internet-dgram-server-twosocks.c -------------------------------------------------------------------------------- /simple-examples/internet-dgram-server.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/internet-dgram-server.c -------------------------------------------------------------------------------- /simple-examples/internet-stream-client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/internet-stream-client.c -------------------------------------------------------------------------------- /simple-examples/internet-stream-server.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/internet-stream-server.c -------------------------------------------------------------------------------- /simple-examples/isatty.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/isatty.c -------------------------------------------------------------------------------- /simple-examples/localtime.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/localtime.c -------------------------------------------------------------------------------- /simple-examples/malloc-calloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/malloc-calloc.c -------------------------------------------------------------------------------- /simple-examples/malloc-get-size.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/malloc-get-size.c -------------------------------------------------------------------------------- /simple-examples/malloc-vs-local.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/malloc-vs-local.c -------------------------------------------------------------------------------- /simple-examples/memory-org.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/memory-org.c -------------------------------------------------------------------------------- /simple-examples/mkdir-example.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/mkdir-example.c -------------------------------------------------------------------------------- /simple-examples/mmap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/mmap.c -------------------------------------------------------------------------------- /simple-examples/modify-string-literal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/modify-string-literal.c -------------------------------------------------------------------------------- /simple-examples/nested-functions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/nested-functions.c -------------------------------------------------------------------------------- /simple-examples/pause.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/pause.c -------------------------------------------------------------------------------- /simple-examples/perror.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/perror.c -------------------------------------------------------------------------------- /simple-examples/pipe-buffer-size.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/pipe-buffer-size.c -------------------------------------------------------------------------------- /simple-examples/pipe-dup2-loop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/pipe-dup2-loop.c -------------------------------------------------------------------------------- /simple-examples/pipe-dup2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/pipe-dup2.c -------------------------------------------------------------------------------- /simple-examples/pipe.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/pipe.c -------------------------------------------------------------------------------- /simple-examples/poll.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/poll.c -------------------------------------------------------------------------------- /simple-examples/popen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/popen.c -------------------------------------------------------------------------------- /simple-examples/printf-error.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/printf-error.c -------------------------------------------------------------------------------- /simple-examples/printf-fail.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/printf-fail.c -------------------------------------------------------------------------------- /simple-examples/printf-formatting.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/printf-formatting.c -------------------------------------------------------------------------------- /simple-examples/pthread-mutex.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/pthread-mutex.c -------------------------------------------------------------------------------- /simple-examples/qsort.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/qsort.c -------------------------------------------------------------------------------- /simple-examples/qsort_r.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/qsort_r.c -------------------------------------------------------------------------------- /simple-examples/raise.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/raise.c -------------------------------------------------------------------------------- /simple-examples/rand.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/rand.c -------------------------------------------------------------------------------- /simple-examples/rdtsc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/rdtsc.c -------------------------------------------------------------------------------- /simple-examples/read-wouldblock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/read-wouldblock.c -------------------------------------------------------------------------------- /simple-examples/readline-color.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/readline-color.c -------------------------------------------------------------------------------- /simple-examples/readline.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/readline.c -------------------------------------------------------------------------------- /simple-examples/readlink.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/readlink.c -------------------------------------------------------------------------------- /simple-examples/realloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/realloc.c -------------------------------------------------------------------------------- /simple-examples/restrict.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/restrict.c -------------------------------------------------------------------------------- /simple-examples/scandir.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/scandir.c -------------------------------------------------------------------------------- /simple-examples/select.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/select.c -------------------------------------------------------------------------------- /simple-examples/setpgid.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/setpgid.c -------------------------------------------------------------------------------- /simple-examples/setvbuf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/setvbuf.c -------------------------------------------------------------------------------- /simple-examples/sigaction.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/sigaction.c -------------------------------------------------------------------------------- /simple-examples/signal-atomic-error.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/signal-atomic-error.c -------------------------------------------------------------------------------- /simple-examples/signal-better.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/signal-better.c -------------------------------------------------------------------------------- /simple-examples/signal-sigttin.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/signal-sigttin.c -------------------------------------------------------------------------------- /simple-examples/signal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/signal.c -------------------------------------------------------------------------------- /simple-examples/sigprocmask.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/sigprocmask.c -------------------------------------------------------------------------------- /simple-examples/sigsuspend.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/sigsuspend.c -------------------------------------------------------------------------------- /simple-examples/sizeof-strings.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/sizeof-strings.c -------------------------------------------------------------------------------- /simple-examples/sizeof.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/sizeof.c -------------------------------------------------------------------------------- /simple-examples/sleep-subsecond.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/sleep-subsecond.c -------------------------------------------------------------------------------- /simple-examples/socketpair.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/socketpair.c -------------------------------------------------------------------------------- /simple-examples/sprintf-overlap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/sprintf-overlap.c -------------------------------------------------------------------------------- /simple-examples/sscanf-and-arrays.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/sscanf-and-arrays.c -------------------------------------------------------------------------------- /simple-examples/stack-protector.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/stack-protector.c -------------------------------------------------------------------------------- /simple-examples/stat-chmod.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/stat-chmod.c -------------------------------------------------------------------------------- /simple-examples/static.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/static.c -------------------------------------------------------------------------------- /simple-examples/stdint.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/stdint.c -------------------------------------------------------------------------------- /simple-examples/strcat-fail.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/strcat-fail.c -------------------------------------------------------------------------------- /simple-examples/string-null-terminator.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/string-null-terminator.c -------------------------------------------------------------------------------- /simple-examples/strncat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/strncat.c -------------------------------------------------------------------------------- /simple-examples/strstr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/strstr.c -------------------------------------------------------------------------------- /simple-examples/strtok.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/strtok.c -------------------------------------------------------------------------------- /simple-examples/strtol.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/strtol.c -------------------------------------------------------------------------------- /simple-examples/struct-bitfield.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/struct-bitfield.c -------------------------------------------------------------------------------- /simple-examples/struct-padding.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/struct-padding.c -------------------------------------------------------------------------------- /simple-examples/struct.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/struct.c -------------------------------------------------------------------------------- /simple-examples/sysconf-clk-tck.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/sysconf-clk-tck.c -------------------------------------------------------------------------------- /simple-examples/syslog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/syslog.c -------------------------------------------------------------------------------- /simple-examples/tmpfile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/tmpfile.c -------------------------------------------------------------------------------- /simple-examples/tpgid.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/tpgid.c -------------------------------------------------------------------------------- /simple-examples/types.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/types.c -------------------------------------------------------------------------------- /simple-examples/umask-example.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/umask-example.c -------------------------------------------------------------------------------- /simple-examples/uname-example.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/uname-example.c -------------------------------------------------------------------------------- /simple-examples/undefined-arithmetic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/undefined-arithmetic.c -------------------------------------------------------------------------------- /simple-examples/undefined-seq-points.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/undefined-seq-points.c -------------------------------------------------------------------------------- /simple-examples/unicode-utf8.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/unicode-utf8.c -------------------------------------------------------------------------------- /simple-examples/union.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/union.c -------------------------------------------------------------------------------- /simple-examples/unix-dgram-client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/unix-dgram-client.c -------------------------------------------------------------------------------- /simple-examples/unix-dgram-server.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/unix-dgram-server.c -------------------------------------------------------------------------------- /simple-examples/unix-stream-client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/unix-stream-client.c -------------------------------------------------------------------------------- /simple-examples/unix-stream-server.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/unix-stream-server.c -------------------------------------------------------------------------------- /simple-examples/vargs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/vargs.c -------------------------------------------------------------------------------- /simple-examples/vla.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/vla.c -------------------------------------------------------------------------------- /simple-examples/wait-nochild.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skuhl/sys-prog-examples/HEAD/simple-examples/wait-nochild.c --------------------------------------------------------------------------------