[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-man
Subject: bug in open(2) example
From: Walter Harms <wharms () bfs ! de>
Date: 2021-02-26 17:10:19
Message-ID: cea059cb5360482182409e9093e361cd () bfs ! de
[Download RAW message or body]
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=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic