Friday, January 25, 2008

OS: syscall

1. show the linux architecture for system call;
2. show the steps of modification, each meaning;
3. how to return a value from system call, how to ask a system call to do something for us;
4. how to compile a kernel, load a kernel, use a system call;
5. put up the lab far before the lab, so students can start or have some idea of it before hand;
5. before the lab, run it again to make sure it works.

Friday, January 18, 2008

OS: Shell Tutorial

1 introduce the special points of C language
printf: %d %f %s %c
symbol: \n \t
cstring: string functions reference/link
single quote and double quote
command line parser: int argc char *argv[]

2. The example fits in the shell program
Set up the whole program architecture for the student
Help to understand the parser.c code

3. Good reference on C Language, System call
C Language tutorial online
Linux system call introduction online
request the kernel to do something for you. send back to user
POSIX standard

4. Shell parser
makefile
compile the program
gcc -ggdb

4. Unix concept
what are pipes? How to use them one output piped into a command's input
ps aux grep jobs grep ps
top &
jobs
kill %2
< into standard input program
> into a file