First Previous Next Last Index
Slide 20 of 42

Notes:

Supply actual 2nd descriptor with dup2

- If fd2 is open, it is first closed

Fcntl - 4 different functions in 1
  1. Duplicate

  2. File descriptor flags - only 1 - FD_CLOEXEC - file is closed across an exec

  3. File status flags - O_RDONLY, O_WRONLY, O_RDWR, O_APPEND, O_CREAT, O_TRUNC, O_EXCL, O_NONBLOCK

    -set: only O_APPEND and O_NONBLOCK can be changed

  4. Record or range locking or byte locking

File Sharing


Top Unable to parse SSI