2026-09-13 19:16 UTC
Advanced Programming in the #UNIX Environment
Week 1, Unix Basics
We write our first trivial program, which promptly segfaults and gives us a chance to explain function forward declarations and maneuvering man pages and set our default compiler flags ("-Wall -Werror -Wextra"), then proceed to write the most trivial versions of cat(1), ls(1), and even a rudimentary shell including a signal handler.
https://youtu.be/w3spRzZ8bSA
Slides: https://stevens.netmeister.org/631/01-basics.pdf
Replies (1)
-
@jschauma@mstdn.social 2026-09-16 20:49
Advanced Programming in the #UNIX Environment Week 2: File Descriptors To introduce the concept of file descriptors, let's start with a simple question: how many file descriptors can a unix process open? Finding the answer helps us introduce a few different limits that may apply across the system, for a given user, or just a process. As a fun exercise, try setting "ulimit -n 0" in your shell and see what happens. Can you explain why? https://youtu.be/h5A1OQjuCqk