public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Sebastian Huber <sh@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin] RTEMS: Add missing __getreent() to crt0
Date: Mon, 20 Nov 2017 10:15:00 -0000	[thread overview]
Message-ID: <20171120101524.36783.qmail@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6480987f3a845881789499e13bf52aadc0b241e1

commit 6480987f3a845881789499e13bf52aadc0b241e1
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Mon Nov 20 10:10:40 2017 +0100

    RTEMS: Add missing __getreent() to crt0
    
    Default implementation was removed for RTEMS by
    b1a388799dc98e6d1451fb73aa71097cbf9f37d9.
    
    Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>

Diff:
---
 newlib/libc/sys/rtems/crt0.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c
index a565274..9778b98 100644
--- a/newlib/libc/sys/rtems/crt0.c
+++ b/newlib/libc/sys/rtems/crt0.c
@@ -146,6 +146,7 @@ RTEMS_STUB(int, _fstat_r (struct _reent *r, int fd, struct stat *buf), { return
 RTEMS_STUB(uid_t, geteuid (), { return -1; })
 RTEMS_STUB(gid_t, getgid (), { return -1; })
 RTEMS_STUB(gid_t, _getgid_r (struct _reent *r), { return -1; })
+RTEMS_STUB(struct _reent *, __getreent (void), { return 0; })
 RTEMS_STUB(pid_t, getpid (), { return -1; })
 RTEMS_STUB(pid_t, getppid (), { return -1; })
 RTEMS_STUB(pid_t, _getpid_r (struct _reent *r), { return -1; })


                 reply	other threads:[~2017-11-20 10:15 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=20171120101524.36783.qmail@sourceware.org \
    --to=sh@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: link
Be 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).