Y
Hacker News
new
|
ask
|
show
|
jobs
by
kazinator
847 days ago
Obscure fact #37: Glibc's implementation of
freopen
opens /proc/self/fd/<n>, when the pathname is null, e.g.:
freopen(NULL, "w", stdout);