CDrom lock

Christos Ricudis ricudis at paiko.gr
Tue Aug 11 01:31:13 EEST 1998


Hello Linux-greek-users!

Linux-greek-users wrote to All about "CDrom lock":

 L> 3erei kanenas gia kanena util pou na kleidwnei to cdrom, ennow na

Nai.
Gia na kleidwseis to CD, kane

int i;
i=open("/dev/cdrom",O_RDONLY);

Gia na ksekleidwseis to CD, kane

close(i);

:>

Ston uniform CD ROM driver toy Linux 2.1, exei ena IOCTL poy kleidwnei to CD,
den eida omws kanena poy na to KSEKLEIDWNEI - isws ginetai pali aytomata afou
kleiseis to device. Gia rikse mia matia sto include/linux/cdrom.h

Ciao,
  Christos
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list