ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Konstantin Klimchev <koka@altlinux.ru>
To: devel@altlinux.ru
Subject: [devel] errno.h
Date: Wed, 2 Feb 2005 09:51:04 +0300
Message-ID: <20050202095104.6c8e591b@localhost.localdomain> (raw)

Добрый день!

Прошу совета (а то уже погряз в сомнениях "по самое
нихочу"):

есть фрюшный фрагмент кода

-----------------------------
report(LOG_ERR, "chroot %s: %s",
cf->chrootdir,strerror(*(__error())) );
-----------------------------
на котором, естественно, сборка спотыкается из-за
*(__error()) - на сколько я понял он есть только в libc.

Так вот. Как правильнее будет:

1) исправить  *(__error()) на errno

или

2) прописать в нужных местах то, что есть в libc:
extern 	int * 	__error();
#define errno	(* __error())

В принципе и так и так работает, но все таки...

-- 
Best Regards, Konstantin Klimchev 
(mailto:koka@atvc.ru    jabber:koka@jabber.atvc.ru)
ATK-Internet ISP, Arkhangelsk, Russia


             reply	other threads:[~2005-02-02  6:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-02  6:51 Konstantin Klimchev [this message]
2005-02-03  7:37 ` Mikhail Zabaluev
2005-02-03  8:48   ` Konstantin Klimchev

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=20050202095104.6c8e591b@localhost.localdomain \
    --to=koka@altlinux.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