From: "Андрей Великоредчанин" <andrew@rodtext.indi.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Как в программе на Си проверить наличие =?KOI8-R?Q?_=D3=C9=C4=C0=CB=C1_=D7_=C4=C9=D3=CB=CF=D7=CF=C4=
Date: Tue, 01 Oct 2002 14:25:02 +0400
Message-ID: <3D9977FE.6080408@rodtext.indi.ru> (raw)
In-Reply-To: <Pine.LNX.4.33.0210011418500.32528-100000@ontil.ihep.su>
Vitaly Lugovsky wrote:
>On Tue, 1 Oct 2002, Андрей Великоредчанин wrote:
>
>
>
>>Как в программе на Си проверить наличие сидюка в дисководе? Что-то нигде
>>ничего не нашел по этому поводу. :(
>>
>>
>
> 1) НА ФИГА?!?
> 2) Глупо, непортабельно, отвратительно, требует рутовых прав - заюзать
>ioctl навроде CDROM_DISC_STATUS или около того (см. cdrom.h за
>подробностями).
>
>
>
Мне это нужна для программки, кторая будет запускаться на initrd
загрузочного сидюка. Так что с правами и портабельностью все нормально.
А можно поподробнее на счет ioctl?
next prev parent reply other threads:[~2002-10-01 10:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-01 10:05 [Comm] Как в программе на Си проверить наличие сидюка в дисководе? Андрей Великоредчанин
2002-10-01 10:21 ` [Comm] Как в программе на Си проверить наличие =?KOI8-R?Q?_=D3=C9=C4=C0=CB=C1_=D7_=C4=C9=D3=CB=CF=D7=CF=C4= Vitaly Lugovsky
2002-10-01 10:25 ` Андрей Великоредчанин [this message]
2002-10-01 10:33 ` [Comm] Как в программе на Си проверить нал =?KOI8-R?Q?=C9=DE=C9=C5_=3D=3FKOI8-R=3FQ=3F=5F=3DD3=3DC9=3DC4=3DC0=3 Vitaly Lugovsky
2002-10-01 10:35 ` Андрей Великоредчанин
2002-10-01 10:34 ` [Comm] Как в программе на Си проверить наличие =?KOI8-R?Q?_=D3=C9=C4=C0=CB=C1_=D7_=C4=C9=D3=CB=CF=D7=CF=C4= Пушкин Сергей Алексеевич
2002-10-01 10:37 ` Vitaly Lugovsky
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=3D9977FE.6080408@rodtext.indi.ru \
--to=andrew@rodtext.indi.ru \
--cc=community@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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git