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@xxxxxxx> Boston Linux and Unix PGP key id: 537C5846 PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846
Attachment:
signature.asc
Description: OpenPGP digital signature
-- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines