programn

Jaroslav Brandis brandis na savba.sk
Pondělí Leden 19 15:00:07 CET 1998


A tie includy nechat tak alebo ich uplne vypustit ?
A este otazka ..

Ja som totizto v programatorskych veciach absolutny analfabet:
NApis mi aj postup ako to skompilovat a ten program mi skus dat do formatu
pre absolutneho blbca.

Dikec ..


> 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.


Další informace o konferenci Linux