This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3 7/7] y2038: linux: Provide ___gettimeofday64 implementation


On Wed, 5 Feb 2020, Adhemerval Zanella wrote:

> Although marked obsolescent by POSIX, we can't really removed since a
> program might require to build against a specific POSIX version 
> (_POSIX_C_SOURCE).
> 
> Once POSIX does remove the symbol, we can remove its definition from
> default visibility (usually by setting the latest POSIX as default
> version) and add __attribute_deprecated__.

I don't see that being appropriate for a very long time.

Some symbols marked obsolescent by POSIX are genuinely out of use for a 
very long time, or genuinely have serious deficiencies, and may be 
candidates for obsoleting in various ways in glibc.  Some, such as 
gettimeofday are in very widespread use and pose no particular problems - 
so when it's not in current POSIX, I expect we should still declare it for 
__USE_MISC, without a deprecation attribute.  (And some symbols are marked 
obsolescent by POSIX because of issues specifying them portably, but are 
very relevant for less-portable code - vfork and getcontext, for example.)

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]