[C-safe-secure-studygroup] *_t reserved?

Aaron Ballman aaron at aaronballman.com
Fri Mar 24 14:10:42 UTC 2017


On Fri, Mar 24, 2017 at 10:04 AM, Andrew Banks <andrew at andrewbanks.com> wrote:
> Date: Wed, 22 Mar 2017 15:39:44 -0400
> From: Robert Seacord <rcseacord at gmail.com>
> Subject: [C-safe-secure-studygroup] *_t reserved?
>
>>> Just noticed on this page that *_t are reserved identifiers:
>>>
>>> https://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html
>>>
>>> Presumably this is a POSIX requirement, because I've never seen this in C code before?
>>>
>>> I used to think using _t names for types was a good thing (TM).
>
> Interesting spot... I certainly was not aware of this - in fact, several companies' coding standards (that I have written) mandate _t for user-defined types
>
> I note there is no citation for this requirement.  Could someone track it down?

http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_02

~Aaron



More information about the C-safe-secure-studygroup mailing list