public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jpr at csc dot fi" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/42420] libgfortran fails to open large files on MINGW32 Date: Fri, 18 Dec 2009 00:35:00 -0000 [thread overview] Message-ID: <20091218003500.1121.qmail@sourceware.org> (raw) In-Reply-To: <bug-42420-11807@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from jpr at csc dot fi 2009-12-18 00:35 ------- or rather this.... Index: unix.c =================================================================== --- unix.c (revision 155325) +++ unix.c (working copy) @@ -781,7 +781,11 @@ static stream * fd_to_stream (int fd, int prot) { +#ifdef __MINGW32__ + struct _stati64 statbuf; +#else struct stat statbuf; +#endif unix_stream *s; s = get_mem (sizeof (unix_stream)); @@ -795,7 +799,11 @@ /* Get the current length of the file. */ +#ifdef __MINGW32__ + _fstati64 (fd, &statbuf); +#else fstat (fd, &statbuf); +#endif if (lseek (fd, 0, SEEK_CUR) == (gfc_offset) -1) s->file_length = -1; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42420
next prev parent reply other threads:[~2009-12-18 0:35 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-12-18 0:24 [Bug libfortran/42420] New: " jpr at csc dot fi 2009-12-18 0:35 ` jpr at csc dot fi [this message] 2009-12-18 0:58 ` [Bug libfortran/42420] " kargl at gcc dot gnu dot org 2009-12-18 5:43 ` jpr at csc dot fi 2009-12-18 6:43 ` kargl at gcc dot gnu dot org 2009-12-18 8:51 ` burnus at gcc dot gnu dot org 2009-12-20 10:23 ` jb at gcc dot gnu dot org 2010-01-02 21:39 ` jb at gcc dot gnu dot org 2010-01-03 18:09 ` jb at gcc dot gnu dot org 2010-01-05 19:14 ` jb at gcc dot 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=20091218003500.1121.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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: 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).