public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "ams at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/21821] New: MAXPATHLEN usage in [gcc]/libjava/gnu/java/nio/channels/natFileChannelImpl.cc
Date: Mon, 30 May 2005 14:40:00 -0000	[thread overview]
Message-ID: <20050530144012.21821.ams@gnu.org> (raw)

Please do not use MAXPATHLEN, it is a arbitrary limit, and is not
defined on GNU.  Currently this makes libjava (gcc 4.0.0) unbuildable on GNU
since [gcc]/libjava/gnu/java/nio/channels/natFileChannelImpl.cc assumes that
MAXPATHLEN is defined.  Please do not use these kind of limits in GNU programs.

Not having MAXPATHLEN is perfectly compliant with POSIX, same goes for
MAXHOSTNAMELEN, PATH_MAX etc.

-- 
           Summary: MAXPATHLEN usage in
                    [gcc]/libjava/gnu/java/nio/channels/natFileChannelImpl.c
                    c
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ams at gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: i686-pc-gnu0.3
  GCC host triplet: i686-pc-gnu0.3
GCC target triplet: i686-pc-gnu0.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21821


             reply	other threads:[~2005-05-30 14:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-30 14:40 ams at gnu dot org [this message]
2005-05-30 14:42 ` [Bug libgcj/21821] MAXPATHLEN usage in natFileChannelImpl.cc pinskia at gcc dot gnu dot org
2005-05-30 14:42 ` [Bug libgcj/21821] MAXPATHLEN usage in natFileChannelPosix.cc pinskia at gcc dot gnu dot org
2005-05-30 14:53 ` [Bug libgcj/21821] MAXPATHLEN usage in libjava ams at gnu dot org
2005-05-30 15:01 ` schwinge-bugzilla-gcc dot gnu dot org at nic-nac-project dot de
2005-05-30 15:14 ` pinskia at gcc dot gnu dot org
2005-05-30 15:51 ` mckinlay at redhat dot com
2005-05-30 16:19 ` cvs-commit at gcc dot gnu dot org
2005-05-30 16:23 ` ams at gnu dot org

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=20050530144012.21821.ams@gnu.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.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).