Which of the follov become a copy/du first if necessary? O dup(2)

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter11: Exception Handling
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question
Which of the following best describes a system call that makes one file descriptor
become a copy/duplicate of another file descriptor, closing the other file descriptor
first if necessary?
dup(2)
O dup2(2)
close(2)
All of the above.
None of the above.
Transcribed Image Text:Which of the following best describes a system call that makes one file descriptor become a copy/duplicate of another file descriptor, closing the other file descriptor first if necessary? dup(2) O dup2(2) close(2) All of the above. None of the above.
What member of the stat structure contains the size of the file in bytes?
st_mode
O st_size
st_blocks
st_nlinks
None of the above
Which of the following members of the stat structure would change if a file's
permissions are altered? Assume fstat(2) is called again.
O st_atim
st_mtim
O st_ctim
O All of the above.
O None of the above.
Transcribed Image Text:What member of the stat structure contains the size of the file in bytes? st_mode O st_size st_blocks st_nlinks None of the above Which of the following members of the stat structure would change if a file's permissions are altered? Assume fstat(2) is called again. O st_atim st_mtim O st_ctim O All of the above. O None of the above.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L