delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-Terra-Karma: | 0% |
X-Terra-Hash: | 00bdde33b18530a7f772b45025de9a4c |
Received-SPF: | pass (soluezi.terra.com.br: domain of terra.com.br designates 200.176.10.13 as permitted sender) client-ip=200.176.10.13; envelope-from=pppd AT terra DOT com DOT br; helo=terra.com.br; |
Date: | Thu, 25 Aug 2005 17:59:16 -0300 |
Message-Id: | <ILSQAS$678CF0EA0BF06586054016072C86B05F@terra.com.br> |
Subject: | Re: 1.5.18 ( 0.132/4/2 ) - ioperm - OpenSCManager failed |
MIME-Version: | 1.0 |
X-Sensitivity: | 3 |
From: | "Douglas Schilling Landgraf" <pppd AT terra DOT com DOT br> |
To: | "gerrit" <gerrit AT familiehaase DOT de> |
Cc: | "cygwin" <cygwin AT cygwin DOT com> |
X-XaM3-API-Version: | 4.1 (B100) |
X-SenderIP: | 200.248.254.100 |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id j7PKxfNs025953 |
Thanks Gerrit, I got how to compile my program reading "README" file ;o). It needs use -lioperm flag ( On Linux it's -O2 for ioperm functions ) . $ gcc -o io io.c -lioperm $./io Illegal instruction ( code dumped ) I don't know why it happens on Cygwin. On Linux the same code works fine ( below ). Maybe permission ( I'm using Windows XP SP2 )? I'm looking for it. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/io.h> int main( void ) { unsigned char Value; ioperm(0x378, 3, 1); Value = inb(0x378+1); ioperm(0x378, 3, 0); printf("Status Parallel Port -> 0x%x\n", Value ); return 0; } Best Regards, Douglas Schilling Landgraf > pppd wrote: > > > $ ioperm -i > > OpenSCManager function call failed. > > Error: ioperm.sys installation failed. > > > > and then.. > > > > $ ioperm.sys > > bash: /usr/bin/ioperm.sys: Permission denied > > > > Does anybody can help me ? > > From the website: > Install (activate) ioperm.sys driver using ioperm -i. This is required > only for Windows NT/2000/XP. > > This works for me. Maybe Administator rights are needed to install > driver? > > Would be nice if this information could be included in the README. > > > Gerrit > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |