Anda di halaman 1dari 1

CMP xxx: Unix

Credits: 04 (Lect, Tutorial, Lab: 4, 1, 0)

Systems Programming

Objective(s): This course is designed to give students experience in using a high-level language (C) to interface with an operating system (UNIX). Students will learn fundamental UNIX concepts, including files, processes, interprocess communication, and shells. They will also gain experience writing and testing C programs using UNIX editors. Learning Outcome(s): After completion of this course the student should be able to CO1: be able to understand fundamentals of Unix operating system concepts CO2: be able to implement various system calls in Unix CO3: have practical experience of applying those fundamental concepts in program development CO4: have the ability to develop programs based on Unix /POSIX-compliant system call APIs. CO5: Description UNIT1: Unix operating system history, The Unix Architecture , Introduction to Unix file system,

vi editor, file handling utilities, security by file permissions, process utilities, disk utilities, networking commands, cp, mv, ln, rm,unlink, mkdir, rmdir, du, df, mount, umount, find, unmask, ulimit, ps, who, w, finger, arp, ftp, telnet, rlogin, text processing utilities and backup utilities, detailed commands to be covered are cat, tail, head, sort, nl, uniq, grep, egrep, fgrep, cut, paste, join, tee, pg, comm, cmp, diff, tr, awk, tar, cpio. UNIT2: Unix Files: Unix file structure, directories, files and devices, System calls, library functions, low level file access, usage of open, creat, read, write, close, lseek, stat, fstat,octl, umask, dup, dup2. The standard I/O (fopen, fclose, fflush, fseek, fgetc, getc, getchar, fputc, putc, putchar, fgets, gets ), formatted I/O, stream errors, streams and file descriptors, file and directory maintenance (chmod, chown, unlink, link, symlink, mkdir, rmdir, chdir, getcwd), Directory handling system calls (opendir, readdir, closedir,rewinddir, seekdir, telldir) UNIT3: Unix Process and Signals: What is process, process structure, starting new process, waiting for a process, zombie process, process control, process identifiers, system call interface for process management-fork, vfork, exit, wait, waitpid, exec, system, SignalsSignal functions, unreliable signals, interrupted system calls, kill and raise UNIT4: System Programming-Files: System call basic, opening and closing a file, Using I/O Calls, Umask , Handling Errors, File sharing, Directory Navigation, Modifying entries in Directory, Reading the Inode, Checking the file access right, modifying file attribute. UNIT5: Shell Programming: Shell Script, Read, Using command line arguments, exit, the logical operator, conditional execution, if, test, case conditional, evaluate expression, expr, calling a script by different names, while looping , for, set and shift, trap, Debugging shell script, sample validation and data entry script.
Text Book(s): 1. W. Richard Stevens,Advaced Programming in the Unix Environment, Addison-Wesley, 1992 2. Sumitabha Das Unix concepts and Applications.Tata McGraw Hill,Second Edition,2001 1. 2. 3. 4. 5. Reference Book(s): M.J. Bach Design of UNIX O.S. , PHI Learning Y.Kanetkar Unix shell programming, BPB Pub. B.W. Kernighan & R. Pike, The UNIX Programming Environment, PHI Learning S.Prata Advanced UNIX: A Programming's Guide, BPB Publications, New Delhi. Beck Linux Kernel, Pearson Education, Asia.

Anda mungkin juga menyukai