From: Jarek Czekalski <jarekczek@poczta.onet.pl>
To: emacs-devel@gnu.org
Subject: Re: after r114507 cannot build on msys - dup2 problem
Date: Thu, 31 Oct 2013 20:22:14 +0100 [thread overview]
Message-ID: <5272ADE6.1050905@poczta.onet.pl> (raw)
In-Reply-To: <5272A824.3000300@poczta.onet.pl>
If there are ever any problems with dup2 here is my analyze:
Emacs code never uses the feature of dup2, that it returns the
descriptor. In most cases the return value is ignored. In emacs.c the
return value is tested for < 0, which is compatible with both msvcrt and
posix.
So the test in m4/dup2.m4 whether dup2(1, 1) returns 1 is not needed and
could be skipped.
Other tests for dup2 are passed on mingw.
Jarek
prev parent reply other threads:[~2013-10-31 19:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-31 17:44 after r114507 cannot build on msys Jarek Czekalski
2013-10-31 18:16 ` after r114507 cannot build on msys - dup2 problem Jarek Czekalski
2013-10-31 18:17 ` after r114507 cannot build on msys Eli Zaretskii
2013-10-31 18:57 ` after r114507 cannot build on msys - dup2 problem Jarek Czekalski
2013-10-31 19:22 ` Jarek Czekalski [this message]
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=5272ADE6.1050905@poczta.onet.pl \
--to=jarekczek@poczta.onet.pl \
--cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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.