1 (a)
All posix confirming system are not unix system.(True/ False).
1 M
1 (b)
What are the restrictions specified to POSIX by FIPS standard?
7 M
1 (c)
Define different C preprocessor symbols defined by ANSIC.
6 M
1 (d)
What is emo variable? Write a C/C++ program error diagnostic message of API executions (using this variable).
6 M
2 (a)
With a neat structure, explain how Kernel supports for files (file operation open, read/write,ℓseek)
10 M
2 (b)
What is the relationship between file stream pointer and file descriptor? What functions to be used to convert them one from each other.
6 M
2 (c)
Give any four differences between hard link and symbolic link files.
4 M
3 (a)
What is umask value? What is the actual permission set for newly created file , if umask value is 0002 and permission specified in open call is 0664? Define how umask value can be changed by calling process to remove write permission of group members and read, write permission for other members.
5 M
3 (b)
Write C/C++ command line program to implement Unix mv command.
5 M
3 (c)
What access permission is set for a process created while executing executable file, if set UID and set GID flags are ON?
5 M
3 (d)
Define structure flock. Create a write lock for a region behind 5 bytes from current file offset position to the end of the file. Consider file size is 100 bytes and current file offset is at 10 bytes.
5 M
4 (a)
Illustrate with simple program how atexit function is used to register exit handler function.
7 M
4 (b)
What alloca function? Indicate any one advantage and disadvantage of this function.
3 M
4 (c)
What is the use of setjmp and longjmp functions? Illustrate them with simple program.
10 M
5 (a)
What is the effect when following happens in the system?
i) Parent terminates before child
ii) Child terminated before parent and parent not waited for child termination status.
iii) Any of the Init child process terminates.
i) Parent terminates before child
ii) Child terminated before parent and parent not waited for child termination status.
iii) Any of the Init child process terminates.
6 M
5 (b)
Explain wait and waitpid functions. What are the macros defined by POSIX.1 to check how process is terminated?
8 M
5 (c)
What is exec function? Describe different exec function with their prototypes.
6 M
6 (a)
Explain characteristics of sessions and process groups with a neat diagram.
8 M
6 (b)
Explain with a neat diagram how Kernel supports for signals.
6 M
6 (c)
Explain sigaction API with its prototype.
6 M
7 (a)
What are pipes? With a simple diagram show how parent and child communicate using pipes. Write a program to send data from parent to child over a pipe.
12 M
7 (b)
What is FIFO? With a neat figure show FIFO's are used for client server communication.
8 M
8 (a)
What is message queue? Write functions to use message queue in sending and receiving data.
10 M
Write a short note on (any two)
8 (b) i)
popen and pclose functions.
5 M
8 (b) ii)
Semaphores.
5 M
8 (b) iii)
Characteristics of Daemon process.
5 M
More question papers from Unix Systems Programming