From: Jon Grant <jg-hus3n9K41k0@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: errno man page query
Date: Sun, 22 Apr 2012 12:17:22 +0100 [thread overview]
Message-ID: <4F93E8C2.5000903@jguk.org> (raw)
Hello
Quoting from this page:
http://man7.org/linux/man-pages/man3/errno.3.html
"a function that succeeds is allowed to change errno."
^ This sounds clear, e.g. open() can change errno to 0, when it returns
a valid fd handle.
"Valid error numbers are all nonzero; errno is never set to zero by any
system
call or library function."
^ This seems to be counter what the earlier line said. Therefore, open()
wouldn't be allowed to change errno to 0.
Have I missed something?
Best regards, Jon
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2012-04-22 11:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-22 11:17 Jon Grant [this message]
[not found] ` <4F93E8C2.5000903-hus3n9K41k0@public.gmane.org>
2012-04-22 21:14 ` errno man page query Michael Kerrisk (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=4F93E8C2.5000903@jguk.org \
--to=jg-hus3n9k41k0@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.