From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by sourceware.org (Postfix) with ESMTPS id 42A08394882E for ; Tue, 10 May 2022 15:35:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 42A08394882E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-xb2d.google.com with SMTP id y76so31413206ybe.1 for ; Tue, 10 May 2022 08:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=TcOstwLv51agp91w0nQVcftJSVYtCo0IDhpNpefTcIo=; b=R0opdKwjDGhw6JUiYI4ErWw0dmbVCPG1CnmfnYxF3ES9Yg0kpCR3Ydzws0jlnF0fCm 9L67KwwFzd3+ObcyaBm+C5RZ6ttJL5WPS2IqXmQJ+clTyPqsg3Q8d4cF8uYE69+dIqiI o9CeOnDW1Hn3i9nAvR8M/+ygZ3L2bqgV/BPUKex3G5PdYdHFmH5fyAED+3OSOFsJGXjs jL9x5fC4g8ghhTBl6dP89dzzTKJIEACXHB3CyjeKShwRPF/gm0vdNQlhMvvIi2zU9oRu H4AePN9pxcl+TP+555HN7PbZgkC7XqDJ+WoqpZciUOJ2F/H04F2DZqDTNsPOPt6EYWmq i7yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=TcOstwLv51agp91w0nQVcftJSVYtCo0IDhpNpefTcIo=; b=xizr030/Zz3j6N6vOZNVSX2ZtCw74KZf+IcgywZCSMSjCiF+0+QtoaydtHY14OJl9v yMi0ojTVE0GOJkcj0toKz1KdUltI+xaeLCMLW15v0NR4t2C5Fvv7d0SBRWI1x1O1IuSu RxhlvdrygFuVQYFaFSvJaKGr/evpIq+fsH5mhLW/wvk9PIz51agGa7g9PRMVvINKQBIy CywTIcf69P3vNQfG7xtWun+6EEyEf40PigRWKibtVmF1bTS8lrhpYA4Hnbq9W8sISAm9 FAeUAXt5a9pncD0DcdcsMaBjvwydufW25Ccvw1aDVJbluJKZ0zklxF7D9N6jC8jkU0kV Ym0Q== X-Gm-Message-State: AOAM530IcPnh72/rDs1JnJQHWA3PYL4a4XTQaZOnIYubJn8+aPaClPxX o7paRf2wm9YjGYuOhZB0YNtL0GuacuuNPktSn2GHRJUNQKk= X-Google-Smtp-Source: ABdhPJwNuiWeY9y7AFtW5AA+PzIz5LNnov68klqRYS7UwOnT/dS3qdDh4DKuV3EooUkAyrp7vIsHo1QP69IMLfS8dIY= X-Received: by 2002:a25:2fc2:0:b0:647:dcee:b2dd with SMTP id v185-20020a252fc2000000b00647dceeb2ddmr18608951ybv.288.1652196952716; Tue, 10 May 2022 08:35:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pavel M Date: Tue, 10 May 2022 18:35:15 +0300 Message-ID: Subject: Re: C11 conformance: , TIME_UTC, timespec_get To: newlib@sourceware.org X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2022 15:35:55 -0000 Hi all, Any updates? On Thu, 3 Mar 2022 at 02:16, Pavel M wrote: > #include #include > int main(void) > { > struct timespec ts; > timespec_get(&ts, TIME_UTC); > char buff[100]; > strftime(buff, sizeof buff, "%D %T", gmtime(&ts.tv_sec)); > printf("Current time: %s.%09ld UTC\n", buff, ts.tv_nsec); > return 0; > } > > $ gcc t667c.c -std=3Dc11 -pedantic -Wall -Wextra > t667c.c: In function =E2=80=98main=E2=80=99: > t667c.c:7:5: warning: implicit declaration of function =E2=80=98timespec_= get=E2=80=99 [-Wimplicit-function-declaration] > 7 | timespec_get(&ts, TIME_UTC); > | ^~~~~~~~~~~~ > t667c.c:7:23: error: =E2=80=98TIME_UTC=E2=80=99 undeclared (first use in = this function) > 7 | timespec_get(&ts, TIME_UTC); > | ^~~~~~~~ > t667c.c:7:23: note: each undeclared identifier is reported only once for = each function it appears in > > $ echo "#include " | gcc -xc - -std=3Dc11 -pedantic -Wall -Wextr= a > :1:10: fatal error: uchar.h: No such file or directory > compilation terminated. > > $ gcc --versiongcc (GCC) 11.2.0 > > $ uname -a > CYGWIN_NT-10.0 xxx 3.3.4(0.341/5/3) 2022-01-31 19:35 x86_64 Cygwin > > _NEWLIB_VERSION: 4.1.0 > __STDC__: 1 (hm...) >