VTU Computer Science (Semester 6)
Unix Systems Programming
December 2013
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) Explain the major difference between ANSI C and K and R C?
4 M
1 (b) List and explain all the POSIX.I defined constants for limits checking at compile time and Run time.
8 M
1 (c) Write a C/C++ program to print the POSIX defined configuration options supported on any given system.
8 M

2 (a) With a neat diagram explain the Unix kernel support for files.
8 M
2 (b) What are inodes in Unix? What are its significance? Explain with examples.
6 M
2 (c) Describe Hard links and symbolic links in Unix. Differentiate between them with examples.
6 M

3 (a) Explain the following general file APIs.
i) fentl() ii) Iseek() iii) stat()
12 M
3 (b) Explain the device file APIs and FIFO file APIs with examples.
8 M

4 (a) With a neat diagram describe how a C-program is started and various ways it terminates?
7 M
4 (b) With a neat sketch, explain the memory layout of a C-program.
7 M
4 (c) Write a C/C++ program to illustrate the use of setjmp() and longjmp() functions?
6 M

5 (a) Write a C/C++ program to create a new process? Also explain the similarities and dissimilarities between the parent and child process?
7 M
5 (b) Explain in detail the family of exec functions.
7 M
5 (c) What is process accounting? Write a C/C++ program to generate accounting data.
6 M

6 (a) What are signals? Write a C/C++ program to catch. Ignore and accept the default actions of the signal?
6 M
6 (b) What is a signal mask of a process? Write a C/C++ program to check whether the SIGINT signal is present in a signal mask and adds if it is not there?
6 M
6 (c) Describe the Daemon characteristics and coding rules for the Daemon process? Also write a C/C++ program to initialize the daemon process.
8 M

7 (a) What are pipes? Write a C/C++ program to send data from parent to child over a pipe?
10 M
7 (b) What are FIFOs? With a neat diagram, explain the client server communicating FIFOs.
10 M

8 (a) Explain the socket system calls for both in the connection ? oriented and connectionless protocols with neat diagrams for both the cases.
10 M
8 (c) Write short notes on the following:
i) Terminal login
ii) Job control
iii) wait() and waitpid() APIs
iv) Resource limit functions APIs.
10 M



More question papers from Unix Systems Programming
SPONSORED ADVERTISEMENTS