What are the Unix system calls for I/O? 1. open(pathname,flag,mode) - open file 2. creat(pathname,mode) - create file 3. close(filedes) - close an open file 4. read(filedes,buffer,bytes) - read data from an open file 5. write(filedes,buffer,bytes) - write data to an open file 6. lseek(filedes,offset,from) - position an open file 7. dup(filedes) - duplicate an existing file descriptor 8. dup2(oldfd,newfd) - duplicate to a desired file descriptor 9. fcntl(filedes,cmd,arg) - change properties of an open file 10. ioctl(filedes,request,arg) - change the behaviour of an open file 11. The difference between fcntl anf ioctl is that the former is intended for any open file, while the latter is for device-specific operations. - Study24x7
Social learning Network

Warning: include(./views/auth.php): failed to open stream: Permission denied in /var/www/html/live/loginRightSlider.php on line 18

Warning: include(): Failed opening './views/auth.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/live/loginRightSlider.php on line 18

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
16 Feb 2023 02:31 PM study24x7 study24x7

What are the Unix system calls for I/O? 1. open(pathname,flag,mode) - open file 2. creat(pathname,mode) - create file 3. close(filedes) - close an open file 4. read(filedes,buffer,bytes) - read data from an open file 5. write(filedes,buffer,bytes) - write data to an open file 6....

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles