
"2 ESSENTIAL SYSTEM CALLS EVERY BEGINNER SHOULD KNOW"
INRODUCTION :- WHAT ARE SYSTEM CALLS? Basically in simple language they are calls made by the user to interact with the system. They are often used in low level programming as it is meant for interacting with the system. WHY THEY EVEN MATTER? As i have said earlier they are for interacting with the system directly. EXPLANATION OF EACH SYSTEM CALL:- ** 1]open()=> It the basic file system call made in every code where we want to interact with the filesystem. Basically it for opening the file. **Syntax:- open(const char *pathname, int flags) ; OR open(const char *pathname , int flags , mode_t mode); pathname → Path to the file flags → How the file should be opened mode → Permissions (used when creating a file) Actually what's happening internally is when you call open() the operating system changes from user mode to kernel mode and first looks for the file through the path you defined, if the file doesn't exist it shows error and if it exists then it checks for the permission. If the perm
Continue reading on Dev.to
Opens in a new tab



