From: Artem <u2u@nm.ru> To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru> Subject: [sisyphus] __constant_htons vs htons в iputils Date: Tue, 24 May 2005 16:39:43 +0300 Message-ID: <42932E9F.50508@nm.ru> (raw) Экспериментируя со сборкой 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 (сизиф)
reply other threads:[~2005-05-24 13:39 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=42932E9F.50508@nm.ru \ --to=u2u@nm.ru \ --cc=sisyphus@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 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