From 7a0a6b276cfd7e072346842fe4746d08ee30e617 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 11 Mar 2024 22:19:15 -0600 Subject: [PATCH] libc: Move tzset.3 to stdtime This really belongs in stddime, since it documents interfaces implemented in stdtime. Suggested by: brooks Sponsored by: Netflix --- lib/libc/gen/Makefile.inc | 3 --- lib/libc/stdtime/Makefile.inc | 4 +++- lib/libc/{gen => stdtime}/tzset.3 | 0 3 files changed, 3 insertions(+), 4 deletions(-) rename lib/libc/{gen => stdtime}/tzset.3 (100%) diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc index 9c79cd589395..2f034e7d476a 100644 --- a/lib/libc/gen/Makefile.inc +++ b/lib/libc/gen/Makefile.inc @@ -308,7 +308,6 @@ MAN+= alarm.3 \ timespec_get.3 \ timespec_getres.3 \ ttyname.3 \ - tzset.3 \ ualarm.3 \ ucontext.3 \ ulimit.3 \ @@ -534,8 +533,6 @@ MLINKS+=tcsetattr.3 cfgetispeed.3 \ tcsetattr.3 tcgetattr.3 MLINKS+=ttyname.3 isatty.3 \ ttyname.3 ttyname_r.3 -MLINKS+=tzset.3 daylight.3 \ - tzset.3 timezone.3 MLINKS+=unvis.3 strunvis.3 \ unvis.3 strunvisx.3 MLINKS+=vis.3 nvis.3 \ diff --git a/lib/libc/stdtime/Makefile.inc b/lib/libc/stdtime/Makefile.inc index 07ca69aab4c5..5d0ce7765b63 100644 --- a/lib/libc/stdtime/Makefile.inc +++ b/lib/libc/stdtime/Makefile.inc @@ -20,7 +20,7 @@ CFLAGS.localtime.c+= -DALL_STATE -DTHREAD_SAFE CFLAGS.localtime.c+= -DDETECT_TZ_CHANGES .endif -MAN+= ctime.3 strftime.3 strptime.3 time2posix.3 +MAN+= ctime.3 strftime.3 strptime.3 time2posix.3 tzset.3 MAN+= tzfile.5 MLINKS+=ctime.3 asctime.3 ctime.3 difftime.3 ctime.3 gmtime.3 \ @@ -30,3 +30,5 @@ MLINKS+=ctime.3 asctime.3 ctime.3 difftime.3 ctime.3 gmtime.3 \ MLINKS+=strftime.3 strftime_l.3 MLINKS+=strptime.3 strptime_l.3 MLINKS+=time2posix.3 posix2time.3 +MLINKS+=tzset.3 daylight.3 \ + tzset.3 timezone.3 diff --git a/lib/libc/gen/tzset.3 b/lib/libc/stdtime/tzset.3 similarity index 100% rename from lib/libc/gen/tzset.3 rename to lib/libc/stdtime/tzset.3