ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] __constant_htons vs htons в iputils
@ 2005-05-24 13:39 Artem
  0 siblings, 0 replies; only message in thread
From: Artem @ 2005-05-24 13:39 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

Экспериментируя со сборкой iputils (iputils - 20020927, сизиф) под 
headers от 2.6 обнаружил,
что в нем используются как макрос htons так и __constant_htons.
htons (и ему подобные), насколько я понял, определен в glibc-headers.
__constant_htons - макрос, используемый ядром? По крайней мере без
define __KERNEL__ его так не подключишь в iputils - он определен
в файлах каталога linux/byteorder и подключается в них через условие
#if defined(__KERNEL__) .
Это использование __constant_htons - "наследие" трудных времен?
В какой-то рассылке (по connectiva, что-ли?) проскакивало, что замена
__constant_htons на htons  - правильный вариант (для программ уровня 
пользователя,
насколько я могу сделать вывод) . Может, кто-то имеет более достоверную 
информацию
по этому поводу?

P.S. Подобные "фишки" имеются и в iproute2 (сизиф)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-24 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-24 13:39 [sisyphus] __constant_htons vs htons в iputils Artem

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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