Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: [code review] UTC-to-seconds |
| Date | 2015-07-24 12:21 -0700 |
| Organization | None to speak of |
| Message-ID | <ln1tfxz7hm.fsf@kst-u.example.com> (permalink) |
| References | <55ae2a7a$0$3052$426a34cc@news.free.fr> <kfnzj2lh5zs.fsf@x-alumni2.alumni.caltech.edu> <lnegjxzcd8.fsf@kst-u.example.com> <55B27BE4.1030105@verizon.net> |
James Kuyper <jameskuyper@verizon.net> writes:
> On 07/24/2015 01:36 PM, Keith Thompson wrote:
>> Tim Rentsch <txr@alumni.caltech.edu> writes:
>> [...]
>>> My understanding is type names ending in _t, like my_time_t, are
>>> usually reserved for use by POSIX
>>
>> That's my understanding as well, though I haven't been able to find the
>> specific requirement. (Searching the POSIX web site for "reserved" is
>> difficult when every page has "All Rights Reserved" at the bottom;
>> searching for "_t" isn't much better.)
>
> Search for "reserved identifier". When I did so, the first hit was
> section 2.2.2, containing a complete list of reservations, with a suffix
> of "_t" being reserved for "Any header".
Got it. It's the last entry in the second table in 2.2.2. (I think the
table is split into two parts just because of its size.)
http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html
> The second hit was B.2.12, which provides an explanation for that rule.
> I couldn't find confirmation of my understanding that identifiers ending
> in _t are reserved specifically for use as type names.
It wouldn't make much sense to reserve them only for use as type names,
since type names aren't in their own namespace.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[code review] UTC-to-seconds Francois Grieu <fgrieu@gmail.com> - 2015-07-21 13:17 +0200
Re: [code review] UTC-to-seconds Tim Rentsch <txr@alumni.caltech.edu> - 2015-07-24 09:31 -0700
Re: [code review] UTC-to-seconds Keith Thompson <kst-u@mib.org> - 2015-07-24 10:36 -0700
Re: [code review] UTC-to-seconds James Kuyper <jameskuyper@verizon.net> - 2015-07-24 13:54 -0400
Re: [code review] UTC-to-seconds Keith Thompson <kst-u@mib.org> - 2015-07-24 12:21 -0700
Re: [code review] UTC-to-seconds James Kuyper <jameskuyper@verizon.net> - 2015-07-24 15:59 -0400
Re: [code review] UTC-to-seconds Tim Rentsch <txr@alumni.caltech.edu> - 2015-07-26 11:39 -0700
Re: [code review] UTC-to-seconds Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2015-07-26 22:58 +0200
csiph-web