all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: dmantipov@yandex.ru, emacs-devel@gnu.org
Subject: Re: h_errno?
Date: Fri, 15 Feb 2013 21:44:54 +0200	[thread overview]
Message-ID: <83k3q9s6o9.fsf@gnu.org> (raw)
In-Reply-To: <511E87DA.8090203@cs.ucla.edu>

> Date: Fri, 15 Feb 2013 11:09:14 -0800
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: Dmitry Antipov <dmantipov@yandex.ru>, emacs-devel@gnu.org
> 
> On 02/15/2013 02:19 AM, Eli Zaretskii wrote:
> > I guess most of w32 functions that set h_errno can stop doing
> > that now.
> 
> If memory serves, h_errno is part of an obsolete POSIX
> interface that Emacs no longer uses now, if the platform
> supports the current POSIX interface.  As I understand it,
> the w32 code emulates the obsolete interface, so if the
> policy is to emulate the interface rather than do the
> minimal work needed to support Emacs, then w32 code needs to
> set h_errno when it emulates that interface.

The problem is that (a) w32 code sets h_errno to values that come from
errno.h, which is clearly wrong, and (b) it sets h_errno in many
network functions that are not documented to set h_errno, like accept,
recvfrom, sendto, listen, etc.  I will fix both of these soon.

> The declaration of h_errno isn't needed in src/process.c;
> it's a leftover from some old code that was removed.  So I
> removed the unused decl in trunk bzr 111791.

Thanks.



  reply	other threads:[~2013-02-15 19:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-15  9:10 h_errno? Eli Zaretskii
2013-02-15  9:46 ` h_errno? Dmitry Antipov
2013-02-15 10:19   ` h_errno? Eli Zaretskii
2013-02-15 19:09     ` h_errno? Paul Eggert
2013-02-15 19:44       ` Eli Zaretskii [this message]
2013-02-16 11:11         ` h_errno? Eli Zaretskii
2013-02-15 11:57   ` h_errno? Andreas Schwab

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=83k3q9s6o9.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dmantipov@yandex.ru \
    --cc=eggert@cs.ucla.edu \
    --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.