🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #54384

Re: Gcc, SunOS 4.1, and ioctl

#54384
From: John Clark
Date: Mon, 19 Nov 1990 19:57
32 lines
2063 bytes
In article <16382@s.ms.uky.edu> plai@ms.uky.edu (Paul Lai ) writes:
>I seem to vaguely remember some discussion of Gcc, SunOS 4.1, and ioctl,
>where the three didn't want to work together.  If anyone out in netland

The problem that I am aware of is the fact that the standard Sun
include file '/usr/include/sys/ioctl.h' has macros which use
parameters inside of quotes ('). This was acceptable to older C
pre-processors but is now unacceptable to ANSI C compilers. The
'-traditional' option may be used to compile with 'old'
pre-processor compatiblity but also removes some actual compiler
features as well. See the GNU C compiler user guide for what
features are enabled or disable when using the '-traditional' switch.
There is also a command file 'fixincludes' which attempts to make a
new ANSI-fied version of 'ioctl.h' and other include files which are
found to have quoted paramters. These are then put into
.../lib/gcc-include and used first before the standard
'/usr/include/...' are used.

>would like to help remember any specifics, please either give me a
>summary of the discussion or point me to a place where the articles can
>be found (publicly).  Yes, obviously I've run into problems using ioctl
>on sun3 and sun4's (sparcstations) with gcc-1.37.1.  The problemis that
>calls to ioctl return "invalid argument" errors.  Better yet, what's is
>the "fix" or workaround?
>
>Thanks for the time.


-- 

John Clark
jclark@ucsd.edu
Technical Details
Message-ID: <14353@sdcc6.ucsd.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!lupine!infopiz!decwrl!elroy.jpl.nasa.gov!usc!ucsd!sdcc6!jclark
References: <16382@s.ms.uky.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e915e06728027cae
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1990-11-19 11:57:19 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!lupine!infopiz!decwrl!elroy.jpl.nasa.gov!usc!ucsd!sdcc6!jclark
From: jclark@sdcc6.ucsd.edu (John Clark)
Newsgroups: gnu.gcc.help
Subject: Re: Gcc, SunOS 4.1, and ioctl
Message-ID: <14353@sdcc6.ucsd.edu>
Date: 19 Nov 90 19:57:19 GMT
References: <16382@s.ms.uky.edu>
Distribution: gnu
Organization: University of California, San Diego
Lines: 32
Posted: Mon Nov 19 20:57:19 1990