CS631 -- Advanced Programming in the UNIX Environment

Code reading: stat(1)


Compare the different implementations of the stat(1) command between GNU coreutils and NetBSD.

How do the tools differ in usage and output? Why do you think the implementors have chosen different paths?

How do the implementations differ in code? Which one is easier to read, which one strikes you as simpler, which one as more flexible or extensible?

Can you think of additional use cases or flags? Can you add them?

[Course Website]