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
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