diff options
author | Zack Weinberg <zackw@panix.com> | 2019-08-16 15:03:16 -0400 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-10-30 17:05:14 -0300 |
commit | 12cbde1dae6fa4a9a792b64564c7e0debf7544cc (patch) | |
tree | fac04463cae1c6384358e3823d80e3ed051f72b1 /time/time.h | |
parent | 4a39c34c4f85de57fb4e648cfa1e774437d69680 (diff) | |
download | glibc-12cbde1dae6fa4a9a792b64564c7e0debf7544cc.zip glibc-12cbde1dae6fa4a9a792b64564c7e0debf7544cc.tar.gz glibc-12cbde1dae6fa4a9a792b64564c7e0debf7544cc.tar.bz2 |
Use clock_settime to implement stime; withdraw stime.
Unconditionally, on all ports, use clock_settime to implement stime,
not settimeofday or a direct syscall. Then convert stime into a
compatibility symbol and remove its prototype from time.h.
Checked on x86_64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu,
powerpc64-linux-gnu, powerpc-linux-gnu, and aarch64-linux-gnu.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'time/time.h')
-rw-r--r-- | time/time.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/time/time.h b/time/time.h index 72a1078..7daaacc 100644 --- a/time/time.h +++ b/time/time.h @@ -175,12 +175,6 @@ extern int daylight; extern long int timezone; #endif -#ifdef __USE_MISC -/* Set the system time to *WHEN. - This call is restricted to the superuser. */ -extern int stime (const time_t *__when) __THROW; -#endif - /* Nonzero if YEAR is a leap year (every 4 years, except every 100th isn't, and every 400th is). */ |