Jan Schaumann on Nostr: Advanced #Programming in the #UNIX Environment Week 2, basic I/O with file ...
Advanced #Programming in the #UNIX Environment
Week 2, basic I/O with file descriptors: open(2) and close(2)
We see what happens when we try to create a file, "create" an existing file, open an existing file, truncate a file, and look at the various other flags we can pass. We also note the perhaps surprising number of ways in which open(2) can fail and take a look at openat(2) and TOCTOU defenses.
https://youtu.be/QnL4eYpb5Iw
#apue
Week 2, basic I/O with file descriptors: open(2) and close(2)
We see what happens when we try to create a file, "create" an existing file, open an existing file, truncate a file, and look at the various other flags we can pass. We also note the perhaps surprising number of ways in which open(2) can fail and take a look at openat(2) and TOCTOU defenses.
https://youtu.be/QnL4eYpb5Iw
#apue