Does rmdir(2) succeed? If so, what happens when the program tries to read the current directory?

Assume the following sequence of commands occurs in a program:




The results depend on the platform. On Solaris 10, rmdir(2) fails with errno set to EINVAL,because the directory is our current working directory. However, on FreeBSD 8.0, Linux 3.2.0, and Mac OS X 10.6.8, everything succeeds and the ?rstreaddir(3) returnsNULL

Computer Science & Information Technology

You might also like to view...

After the establishment of the project lifecycle model, the implementation processes embrace the activities of what process of the ISO 12207 standard?

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Use Microsoft Visio or Visible Analyst to view and print the use case diagram for the computer inventory system.

What will be an ideal response?

Computer Science & Information Technology

(Displaying Shapes with Asterisks) Write a program that prints a box, an oval, an arrow and a diamond as follows:


What will be an ideal response?

Computer Science & Information Technology

Professional users often want to associate their own domain names with their blog or wiki Web sites.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology