VTU Computer Science (Semester 6)
Unix Systems Programming
December 2015
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


1 (a) Discuss the differences between ANSI C and K & R C with example for each.
10 M
1 (b) What are the API common characteristics? List any six values of the global variable errno along with their meanings whenever API's fail.
10 M

2 (a) Explain the command to create different file types supported by UNIX.
6 M
2 (b) Explain UNIX Kernel support for files with a neat diagram.
8 M
2 (c) Differentiate symbolic links and hard links.
6 M

3 (a) Explain the following general file API's.
i) open()   ii) fcntl()   iii) Iseek()
12 M
3 (b) Explain Symbolic Link file API's.
8 M

4 (a) Draw and explain the summary of starting and terminating a C program.
6 M
4 (b) With a neat sketch, explain the memory layout of a C-program.
6 M
4 (c) Explain exit, _exit and atexit functions with their prototypes.
8 M

5 (a) What is a race condition? Write a program for generating race condition.
8 M
5 (b) Explain in detail the family of exec functions.
12 M

6 (a) What are signals? Write a program to setup signal handler for the SIGINT signal using sigaction API.
6 M
6 (b) What is signal mask of a process? Explain sigprocmask function along with its prototype.
6 M
6 (c) Define daemon process. Discuss the basic coding rules of the daemon process.
8 M

7 (a) Discuss the applications of FIFOs.
4 M
7 (b) Explain Popen and Pclose functions.
6 M
7 (c) Explain different API's used with message queues.
10 M

8 (a) Explain shmget, shmctl, shmat and shmdt functions.
12 M
8 (b) Write short notes on client server properties.
8 M



More question papers from Unix Systems Programming
SPONSORED ADVERTISEMENTS