Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the Unix system calls for I/O?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the possible return values of kill() system call?

848


Explain the unmount system calls?

954


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

834


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

949


Explain the mount and unmount system calls?

1067


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

857


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

829


What is the fork() system call?

940


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

877


Explain the mount system calls?

961


Explain the difference between command and utility in unix?

958


What is the difference between command and utility in unix?

935


How to protect a process from others to kill?

964