System Calls



open()

open : This call opens or creates a file if not present.

creat()

creat : it creates a new file or rewrites an existing one

close()

close : It closes an open file, returns -1 in case of error.

read()

read: This is used to read a certain number of bytes starting from current position.

write()

write: This is used to write a certain number of bytes starting from current position.

lseek()

Lseek: This call is used to position a pointer in an absolute or relative way.

link()

Link: This call is used to link one file to another directory. I.e it changes the path of the file.

unlink()

Unlink: This call unlinks the link that was created.

access()

Access: This call checks whether the calling process can access the file pathname.

chmod()

Chmod: This system call modifies the access rights of a certain file.