From owner-freebsd-standards@FreeBSD.ORG Sun Mar 28 15:18:21 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7CB116A4CE for ; Sun, 28 Mar 2004 15:18:21 -0800 (PST) Received: from VARK.homeunix.com (adsl-69-104-80-69.dsl.pltn13.pacbell.net [69.104.80.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id B109543D3F for ; Sun, 28 Mar 2004 15:18:21 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.11/8.12.10) with ESMTP id i2SNHuIm086524; Sun, 28 Mar 2004 15:17:56 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.11/8.12.10/Submit) id i2SNHu6c086523; Sun, 28 Mar 2004 15:17:56 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Sun, 28 Mar 2004 15:17:56 -0800 From: David Schultz To: Eric De la Cruz Lugo Message-ID: <20040328231756.GA86437@VARK.homeunix.com> Mail-Followup-To: Eric De la Cruz Lugo , freebsd-standards@FreeBSD.ORG References: <1080397817.40658ff979c2e@iteso.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1080397817.40658ff979c2e@iteso.mx> cc: freebsd-standards@FreeBSD.ORG Subject: Re: Question about strtof() function under FreeBSD 4.9 X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 23:18:22 -0000 On Sat, Mar 27, 2004, Eric De la Cruz Lugo wrote: > I just need to know if the strtof function in will be implemented > soon in the 4.9 Release, I checked the status and the 5.x Branch has it > already, will be long before 4.9 has it too? > > thanks in advance for your help, please reply to my address > because am not in the list. > > Am trying to compile a POS software (Linux, BananaPos) and in > one code I need > that function strtof(). > > showl I upgrade to 5.2.1? Getting strtof() and strtold() involved importing a big chunk of software that isn't going to be backported to 4.X. You can either upgrade to 5.X, or use the following substitute, which should work well except for overflow handling: float strtof(const char * restrict nptr, char ** restrict endptr) { return ((float)strtod(nptr, endptr)); } From owner-freebsd-standards@FreeBSD.ORG Mon Mar 29 11:01:42 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3130316A4CE for ; Mon, 29 Mar 2004 11:01:42 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1787A43D2D for ; Mon, 29 Mar 2004 11:01:42 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) i2TJ1fbv083841 for ; Mon, 29 Mar 2004 11:01:41 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2TJ1f8Z083835 for freebsd-standards@freebsd.org; Mon, 29 Mar 2004 11:01:41 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 29 Mar 2004 11:01:41 -0800 (PST) Message-Id: <200403291901.i2TJ1f8Z083835@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2004 19:01:42 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- s [2001/01/23] misc/24590 standards timezone function not compatible witn Sin o [2001/03/05] bin/25542 standards /bin/sh: null char in quoted string o [2002/02/25] bin/35307 standards standard include files are not standard c o [2003/03/05] bin/48958 standards The type 'bool' has different sizes for C o [2003/04/21] standards/51209standards [PATCH] add a64l()/l64a/l64a_r functions p [2003/06/05] standards/52972standards /bin/sh arithmetic not POSIX compliant o [2003/07/12] standards/54410standards one-true-awk not POSIX compliant (no exte o [2003/09/15] standards/56906standards Several math(3) functions fail to set err o [2003/12/31] standards/60772standards _Bool and bool should be unsigned o [2004/02/05] standards/62388standards sys/resource.h does not pull in dependenc 10 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [1995/01/11] i386/105 standards Distributed libm (msun) has non-standard o [2000/09/24] bin/21519 standards sys/dir.h should be deprecated some more o [2000/12/05] kern/23304 standards POSIX clock_gettime, clock_getres return o [2001/01/16] bin/24390 standards Replacing old dir-symlinks when using /bi s [2001/06/18] kern/28260 standards UIO_MAXIOV needs to be made public o [2001/11/20] standards/32126standards getopt(3) not Unix-98 conformant s [2002/03/18] standards/36076standards Implementation of POSIX fuser command o [2002/06/13] standards/39256standards [v]snprintf aren't POSIX-conformant for s o [2002/07/09] misc/40378 standards stdlib.h gives needless warnings with -an p [2002/08/12] standards/41576standards POSIX compliance of ln(1) o [2002/10/23] standards/44425standards getcwd() succeeds even if current dir has o [2002/12/09] standards/46119standards Priority problems for SCHED_OTHER using p o [2002/12/23] standards/46504standards Warnings in headers o [2003/06/22] standards/53613standards FreeBSD doesn't define EPROTO o [2003/06/24] bin/53682 standards [PATCH] add fuser(1) utitity o [2003/07/24] standards/54809standards pcvt deficits o [2003/07/24] standards/54833standards more pcvt deficits o [2003/07/25] standards/54839standards pcvt deficits o [2003/07/31] standards/55112standards glob.h, glob_t's gl_pathc should be "size o [2003/09/04] standards/56476standards cd9660 unicode support simple hack o [2003/09/27] standards/57295standards [patch] make does not include cmd line va o [2003/10/12] standards/57911standards fnmatch ("[[:alpha:]]","x", FNM_PATHNAME) o [2003/10/29] standards/58676standards grantpt(3) alters storage used by ptsname o [2003/11/29] standards/59797standards Implement C99's round[f]() math fucntions p [2003/12/26] standards/60597standards FreeBSD's /usr/include lacks of cpio.h s [2004/02/14] standards/62858standards malloc(0) not C99 compliant p [2004/02/21] standards/63173standards Patch to add getopt_long_only(3) to libc o [2004/02/25] standards/63371standards [patch] isblank() not in C99/SUSv3 namesp o [2004/03/12] standards/64173standards C99 requires some macros to be c 29 problems total. From owner-freebsd-standards@FreeBSD.ORG Tue Mar 30 12:20:18 2004 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DF1616A4CF for ; Tue, 30 Mar 2004 12:20:18 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 682C843D39 for ; Tue, 30 Mar 2004 12:20:18 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i2UKKIbv055521 for ; Tue, 30 Mar 2004 12:20:18 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2UKKIbM055520; Tue, 30 Mar 2004 12:20:18 -0800 (PST) (envelope-from gnats) Resent-Date: Tue, 30 Mar 2004 12:20:18 -0800 (PST) Resent-Message-Id: <200403302020.i2UKKIbM055520@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stefan Farfeleder Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E03C816A4CE for ; Tue, 30 Mar 2004 12:18:32 -0800 (PST) Received: from bgezal.rise.tuwien.ac.at (bgezal.rise.tuwien.ac.at [128.130.59.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D4BD43D48 for ; Tue, 30 Mar 2004 12:18:32 -0800 (PST) (envelope-from stefan@fafoe.narf.at) Received: from fafoe.narf.at (unknown [212.186.3.235]) by bgezal.rise.tuwien.ac.at (Postfix) with ESMTP id DD98520B5 for ; Tue, 30 Mar 2004 22:18:30 +0200 (CEST) Received: from wombat.fafoe.narf.at (wombat.fafoe.narf.at [192.168.1.42]) by fafoe.narf.at (Postfix) with ESMTP id 5C48540B6; Tue, 30 Mar 2004 22:18:28 +0200 (CEST) Received: by wombat.fafoe.narf.at (Postfix, from userid 1001) id A449147B; Tue, 30 Mar 2004 22:18:26 +0200 (CEST) Message-Id: <20040330201826.A449147B@wombat.fafoe.narf.at> Date: Tue, 30 Mar 2004 22:18:26 +0200 (CEST) From: Stefan Farfeleder To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: stefan@fafoe.narf.at Subject: standards/64956: [patch] occasionally fails to define WINT_MIN and WINT_MAX X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Stefan Farfeleder List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2004 20:20:18 -0000 >Number: 64956 >Category: standards >Synopsis: [patch] occasionally fails to define WINT_MIN and WINT_MAX >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 30 12:20:17 PST 2004 >Closed-Date: >Last-Modified: >Originator: Stefan Farfeleder >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD wombat.fafoe.narf.at 5.2-CURRENT FreeBSD 5.2-CURRENT #17: Sat Mar 20 15:52:00 CET 2004 stefan@wombat.fafoe.narf.at:/usr/home/stefan/freebsd/obj/usr/home/stefan/freebsd/src/sys/WOMBAT i386 >Description: defines the macros WINT_MIN and WINT_MAX only if WCHAR_MIN is not defined. Including defines WCHAR_MIN but not WINT_MIN and WINT_MAX, so this is clearly wrong. Since is the only header defining those two macros, no test at all is necessary. >How-To-Repeat: $ cat wint_min.c #include #include int i = WINT_MIN; $ c99 -c wint_min.c wint_min.c:3: error: `WINT_MIN' undeclared here (not in a function) $ >Fix: --- wint_min_max.diff begins here --- Index: src/sys/alpha/include/_stdint.h =================================================================== RCS file: /usr/home/ncvs/src/sys/alpha/include/_stdint.h,v retrieving revision 1.1 diff -I.svn -u -r1.1 _stdint.h --- src/sys/alpha/include/_stdint.h 29 Jul 2002 17:41:06 -0000 1.1 +++ src/sys/alpha/include/_stdint.h 30 Mar 2004 19:48:11 -0000 @@ -160,11 +160,11 @@ /* Limits of wchar_t. */ #define WCHAR_MIN INT32_MIN #define WCHAR_MAX INT32_MAX +#endif /* Limits of wint_t. */ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX -#endif #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ Index: src/sys/amd64/include/_stdint.h =================================================================== RCS file: /usr/home/ncvs/src/sys/amd64/include/_stdint.h,v retrieving revision 1.2 diff -I.svn -u -r1.2 _stdint.h --- src/sys/amd64/include/_stdint.h 21 Nov 2003 03:02:00 -0000 1.2 +++ src/sys/amd64/include/_stdint.h 30 Mar 2004 19:48:15 -0000 @@ -160,11 +160,11 @@ /* Limits of wchar_t. */ #define WCHAR_MIN INT32_MIN #define WCHAR_MAX INT32_MAX +#endif /* Limits of wint_t. */ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX -#endif #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ Index: src/sys/arm/include/_stdint.h =================================================================== RCS file: /usr/home/ncvs/src/sys/arm/include/_stdint.h,v retrieving revision 1.1 diff -I.svn -u -r1.1 _stdint.h --- src/sys/arm/include/_stdint.h 29 Jul 2002 17:41:07 -0000 1.1 +++ src/sys/arm/include/_stdint.h 30 Mar 2004 19:48:19 -0000 @@ -160,11 +160,11 @@ /* Limits of wchar_t. */ #define WCHAR_MIN INT32_MIN #define WCHAR_MAX INT32_MAX +#endif /* Limits of wint_t. */ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX -#endif #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ Index: src/sys/i386/include/_stdint.h =================================================================== RCS file: /usr/home/ncvs/src/sys/i386/include/_stdint.h,v retrieving revision 1.1 diff -I.svn -u -r1.1 _stdint.h --- src/sys/i386/include/_stdint.h 29 Jul 2002 17:41:07 -0000 1.1 +++ src/sys/i386/include/_stdint.h 30 Mar 2004 19:48:22 -0000 @@ -160,11 +160,11 @@ /* Limits of wchar_t. */ #define WCHAR_MIN INT32_MIN #define WCHAR_MAX INT32_MAX +#endif /* Limits of wint_t. */ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX -#endif #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ Index: src/sys/ia64/include/_stdint.h =================================================================== RCS file: /usr/home/ncvs/src/sys/ia64/include/_stdint.h,v retrieving revision 1.1 diff -I.svn -u -r1.1 _stdint.h --- src/sys/ia64/include/_stdint.h 29 Jul 2002 17:41:08 -0000 1.1 +++ src/sys/ia64/include/_stdint.h 30 Mar 2004 19:48:26 -0000 @@ -160,11 +160,11 @@ /* Limits of wchar_t. */ #define WCHAR_MIN INT32_MIN #define WCHAR_MAX INT32_MAX +#endif /* Limits of wint_t. */ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX -#endif #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ Index: src/sys/powerpc/include/_stdint.h =================================================================== RCS file: /usr/home/ncvs/src/sys/powerpc/include/_stdint.h,v retrieving revision 1.1 diff -I.svn -u -r1.1 _stdint.h --- src/sys/powerpc/include/_stdint.h 29 Jul 2002 17:41:16 -0000 1.1 +++ src/sys/powerpc/include/_stdint.h 30 Mar 2004 19:48:30 -0000 @@ -160,11 +160,11 @@ /* Limits of wchar_t. */ #define WCHAR_MIN INT32_MIN #define WCHAR_MAX INT32_MAX +#endif /* Limits of wint_t. */ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX -#endif #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ Index: src/sys/sparc64/include/_stdint.h =================================================================== RCS file: /usr/home/ncvs/src/sys/sparc64/include/_stdint.h,v retrieving revision 1.1 diff -I.svn -u -r1.1 _stdint.h --- src/sys/sparc64/include/_stdint.h 29 Jul 2002 17:41:16 -0000 1.1 +++ src/sys/sparc64/include/_stdint.h 30 Mar 2004 19:48:52 -0000 @@ -160,11 +160,11 @@ /* Limits of wchar_t. */ #define WCHAR_MIN INT32_MIN #define WCHAR_MAX INT32_MAX +#endif /* Limits of wint_t. */ #define WINT_MIN INT32_MIN #define WINT_MAX INT32_MAX -#endif #endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ --- wint_min_max.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-standards@FreeBSD.ORG Sat Apr 3 09:33:48 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E62916A4CE; Sat, 3 Apr 2004 09:33:48 -0800 (PST) Received: from iteso.mx (iteso.mx [148.201.1.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA30143D5C; Sat, 3 Apr 2004 09:33:47 -0800 (PST) (envelope-from eric@iteso.mx) Received: from iteso.mx (localhost [127.0.0.1]) by iteso.mx (8.12.3/8.12.3/Debian-6.6) with ESMTP id i33HXigf012312 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 3 Apr 2004 11:33:44 -0600 Received: (from www-data@localhost) by iteso.mx (8.12.3/8.12.3/Debian-6.6) id i33HXieD012311; Sat, 3 Apr 2004 11:33:44 -0600 From: Eric De la Cruz Lugo X-Authentication-Warning: iteso.mx: www-data set sender to eric@iteso.mx using -f Received: from 148.240.117.70 ([148.240.117.70]) by iteso.mx (IMP) with HTTP for ; Sat, 3 Apr 2004 11:33:44 -0600 Message-ID: <1081013624.406ef5788b3a1@iteso.mx> Date: Sat, 3 Apr 2004 11:33:44 -0600 To: David Schultz References: <1080397817.40658ff979c2e@iteso.mx> <20040328231756.GA86437@VARK.homeunix.com> In-Reply-To: <20040328231756.GA86437@VARK.homeunix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 148.240.117.70 X-Virus-Scanned: clamd / ClamAV version 0.67+CVS20040305, clamav-milter version 0.67j cc: freebsd-standards@FreeBSD.ORG Subject: i386_get_ioperm syntax.... X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Apr 2004 17:33:48 -0000 Hi, am not on the list, please reply to my e-mail for possible solutions. I have this problem compiling a code: terra# make make all-recursive Making all in m4 Making all in src if g++ -DREENTRANT -I. -I. -I.. -O6 -I/usr/include/bhpos -O6 -I/usr/ include/bhpos -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/ lib/gtkmm/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/ usr/X11R6/include -I/usr/local/include/sigc++-1.0 -I/usr/include/bhpos/hw -I/usr/include/bhpos/widget -g -O2 -MT callbacks.o -MD -MP -MF ".deps/ callbacks.Tpo" -c -o callbacks.o `test -f 'callbacks.cc' || echo './'`callbacks.cc; then mv ".deps/callbacks.Tpo" ".deps/callbacks.Po"; else rm -f ".deps/callbacks.Tpo"; exit 1; fi callbacks.cc: In member function `int CPost::DeviceControl(int, int)': callbacks.cc:160: error: invalid conversion from `int' to `unsigned int*' callbacks.cc:160: error: invalid conversion from `int' to `int*' callbacks.cc:163: error: invalid conversion from `int' to `unsigned int*' *** Error code 1 Stop in /home/eric/banana/post-1.2.1/src. *** Error code 1 Stop in /home/eric/banana/post-1.2.1. *** Error code 1 Stop in /home/eric/banana/post-1.2.1. terra# ------- the relevant lines are : else if(flags==5){ return i386_get_ioperm(0x3F8, 6, 1); } else if(flags==6){ return i386_get_ioperm(0x3F8, 6, 0); } and: else if(flags==5){ i386_set_ioperm(0x2F8, 6, 1); } else if(flags==6){ i386_set_ioperm(0x2F8, 6, 0); } ------- some knows how to solve something like this?, am not a c++ programmer, if someone can give me a hint about what the right values for the i386_get_ioperm() should be in FreeBSD 5.2.1, please reply to my e-mail. thanks in advance. Eric De La Cruz Lugo. Merida, Yucatan, Mexico --- From owner-freebsd-standards@FreeBSD.ORG Sat Apr 3 11:49:03 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3099516A4CE for ; Sat, 3 Apr 2004 11:49:03 -0800 (PST) Received: from VARK.homeunix.com (adsl-69-104-80-69.dsl.pltn13.pacbell.net [69.104.80.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00F8243D45 for ; Sat, 3 Apr 2004 11:49:03 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.11/8.12.10) with ESMTP id i33JmHM5021929; Sat, 3 Apr 2004 11:48:17 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.11/8.12.10/Submit) id i33JmHXh021928; Sat, 3 Apr 2004 11:48:17 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Sat, 3 Apr 2004 11:48:17 -0800 From: David Schultz To: Eric De la Cruz Lugo Message-ID: <20040403194817.GA21844@VARK.homeunix.com> Mail-Followup-To: Eric De la Cruz Lugo , freebsd-standards@FreeBSD.ORG References: <1080397817.40658ff979c2e@iteso.mx> <20040328231756.GA86437@VARK.homeunix.com> <1081013624.406ef5788b3a1@iteso.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1081013624.406ef5788b3a1@iteso.mx> cc: freebsd-standards@FreeBSD.ORG Subject: Re: i386_get_ioperm syntax.... X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Apr 2004 19:49:03 -0000 On Sat, Apr 03, 2004, Eric De la Cruz Lugo wrote: > callbacks.cc: In member function `int CPost::DeviceControl(int, int)': > callbacks.cc:160: error: invalid conversion from `int' to `unsigned int*' > callbacks.cc:160: error: invalid conversion from `int' to `int*' > callbacks.cc:163: error: invalid conversion from `int' to `unsigned int*' [...] > the relevant lines are : > > else if(flags==5){ > return i386_get_ioperm(0x3F8, 6, 1); > } > else if(flags==6){ > return i386_get_ioperm(0x3F8, 6, 0); > } I'm not sure why this was addressed specifically to me, but your problem is that the second and third parameters to i386_get_ioperm() are supposed to be *pointers* to integers. Note that i386_get_ioperm() is supposed to tell *you* what the port permission bits are, not the other way around. I suggest you take a look at the manual page more carefully. Also, I don't have anything to do with i386_get_ioperm(), and standards@ is not the appropriate list for this kind of inquiry. Please try questions@ next time. --David