ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] klibc incompatibilities
Date: Mon, 17 Aug 2009 00:15:46 +0400
Message-ID: <20090816201546.GF1398@wo.int.altlinux.org> (raw)
In-Reply-To: <1250444874.26848.21.camel@marsh.altlinux.lan>

[-- Attachment #1: Type: text/plain, Size: 2024 bytes --]

On Sun, Aug 16, 2009 at 09:47:54PM +0400, Valery V. Inozemtsev wrote:
> > > > > да, совсем забыл... на самом деле все еще страшнее. для нашего glibc
> > > > > (собранного с хидерами от 2.6.29) нужно ядро 2.6.27 и выше. т.ч. это
> > > > > 2.6.18 все еще работает просто чудом или весь юзерспейс, что там
> > > > > работает, не использует (пока не использует) новые системные вызовы.
> > > > 
> > > > Валера, тот эффект, который ты описываешь, правильно было бы назвать
> > > > glibc ABI break.  Только я этот вопрос специально проверял, и ничего
> > > > подозрительного не выявил.  Так что, пожалуйста, расскажи подробности.
> > > > 
> > > 
> > > вот пример (тот же код и в glibc)
> > > http://git.altlinux.org/people/shrek/packages/?p=klibc.git;a=blob;f=usr/klibc/signalfd.c;h=1edc05d936229b5cbf5b56afc1fb2c0ddf56f458;hb=HEAD
> > > __NR_signalfd4 появился в 2.6.27
> > > есть еще кучка at()
> > > http://git.altlinux.org/people/shrek/packages/?p=klibc.git;a=commitdiff;h=7383280c094de24c926623b3996ce651e9d812d4
> > 
> > klibc - это простая библиотека, которая, в отличие от glibc, не
> > обеспечивает обратной совместимости.  В glibc совсем другой код,
> > при желании можешь посмотреть.
> 
> реализация signalfd в klibc была мной слизана из glibc практически 1:1

Если glibc собран со старыми хедерами ядра, то получится signalfd(),
который всегда будет возвращать ENOSYS.
Если glibc собран с новыми  хедерами ядра, то получится signalfd(),
который будет возвращать ENOSYS только на старых ядрах, которые не
поддерживают signalfd(2).

Если какой-то userspace завязан на signalfd(2), то он будет работать
только на тех ядрах, котрые поддерживают signalfd(2).  Интересно,
кто-нибудь уже заложился на этот signalfd(2) в такой степени?

> > Вопрос, эти новые системные вызовы в безусловной реализации klibc
> > уже где-нибудь используются?  Если да, то начиная с каких сборок?
> 
> они используются в udev >= 143

Т.е. в Сизифе udev ещё не использует эти системные вызовы.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  parent reply	other threads:[~2009-08-16 20:15 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-16 14:24 [sisyphus] q: libusb{,-compat} и 2.6.18-ovz-rhel Michael Shigorin
2009-08-16 14:30 ` Valery V. Inozemtsev
2009-08-16 15:58   ` Valery V. Inozemtsev
2009-08-16 16:52     ` Dmitry V. Levin
2009-08-16 17:15       ` Valery V. Inozemtsev
2009-08-16 17:33         ` [sisyphus] klibc incompatibilities Dmitry V. Levin
2009-08-16 17:47           ` Valery V. Inozemtsev
2009-08-16 17:53             ` Valery V. Inozemtsev
2009-08-16 23:27               ` Dmitry V. Levin
2009-08-16 20:15             ` Dmitry V. Levin [this message]
2009-08-17  5:39               ` Valery V. Inozemtsev
2009-08-16 16:54   ` [sisyphus] q: libusb{,-compat} и 2.6.18-ovz-rhel Dmitry V. Levin
2009-08-16 17:17     ` Valery V. Inozemtsev
2009-08-16 18:20       ` Michael Shigorin
2009-08-16 18:30         ` Valery V. Inozemtsev
2009-08-16 18:33           ` Michael Shigorin
2009-08-16 21:36         ` Alexey Borovskoy
2009-08-17 17:05         ` Valery V. Inozemtsev
2009-08-17 17:17           ` Michael Shigorin
2009-08-17 15:56 ` Michael Shigorin
2009-08-17 16:21   ` Alexander Bokovoy
2009-08-17 16:47     ` Michael Shigorin
2009-08-17 16:48   ` Valery V. Inozemtsev
2009-08-17 16:49 ` Dmitry V. Levin
2009-08-17 16:52   ` Michael Shigorin
2009-08-17 16:56   ` Valery V. Inozemtsev
2009-08-17 21:02   ` [sisyphus] q: libusb error handling bug Dmitry V. Levin
2009-08-18  3:55     ` Alexander Bokovoy
2009-08-18  7:13       ` Michael Shigorin
2009-08-18  8:54         ` Alexander Bokovoy

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=20090816201546.GF1398@wo.int.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@lists.altlinux.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

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