From owner-freebsd-questions@FreeBSD.ORG Sat Oct 18 16:59:48 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2A7416A4B3 for ; Sat, 18 Oct 2003 16:59:47 -0700 (PDT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id AB2D643F93 for ; Sat, 18 Oct 2003 16:59:46 -0700 (PDT) (envelope-from pcc@gmx.net) Received: (qmail 20137 invoked by uid 0); 18 Oct 2003 23:59:45 -0000 Received: from 217.227.145.178 by www67.gmx.net with HTTP; Sun, 19 Oct 2003 01:59:45 +0200 (MEST) Date: Sun, 19 Oct 2003 01:59:45 +0200 (MEST) From: "Peter Cornelius" To: FreeBSD-Questions@FreeBSD.Org MIME-Version: 1.0 X-Priority: 5 (Lowest) X-Authenticated: #491680 Message-ID: <31243.1066521585@www67.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Subject: ? getopt_long(), iopl() and ioperm() ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2003 23:59:48 -0000 Hi there, I'm hacking at a piece of code that I want to turn into a port. It's from Linux and uses libpci and some other 'strange' functions. While I think that I've managed to modify the libpci port to install the required lib, I'm more or less lost at getopt_long() which I assume is in the libgnugetopt port. However, for some reason, even if I include it explicitly (#include "/usr/local/include/getopt.h"), I run into problems. Please note that I'm not a programmer at all, so it's very much hacking along, so I may look for someone patient to bear with me ;-) But I am willing to learn. A similar story applies to the iopl() and the ioperm() functions which are used in a part of the code which I personally don't require but others may (if this ever reaches port status which I hope it does ;-)). For these functions, I don't even know how to replace them. Well, I think there still is some bug in the configure script that goes with it, but basically that's the story for the time being. Hints are very much so appreciated, though I may need some time to think them over and apply them due to my limited programming abilities. Thanks a lot for reading this far, all the best, Peter. PS: Please be so kind and keep me Cc:'ed on this matter, it helps me to note replies earlier and ensures a slightly more timely response, thank you! -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++