Wednesday, November 26, 2008

Code examples

In this post I'll add links to some of the source code we see in class.

File redirection to STDIN: dup2.c
Environment variables example: environ.c
Anonymous pipe example: pipe.c
execve() example: exec.c
pipe() and dup2() basic structure (code compiles but does nothing): pipedup2.c
Simple tcp server. Each connections echo back to the client what he receives. socket.c

No comments: