From: Jens Gustedt <jens.gustedt@inria.fr>
To: zhangtianci <zhangtianci1@huawei.com>
Cc: musl@lists.openwall.com, "Songyunlong (Euler)" <yunlong.song@huawei.com>
Subject: Re: [musl] [PATCH] stdio: Fix fdopen bug
Date: Wed, 19 Feb 2020 15:20:50 +0100 [thread overview]
Message-ID: <20200219152050.586df0d6@inria.fr> (raw)
In-Reply-To: <2dd69ee3939f469ab98a07d5337a8bf0@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 760 bytes --]
zhangtianci,
>POSIX's require on fdopen:
>
> The application shall ensure that the mode of the stream as
> expressed by the mode argument is allowed by the file access mode of
> the open file description to which fildes refers.
>
>So I think the example above should return EINVAL.
No, the "application" is the user code, so this is a requirement for
you, not musl.
Otherwise it would say "The *implementation* shall ensure …"
Jens
--
:: INRIA Nancy Grand Est ::: Camus ::::::: ICube/ICPS :::
:: ::::::::::::::: office Strasbourg : +33 368854536 ::
:: :::::::::::::::::::::: gsm France : +33 651400183 ::
:: ::::::::::::::: gsm international : +49 15737185122 ::
:: http://icube-icps.unistra.fr/index.php/Jens_Gustedt ::
[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2020-02-19 14:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-19 6:47 zhangtianci
2020-02-19 14:16 ` Rich Felker
2020-02-19 14:20 ` Jens Gustedt [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-02-19 2:37 Zhang Tianci
2020-02-19 3:44 ` Rich Felker
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=20200219152050.586df0d6@inria.fr \
--to=jens.gustedt@inria.fr \
--cc=musl@lists.openwall.com \
--cc=yunlong.song@huawei.com \
--cc=zhangtianci1@huawei.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).