edited by
518 views

1 Answer

Best answer
0 votes
0 votes

@jugnu1337

A system call is a method for a computer program to request a service from the kernel of the operating system on which it is running…

 

A system call is a method of interacting with the operating system via programs. A system call is a request from computer software to an operating system's kernel....

The Application Program Interface (API) connects the operating system's functions to user programs. It acts as a link between the operating system and a process, allowing user-level programs to request operating system services...

The kernel system can only be accessed using system calls. System calls are required for any programs that use resources....

The Seek operation allows the application program to change the value of the file pointer so that subsequent Read/Write is performed from a new position in the file...

The new value of the file pointer is determined by adding the offset to the current value...

A negative Offset will move the pointer backwards. An Offset of 0 will reset the pointer to the beginning of the file.

If a positive offset goes beyond the size of the file, the seek position will be set to the file size. A negative offset leading to LSeek value below 0 will give an error...

 

1. http://www2.cs.uregina.ca/~hamilton/courses/330/notes/unix/filesyscalls.html

 

 

selected by

Related questions

2 votes
2 votes
3 answers
2