.hy 0 .ad l .nf No Medium Found, 3.0, Notes
Prev, Top Slide, Next

3. Message Content

This code:
int fd = explain_open_or_die("some/thing", O_RDONLY, 0);
produces this messsage:
open(pathname = "some/file", flags = O_RDONLY) failed, No such file or directory (2, ENOENT) because there is no "some" directory in the current directory
This breaks down into three pieces:
system-call failed, system-error because explanation

3.1 Before Because

slide
open(pathname = "some/file", flags = O_RDONLY) failed, No such file or directory (2, ENOENT) because ...

3.2 After Because

slide
\&...because there is no "some" directory in the current directory

3.3 Internationalization

slide

3.4 Postmortem

slide

3.5 Philosophy

slide