Elektrine lite

← Feed

@jschauma@mstdn.social

2026-09-18 12:36 UTC

Advanced Programming in the #UNIX Environment Week 2: open(2) and close(2) Having introduced the concept of file descriptors, let's look at 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 to open(2). 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

Replies (1)

  • @jschauma@mstdn.social 2026-09-19 19:56

    Advanced Programming in the #UNIX Environment Week 2: read(2)/write(2)/lseek(2) In this video lecture, we will go into the details of the read(2), write(2), and lseek(2). We'll also do a few weird things with file descriptors, and take a look at how we can ensure I/O efficiency when making these system calls. https://youtu.be/EUUPw8MOV_A

    Open ##4801199