From: Andries.Brouwer@cwi.nl
To: alan@lxorguk.ukuu.org.uk, cyeoh@samba.org
Cc: linux-kernel@vger.kernel.org, marcelo@conectiva.com.br,
torvalds@transmeta.com, trivial@rustcorp.com.au
Subject: Re: [PATCH] fcntl returns wrong error code
Date: Tue, 26 Mar 2002 23:50:42 GMT [thread overview]
Message-ID: <UTC200203262350.XAA421357.aeb@cwi.nl> (raw)
> When fcntl(fd, F_DUPFD, b) is called where 'b' is greater than the
> maximum allowable value EINVAL should be returned. From POSIX:
>
> "[EINVAL] The cmd argument is invalid, or the cmd argument is F_DUPFD and
> arg is negative or greater than or equal to {OPEN_MAX}, or ..."
... Also we sort of have a problem since OPEN_MAX is not
a constant on Linux x86. I guess that means a libc enforced
behaviour or something for that bit
OPEN_MAX is described in the <limits.h> POSIX man page
as a runtime invariant constant. However, it is allowed
to be indeterminate, so no problems arise, I think.
Andries
next reply other threads:[~2002-03-26 23:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-26 23:50 Andries.Brouwer [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-03-21 6:09 Christopher Yeoh
2002-03-21 13:28 ` Alan Cox
2002-03-21 13:58 ` Christopher Yeoh
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=UTC200203262350.XAA421357.aeb@cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=cyeoh@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
--cc=torvalds@transmeta.com \
--cc=trivial@rustcorp.com.au \
/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
all inboxes | Powered by JetHome®