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

Answers

– 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.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Erected in 1792, this grew on to become India's first modern observatory. Sailorsuveyor-astronomer Michael Topping came here with his instruments in 1785. Which city are we referring to?
  • Q What was Americas first organised sport
  • Q explain common bile duct
  • Q How do I make sure my servers have the same time?
  • Q What do you understand by an Implicit Variable?
  • Q What are the types of project?
  • Q Under LRS (Liberalised Remittance Scheme) resident individual limit has been changed from $200000 to
  • Q Is the microstrategy mdx engine certified by sap?
  • Q How can you specify no duplicate key?
  • Q What is the picture clause of null indicator variable?
  • Q Explain the working of an electronic P.I.D. controller.