This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: settimeofday breakage
- From: Joseph Myers <joseph at codesourcery dot com>
- To: J William Piggott <elseifthen at gmx dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 12 Feb 2020 01:02:43 +0000
- Subject: Re: settimeofday breakage
- Ironport-sdr: 7NL/1vD4m3qKH5qwyU2Da5ADcLicrhVcpalTZygMMielciTRKLwqCp1PuKRwbOzppHBQUgvkR9 CrNp39OLHCYn2xUBsz0k48Tl3yrWDywPmOik48FIndTeq/++0KeG+/fJzE6Q6KbBFwCYtDFjx3 RvG9vcSO+hV+woqVe9uU1UnussnK6my1XCgtoOmnBlp2Hxj/2Ir2IJ8vQVaR4+8Y29Vtbu0Os7 +5ixE5fGcAgvtg3jClPzA+VY2EteErWCeYCQQLc1UeFazf8D1p0UVOzk3WcydZoTMAHJaLkLcf NsE=
- Ironport-sdr: qG9xWGm6Rnnjx4MPa/LOjaJRmDy6Uyj1O45SwpCFrTcgUuIxNLNDAQdMTaHcLE9d9VbnedNZRJ 0Oz+Ns3T5oNn9jmwBzxiyKosWTKE6F04Nbk++00A/f40lQzjUBMyslYmcuvNF6XZvyRnddJfx8 Pnt0JYFsfyKbb7k7u22UgWA9WcXu+nL7qbt6Jf5IFd1H0B8UAyTKl0s8CfLAf17IumWO4uhZTh ZMm8//JIhgGNCi7zcTlmEOX/rJnBqN/rjB6TAD9emAtpH15NcbQbtGAdW3aK+R8G6wuMMjOhG9 NQ8=
- References: <nycvar.YAK.7.77.849.2002111025400.1724@zhn.tzk.pbz>
On Tue, 11 Feb 2020, J William Piggott wrote:
> > > Once POSIX does remove the symbol, we can remove its definition from
> > > default visibility
> >
> > I don't see that being appropriate for a very long time.
> >
>
> That was regarding gettimeofday, but should apply equally to
> settimeofday.
gettimeofday is used by very many applications that want the current time
with more precision than seconds (but for which microseconds are good
enough).
settimeofday is used by very few applications (getting the current time is
an unprivileged operation, much more common than changing it).
The cases are quite different.
--
Joseph S. Myers
joseph@codesourcery.com