bug in open(2) example
Hi List,
the example for O_TMPFILE is broken:
linkat(fd, NULL, AT_FDCWD, "/path/for/file", AT_EMPTY_PATH);
^^^^^^as the linkat(2) page says "Empty String" not NULL.
see:https://man7.org/linux/man-pages/man2/open.2.html
re,
wh
Hi Walter,
Quoted 4 lines · Walter Harms
the example for
O_TMPFILEis broken:linkat(fd, NULL, AT_FDCWD, "/path/for/file", AT_EMPTY_PATH); ^^^^^^as the linkat(2) page says "Empty String" not NULL.
Thanks! I'll send a patch to Michael.
Cheers,
Alex
Signature · 3 lines
Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/