man 3 switch

Jerry Feldman gaf at blu.org
Tue Nov 17 21:12:57 UTC 2009


On 11/16/2009 01:59 PM, Frank Cox wrote:
> On Mon, 16 Nov 2009 10:54:45 -0800
> Rick Stevens wrote:
>
>   
>> C allows quite a bit of leeway to the compiler implementation.
>>     
> Is the C Standard Library actually standard, then, or are there
> implementation differences there as well?
>
>   
To an extent. There is some leeway that is allowed by the standards.
Some things are implementation defined. The man pages generally list the
standards these conform to. There also can be a conflict between
standards. One example was in the math library where SVR specified a
different errno than X/Open so you could not be compliant with both
standards. I have a lot of scars from having to arbitrate this one
between 2 different internal standards groups and the math library folks
at Digital.

On possible example is that functions like strlen(str), the standard did
not define the behavior or the null pointer. Some implementations would
not provide any code to prevent a segfault, where others specifically
would allow a segfault.

-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB  CA3B 4607 4319 537C 5846


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20091117/cc18eccb/attachment-0001.bin 


More information about the users mailing list