From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 100159,805e0071ac25e02c X-Google-Attributes: gid100159,public X-Google-Thread: 11035d,805e0071ac25e02c X-Google-Attributes: gid11035d,public X-Google-Thread: fc89c,805e0071ac25e02c X-Google-Attributes: gidfc89c,public X-Google-Thread: f6653,805e0071ac25e02c X-Google-Attributes: gidf6653,public X-Google-Thread: fee84,805e0071ac25e02c X-Google-Attributes: gidfee84,public X-Google-Thread: 10650a,805e0071ac25e02c X-Google-Attributes: gid10650a,public X-Google-Thread: 115614,805e0071ac25e02c X-Google-Attributes: gid115614,public X-Google-Thread: fcda7,805e0071ac25e02c X-Google-Attributes: gidfcda7,public From: Dan.Pop@cern.ch (Dan Pop) Subject: Re: best UNIX OS as primary platform for UNIX system software develpoment? Date: 1996/09/09 Message-ID: #1/1 X-Deja-AN: 179351293 sender: news@news.cern.ch (USENET News System) x-nntp-posting-host: ues5.cern.ch references: <4v2j4b$2bs@knot.queensu.ca> <32189D13.3834@arborsoft.com> <5050gc$1fc@nntpa.cb.lucent.com> <322E9A9E.264F@uebemc.siemens.de> <322F54A6.44FE@cao.mts.dec.com> organization: CERN European Lab for Particle Physics newsgroups: comp.unix.solaris,comp.sys.sun.misc,comp.sys.hp.hpux,comp.unix.internals,comp.unix.programmer,comp.unix.aix,comp.unix.osf.osf1,comp.sys.sgi.misc In <322F54A6.44FE@cao.mts.dec.com> Peter Mayne writes: >Who said time_t is a scalar? ANSI/ISO C. But it doesn't say what kind of scalar: The types declared are size_t (described in $4.1.5); clock_t and time_t which are arithmetic types capable of representing times; ^^^^^^^^^^^^^^^^ So, it can be any of the 9 integral types or 3 floating point types. >It might be something else, mightn't it? Nope. All the standard library functions returning a time_t value return (time_t)-1 in case of failure. Within the frame of ANSI C, printing a time_t value is pointless, because the way the time is encoded is unspecified. Dan -- Dan Pop CERN, CN Division Email: Dan.Pop@cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland