Re: SCSI device numbering (was: Re: Ideas for v2.1

Andrew E. Mileski (aem@nic.ott.hookup.net)
Thu, 27 Jun 1996 10:49:00 -0400 (EDT)


> > : > POSIX requires dev_t to be an arithmetic type (so it cannot be a struct),
>
> > : One word of warning --- this will break POSIX. "gcc -ansi
> > : -pedantic-errors" will not compile code with long long declarations.
> > : Any truly, strictly ANSI environment won't be able to compile programs
> > : referencing a 64-bit dev_t.
>
> > Yes, but that can be repaired just by changing an include file.
>
> No, not easily. "gcc -ansi -pedantic-errors" will NOT give you any
> way of declaring a 64-bit arithmetic type on Intel.

I _DO_ like the idea of all future GCC versions having 'long' = 64-bits.
This should be fairly easy to do since we already have a 'linux' version
of GCC, and it would be a portable change.

This would break a minimum amount of code (which was broken to begin
with). A simple switch (example: -msmall-long or -mbig-long) could
also be added.

--
Andrew E. Mileski
mailto:aem@ott.hookup.net      My home page http://www.redhat.com/~aem/
Linux Plug-and-Play Project Leader. See URL http://www.redhat.com/pnp/

Red Hat Software sponsors these pages - I have no other affilitation with Red Hat Software, and I have never used any of their products.