Unix/Linux Programming in C code examples
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assert make cstyle per-directory target Nov 28, 2017
basic-utils Fix the comment. Oct 8, 2018
cond-variables add comments Jan 8, 2018
dead-lock make cstyle per-directory target Nov 28, 2017
debug make cstyle per-directory target Nov 28, 2017
dyn-lib make cstyle per-directory target Nov 28, 2017
err make cstyle per-directory target Nov 28, 2017
exec make cstyle per-directory target Nov 28, 2017
exit make cstyle per-directory target Nov 28, 2017
file-locking make cstyle per-directory target Nov 28, 2017
fork make cstyle per-directory target Nov 28, 2017
getopt Use err(3). Oct 17, 2018
inetd make cstyle per-directory target Nov 28, 2017
lib-abi Comment fixed. Oct 8, 2018
main make cstyle per-directory target Nov 28, 2017
malloc make cstyle per-directory target Nov 28, 2017
mmap make cstyle per-directory target Nov 28, 2017
mutexes make cstyle per-directory target Nov 28, 2017
pipe make cstyle per-directory target Nov 28, 2017
pmap make cstyle per-directory target Nov 28, 2017
pthreads Fix one warning. Jan 10, 2018
race atomic-add needs to be translated with C11 to support stdatomic.h Jan 9, 2018
read Remove unneeded includes. Oct 22, 2018
readdir make cstyle per-directory target Nov 28, 2017
readlink fix compilation on Linux Oct 16, 2018
reentrant make cstyle per-directory target Nov 28, 2017
resolving add some error checking Dec 12, 2017
select Better usage message. Dec 12, 2017
semaphores fix cstyle Dec 5, 2017
session make cstyle per-directory target Nov 28, 2017
setuid make cstyle per-directory target Nov 28, 2017
sh-scripts 1st version of ./src for unix-prog (I.). Aug 30, 2009
signals make cstyle per-directory target Nov 28, 2017
sleep make cstyle per-directory target Nov 28, 2017
stat Another example code. Dec 30, 2017
tcp More work on the example code. Dec 12, 2017
udp move the close() Dec 6, 2017
uid make cstyle per-directory target Nov 28, 2017
unix-socket make cstyle per-directory target Nov 28, 2017
unix-standards make cstyle per-directory target Nov 28, 2017
wait make cstyle per-directory target Nov 28, 2017
.gitignore ignore shared libs on Linux/Solaris Dec 6, 2017
.travis.yml get libs for 32-bit compilation Nov 12, 2017
Makefile remove code unused in the lecture Nov 28, 2017
Makefile.common atomic-add needs to be translated with C11 to support stdatomic.h Jan 9, 2018
README.md rename Dec 8, 2017
UNLICENSE add, um, license Oct 30, 2017
cstyle.pl add cstyle check Nov 2, 2017

README.md

Build status: Build Status

The files in this directory and all sub-directories are used for demonstrations in the course of teaching "Unix programming in C" (NSWI015) at Faculty of Mathematics and Physics of Charles University in Prague (http://www.mff.cuni.cz/).

The course page can be accessed from https://devnull-cz.github.io/unix-linux-prog-in-c/

All the files with examples are in Public Domain, unless marked otherwise.

The source code files are kept like this on purpose:

  • not all return values are checked and reacted upon
  • some programs may present issues on purpose
  • each file is self contained (i.e. not libraries of common functions)

This is to help understand the concepts easily.