public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] nvptx: Provide stub 'gettimeofday' Date: Fri, 20 Jan 2023 19:36:44 +0000 (GMT) [thread overview] Message-ID: <20230120193644.81D4F3858D33@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=52cb9370044d11a29ae0dc1120ffdf246f5abc20 commit 52cb9370044d11a29ae0dc1120ffdf246f5abc20 Author: Thomas Schwinge <thomas@codesourcery.com> Date: Tue Jan 17 16:01:02 2023 +0100 nvptx: Provide stub 'gettimeofday' Instead of them FAILing due to 'unresolved symbol gettimeofday', this makes PASS a number of GCC 'gfortran.dg' test cases, for example. Diff: --- newlib/libc/machine/nvptx/misc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/newlib/libc/machine/nvptx/misc.c b/newlib/libc/machine/nvptx/misc.c index ef76eaae1..897ddc807 100644 --- a/newlib/libc/machine/nvptx/misc.c +++ b/newlib/libc/machine/nvptx/misc.c @@ -16,6 +16,8 @@ #include <errno.h> #include <sys/types.h> #include <sys/stat.h> +#include <sys/time.h> + #undef errno extern int errno; @@ -29,6 +31,11 @@ fstat (int fd, struct stat *buf) { return -1; } +int +gettimeofday (struct timeval *tv, void *tz) { + return -1; +} + int isatty (int fd) { return fd == 1;
reply other threads:[~2023-01-20 19:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230120193644.81D4F3858D33@sourceware.org \ --to=tschwinge@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).