[RFC v4 07/24] time: Deprecate struct timezone members

Paul Eggert eggert@cs.ucla.edu
Sat Aug 10 01:20:00 GMT 2019


Alistair Francis wrote:
> -    int tz_minuteswest;		/* Minutes west of GMT.  */
> -    int tz_dsttime;		/* Nonzero if DST is ever in effect.  */
> +    int tz_minuteswest_dep;		/* Minutes west of GMT.  */
> +    int tz_dsttime_dep;		/* Nonzero if DST is ever in effect.  */
These two members should be declared with __attribute_deprecated__. And once we 
do that, do we still need to change their names? I don't recall any other 
instance of such name-changing.

If we do change their names, I suggest a more-obvious suffix than "_dep" (which 
could stand for a lot of things); "_deprecated" would be clearer.



More information about the Libc-alpha mailing list