The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] Off topic: BSD timezone function vs. POSIX timezone variable
@ 2023-12-14 13:23 Aharon Robbins
  2023-12-14 15:14 ` [TUHS] " Leah Neukirchen
  2023-12-14 17:28 ` Warner Losh
  0 siblings, 2 replies; 5+ messages in thread
From: Aharon Robbins @ 2023-12-14 13:23 UTC (permalink / raw)
  To: tuhs

Hi All.

This is a bit off-topic, but people here are likely to know the answer.

V7 had a timzone function:

	char *timezone(int zone, int dst);

that returned a timezone name.  POSIX has a timezone variable which is
the offset in seconds from UTC.

The man pages for all of {Net,Free,Open}BSD seem to indicate that both
are available on those systems.

My question is, how? The declarations for both are given as being in <time.h>.
But don't the symbols in libc.a conflict with each other? How does a programmer
on *BSD choose which version of timezone they will get?

Feel free to reply privately.

Thanks,

Arnold

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-21 12:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-14 13:23 [TUHS] Off topic: BSD timezone function vs. POSIX timezone variable Aharon Robbins
2023-12-14 15:14 ` [TUHS] " Leah Neukirchen
2023-12-14 15:49   ` Chet Ramey
2023-12-21 12:12     ` arnold
2023-12-14 17:28 ` Warner Losh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).