From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,df854b5838c3e14 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,df854b5838c3e14 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,df854b5838c3e14 X-Google-Attributes: gid1014db,public X-Google-Thread: 10db24,fec75f150a0d78f5 X-Google-Attributes: gid10db24,public From: Lawrence Kirby Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada) Date: 1996/04/04 Message-ID: <828632277snz@genesis.demon.co.uk>#1/1 X-Deja-AN: 145827074 x-nntp-posting-host: genesis.demon.co.uk references: <31582A63.4BE9@east.thomsoft.com> <4jeel1$erh@tpd.dsccc.com> <4jp388$d56@tpd.dsccc.com> <828445854snz@genesis.demon.co.uk> x-mail2news-path: genesis.demon.co.uk organization: none reply-to: fred@genesis.demon.co.uk newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu Date: 1996-04-04T00:00:00+00:00 List-Id: In article emery@grebyn.com "David Emery" writes: >In article <828445854snz@genesis.demon.co.uk>, fred@genesis.demon.co.uk wrote: > >> ANSI C doesn't define UNIX OS calls so isn't really relevant to your point. >> Unix calls are reasonably standardised for C through the likes of POSIX and >> X/Open which is natural because C is the core development language for >> the platform. > >This is not exactly true. The POSIX.1 standard make extensive use of >facilities in the ANSI C standard. Chapter 2 contains a list of library >calls of ANSI C "included" in POSIX (e.g. malloc(), while Chapter 8 >contains C-specific facilities, that refine the behavior of some ANSI >C library routines such as file stream IO. ANSI C defines the ANSI standard library calls. While UNIX(tm) validation may require these that is down to the UNIX and from that the POSIX specification, not the ANSI standard: there is nothing in the ANSI standard that states the UNIX system interface must be one thing or another, rather it is the UNIX standards that define the UNIX system interface with reference to the ANSI C standard. It may be a fine point but it is important. UNIX existed before ANSI C. -- ----------------------------------------- Lawrence Kirby | fred@genesis.demon.co.uk Wilts, England | 70734.126@compuserve.com -----------------------------------------