Re: Want to use Digital Oszilloscope DSO-2100 at parport LPT1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixed code: /* Hopefully... Wrapping WILL %#$% it up... */
#include<sys/io.h>
#include<stdio.h>
#include <unistd.h>

int main(int argc, char *argv[])
{
    ioperm(0,0x3ff,1); /* Dangerous, overkill, allows access to all ports */

   /* setuid(<your uid>); /* Drops permissions - have never used it,
check docs... Environment should probably be set up as well */
    execlp("wine","wine","application.exe",NULL); /* My unix C coding
needs practice, so this might just destroy your PC, read docs... */
    printf("Failed to run Wine\n");
    return 1; /* Should never run */
}


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux