What are the Unix system calls for I/O?

Answers were Sorted based on User's Feedback



What are the Unix system calls for I/O?..

Answer / wizards

read and write

Is This Answer Correct ?    21 Yes 6 No

What are the Unix system calls for I/O?..

Answer / havefun

read and write are the most commonly used system calls for
doing I/O.
Apart from them you can use lseek() to read from a specific
offset from a file.

In general, if you want to find how system calls work,
please visit my blog
http://havefunwhileulearn.blogspot.com/2010/03/systems-
calls.html

Is This Answer Correct ?    7 Yes 2 No

What are the Unix system calls for I/O?..

Answer / soniya gupta

open(pathname,flag,mode) - open file
creat(pathname,mode) - create file
close(filedes) - close an open file
read(filedes,buffer,bytes) - read data from an open file
write(filedes,buffer,bytes) - write data to an open file
lseek(filedes,offset,from) - position an open file
dup(filedes) - duplicate an existing file descriptor
dup2(oldfd,newfd) - duplicate to a desired file descriptor
fcntl(filedes,cmd,arg) - change properties of an open file
ioctl(filedes,request,arg) - change the behaviour of an open
file
The difference between fcntl anf ioctl is that the former is
intended for any open file,
while the latter is for device-specific operations.

Is This Answer Correct ?    5 Yes 0 No

What are the Unix system calls for I/O?..

Answer / it brat

fork()
sleep()
wait()
exec()

Is This Answer Correct ?    13 Yes 12 No

Post New Answer

More Unix System Calls Interview Questions

Tell me how to protect a process from others to kill?

0 Answers  


What is the fork() system call?

0 Answers  


Name the command which is used to execute system calls from exe?

0 Answers  


What is the difference between command and utility in unix?

0 Answers  


How to protect a process from others to kill?

0 Answers  






What is the first process created by the kernel in unix?

0 Answers  


c program to implement the unix or linux command to implement ls -l >output.txt

5 Answers   Arihant,


What are the Unix system calls for I/O?

4 Answers  


The very first process created by the kernel in unix is?

0 Answers  


What command is used to execute system calls from exe?

3 Answers   Axis Technologies,


what is diff between command and utility in unix

3 Answers  


Explain the unmount system calls?

0 Answers  


Categories