From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9924 invoked from network); 14 Dec 2023 15:14:29 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 14 Dec 2023 15:14:29 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 1355C43E67; Fri, 15 Dec 2023 01:14:24 +1000 (AEST) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by minnie.tuhs.org (Postfix) with ESMTPS id 27A5143DF4 for ; Fri, 15 Dec 2023 01:14:19 +1000 (AEST) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-40c580ba223so27973845e9.3 for ; Thu, 14 Dec 2023 07:14:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702566858; x=1703171658; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=G6AEkQj9TMTSrBJdK6/IIWZoo+Y7UbZ1FUZ3PX1iLP0=; b=U0BlYCWAVekdSblvhy7jLg8pFxMFfvHt4tFczJt03ucpUFFteLX+D+3rqqacCKRo23 y0CgLtD2NNZEkfkZcDiEnxT+3Yzwx79orIpCwVQJ0yZGLZdFc5mLVK5BU8zIjPt3BqW8 aojT1kIGmBuGfWNp+lv98Trj9ty3hsAKDNU8QJMNkW+giwvbXWpns+lxpRS+tH7bgKPu MCR4Plo7RdkoGpNWD6GLz+gHaDab/JNQs4Vbg7mnfvPSP2kk4zXcL5/Xt9hlerm+hL61 FYbyV+NWJBYhRkAxnd8Fz4rmRMIPonuze34DcIDWQnZnYJ+d7MPn+klp+otuA4mIWRhs cFhw== X-Gm-Message-State: AOJu0YxxxoZ9ung8ZR7MnjugF4VXkVZIadH7MK2xt1zN2cHEIpzlh3dx crFJ6A8eDlykdGcF+D6bN+dhKq1EWd0= X-Google-Smtp-Source: AGHT+IHbwGsSbTtTbECG7lh6THJi28z/ldSdih736RwLxQTIIo7E9jGJAT72QzxgaIvNakWNPr0LQA== X-Received: by 2002:a7b:c396:0:b0:40c:1c82:6dd9 with SMTP id s22-20020a7bc396000000b0040c1c826dd9mr5752126wmj.167.1702566857363; Thu, 14 Dec 2023 07:14:17 -0800 (PST) Received: from hera.home.vuxu.org (i6DFAE0FC.versanet.de. [109.250.224.252]) by smtp.gmail.com with ESMTPSA id t11-20020a05600c450b00b0040c495b1c90sm14519268wmo.11.2023.12.14.07.14.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 07:14:17 -0800 (PST) Received: from localhost (hera.home.vuxu.org [local]) by hera.home.vuxu.org (OpenSMTPD) with ESMTPA id 7c8bc905; Thu, 14 Dec 2023 15:14:16 +0000 (UTC) From: Leah Neukirchen To: Aharon Robbins In-Reply-To: (Aharon Robbins's message of "Thu, 14 Dec 2023 05:23:08 -0800") References: Date: Thu, 14 Dec 2023 16:14:16 +0100 Message-ID: <874jgk7r5j.fsf@vuxu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Message-ID-Hash: VPDQUF53SWDFIZJP6CGOMSWPNQXPVCYT X-Message-ID-Hash: VPDQUF53SWDFIZJP6CGOMSWPNQXPVCYT X-MailFrom: chneukirchen@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: tuhs@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Off topic: BSD timezone function vs. POSIX timezone variable List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Aharon Robbins writes: > 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 . > 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? OpenBSD 7.3 only has "extern long timezone" and no timezone(3) function. FreeBSD 14.0 only has the timezone(3) function (under _BSD_VISIBLE), and doesn't set any variables. -- Leah Neukirchen https://leahneukirchen.org/