public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/12882] Large file support not complete Date: Thu, 01 Jan 2004 22:26:00 -0000 [thread overview] Message-ID: <20040101222602.26442.qmail@sources.redhat.com> (raw) In-Reply-To: <20031103084202.12882.peturr02@ru.is> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-01 22:26 ------- stdio_sync_filebuf uses fstat still: virtual std::streamsize showmanyc() { #if defined(_GLIBCXX_HAVE_S_ISREG) || defined(_GLIBCXX_HAVE_S_IFREG) // Regular files. struct stat __buffer; int __ret = fstat(fileno(_M_file), &__buffer); if (!__ret && _GLIBCXX_ISREG(__buffer.st_mode)) return __buffer.st_size - ftell(_M_file); #endif ... And in basic_file_stdio.h, fstat: streamsize __basic_file<char>::showmanyc() { ... #if defined(_GLIBCXX_HAVE_S_ISREG) || defined(_GLIBCXX_HAVE_S_IFREG) // Regular files. struct stat __buffer; int __ret = fstat(this->fd(), &__buffer); if (!__ret && _GLIBCXX_ISREG(__buffer.st_mode)) return __buffer.st_size - lseek(this->fd(), 0, ios_base::cur); #endif -- What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2003-11-03 15:58:25 |2004-01-01 22:26:01 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12882
next prev parent reply other threads:[~2004-01-01 22:26 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-11-03 8:42 [Bug libstdc++/12882] New: " peturr02 at ru dot is 2003-11-03 15:58 ` [Bug libstdc++/12882] " pinskia at gcc dot gnu dot org 2003-11-03 17:43 ` paolo at gcc dot gnu dot org 2003-11-03 20:35 ` paolo at gcc dot gnu dot org 2003-11-21 20:30 ` cvs-commit at gcc dot gnu dot org 2004-01-01 22:26 ` pinskia at gcc dot gnu dot org [this message] 2004-07-07 21:39 ` pcarlini at suse dot de 2004-08-18 19:28 ` pinskia at gcc dot gnu dot org 2004-08-18 19:58 ` scrimr at louisville dot stortek dot com 2004-09-21 9:06 ` cvs-commit at gcc dot gnu dot org 2004-09-21 9:31 ` pcarlini at suse dot de
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=20040101222602.26442.qmail@sources.redhat.com \ --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).