ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Igor Homyakov <homyakov@ramax.spb.ru>
To: devel@altlinux.ru
Subject: Re: [devel] errno and threads
Date: Wed, 13 Nov 2002 12:06:47 +0300
Message-ID: <20021113090647.GD14670@kadath.pm.ramax.spb.ru> (raw)
In-Reply-To: <20021113092105.904B02B518@mail.ru.echo.fr>

On Wed, Nov 13, 2002 at 12:21:01PM +0300, Anton V. Boyarshinov wrote:
> Добрый день

> On Wed, 13 Nov 2002 11:48:13 +0300
> Igor Homyakov <homyakov@ramax.spb.ru> wrote:

> > Проясните ситуацию с использованием errno в многопоточных
> > программах. Насколько я понимаю, это зависит от реализации. 
> > 
> > В Linux переменная errno глобальная или локальная для каждого
> > процесса ?

> man errno
>  errno  is  thread-local;  setting  it in one thread does not
> affect its
>        value in any other thread.

> Более того, Стивенс утвержает, что она должна быть локальной для
> потока незваисимо от реализации.

Стивенс говорит "смотрите errno.h и узнаете".

--
Igor Homyakov
<homyakov at altlinux dot ru>
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=190141


  reply	other threads:[~2002-11-13  9:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-13  8:48 Igor Homyakov
2002-11-13  9:21 ` Anton V. Boyarshinov
2002-11-13  9:06   ` Igor Homyakov [this message]
2002-11-13 10:14     ` Anton V. Boyarshinov

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=20021113090647.GD14670@kadath.pm.ramax.spb.ru \
    --to=homyakov@ramax.spb.ru \
    --cc=devel@altlinux.ru \
    /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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git