From: Walter Harms <wharms@bfs.de>
To: "linux-man@vger.kernel.org" <linux-man@vger.kernel.org>
Subject: bug in open(2) example
Date: Fri, 26 Feb 2021 17:10:19 +0000 [thread overview]
Message-ID: <cea059cb5360482182409e9093e361cd@bfs.de> (raw)
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
next reply other threads:[~2021-02-26 17:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-26 17:10 Walter Harms [this message]
2021-02-26 20:03 ` bug in open(2) example Alejandro Colomar (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cea059cb5360482182409e9093e361cd@bfs.de \
--to=wharms@bfs.de \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox