public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin] RTEMS: Harmonize MAXNAMLEN and NAME_MAX
Date: Wed, 25 Jan 2017 11:37:00 -0000	[thread overview]
Message-ID: <20170125113739.18898.qmail@sourceware.org> (raw)

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

commit e692cfc121c76a14919752d2ac5e0f9f3e95d5bb
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Wed Jan 25 07:07:12 2017 +0100

    RTEMS: Harmonize MAXNAMLEN and NAME_MAX
    
    Override MAXNAMLEN definition in <dirent.h> and make sure it equals
    NAME_MAX.
    
    Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>

Diff:
---
 newlib/libc/sys/rtems/include/sys/dirent.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/newlib/libc/sys/rtems/include/sys/dirent.h b/newlib/libc/sys/rtems/include/sys/dirent.h
index 5a3a54d..47a0c8f 100644
--- a/newlib/libc/sys/rtems/include/sys/dirent.h
+++ b/newlib/libc/sys/rtems/include/sys/dirent.h
@@ -50,6 +50,10 @@ struct dirent {
 	char		d_name[NAME_MAX + 1];
 };
 
+#if __BSD_VISIBLE
+#define	MAXNAMLEN NAME_MAX
+#endif
+
 int scandir ( const char *dirname,
    struct dirent *** namelist,
    int (*select)(const struct dirent *),


                 reply	other threads:[~2017-01-25 11:37 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=20170125113739.18898.qmail@sourceware.org \
    --to=corinna@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).