program
Jan Kasprzak
kas na informatics.muni.cz
Pondělí Leden 19 14:25:52 CET 1998
Jaroslav Brandis pise:
: Zdravim ... Moze mi niekto prepisat tento program do Linuxu ?(RedHat 4.2)
:
: Mam tu takyto DOSovsky program:
:
:
: #include<stdio.h>
: #include<time.h>
: #include <dos.h>
: #define port 0x2fc
: void main()
: {
: printf("\n\nZaciatok cakania.");
if (ioperm(port,1,1)==-1) { perror("ioperm"); return 1; }
outb(port, inb(port)|1);
sleep(5);
printf("\nUz si sa dockal");
outb(port, inb(port) & ~1);
: }
Musi se to samozrejme spoustet jako root.
-Yenya
--
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz> http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz 0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\ Czech Linux Homepage: http://www.linux.cz/ ///
|| I find that the algol60 interpreter, teco and jclsh (ibm JCL emulator ||
|| shell) are very good for teaching people that computing has moved on. ||
|| -- Alan Cox in redhat-devel ||
Další informace o konferenci Linux