public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug stdio/13960] New: #defining _LARGEFILE_SOURCE does not give me ftello
@ 2012-04-07 10:49 giecrilj at stegny dot 2a.pl
  2012-04-08  9:47 ` [Bug stdio/13960] " aj at suse dot de
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: giecrilj at stegny dot 2a.pl @ 2012-04-07 10:49 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13960

             Bug #: 13960
           Summary: #defining _LARGEFILE_SOURCE does not give me ftello
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: stdio
        AssignedTo: unassigned@sourceware.org
        ReportedBy: giecrilj@stegny.2a.pl
    Classification: Unclassified


Created attachment 6330
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6330
does not compile with gcc -ansi

== Steps to reproduce ==
{ gcc -c -ansi off_t.c; }

== Expected result ==
off_t.o

== Actual result ==
off_t.c:8:8: error: expected declaration specifiers or ‘...’ before ‘*’ token

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug stdio/13960] #defining _LARGEFILE_SOURCE does not give me ftello
  2012-04-07 10:49 [Bug stdio/13960] New: #defining _LARGEFILE_SOURCE does not give me ftello giecrilj at stegny dot 2a.pl
@ 2012-04-08  9:47 ` aj at suse dot de
  2013-05-09 17:25 ` ondra at iuuk dot mff.cuni.cz
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: aj at suse dot de @ 2012-04-08  9:47 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13960

Andreas Jaeger <aj at suse dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |UNCONFIRMED
                 CC|                            |aj at suse dot de
     Ever Confirmed|1                           |0

--- Comment #1 from Andreas Jaeger <aj at suse dot de> 2012-04-08 09:47:22 UTC ---
You get ftello - just run it through gcc -E -ansi.

What you don't get is off_t - you have __off_t only.

And the feature test macro for off_t has a check for 
__USE_XOPEN2K8.

So, add a define of _XOPEN_SOURCE to 700 as well.

I'm not sure whether this is really a bug in glibc or in your usage of the
flags.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug stdio/13960] #defining _LARGEFILE_SOURCE does not give me ftello
  2012-04-07 10:49 [Bug stdio/13960] New: #defining _LARGEFILE_SOURCE does not give me ftello giecrilj at stegny dot 2a.pl
  2012-04-08  9:47 ` [Bug stdio/13960] " aj at suse dot de
@ 2013-05-09 17:25 ` ondra at iuuk dot mff.cuni.cz
  2014-06-25 11:19 ` fweimer at redhat dot com
  2014-06-29  8:48 ` giecrilj at stegny dot 2a.pl
  3 siblings, 0 replies; 5+ messages in thread
From: ondra at iuuk dot mff.cuni.cz @ 2013-05-09 17:25 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13960

OndrejBilka <ondra at iuuk dot mff.cuni.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ondra at iuuk dot
                   |                            |mff.cuni.cz
         Resolution|                            |WORKSFORME

--- Comment #2 from OndrejBilka <ondra at iuuk dot mff.cuni.cz> 2013-05-09 17:25:33 UTC ---
Closing as we did not get response in year if problem persists.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug stdio/13960] #defining _LARGEFILE_SOURCE does not give me ftello
  2012-04-07 10:49 [Bug stdio/13960] New: #defining _LARGEFILE_SOURCE does not give me ftello giecrilj at stegny dot 2a.pl
  2012-04-08  9:47 ` [Bug stdio/13960] " aj at suse dot de
  2013-05-09 17:25 ` ondra at iuuk dot mff.cuni.cz
@ 2014-06-25 11:19 ` fweimer at redhat dot com
  2014-06-29  8:48 ` giecrilj at stegny dot 2a.pl
  3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-25 11:19 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13960

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug stdio/13960] #defining _LARGEFILE_SOURCE does not give me ftello
  2012-04-07 10:49 [Bug stdio/13960] New: #defining _LARGEFILE_SOURCE does not give me ftello giecrilj at stegny dot 2a.pl
                   ` (2 preceding siblings ...)
  2014-06-25 11:19 ` fweimer at redhat dot com
@ 2014-06-29  8:48 ` giecrilj at stegny dot 2a.pl
  3 siblings, 0 replies; 5+ messages in thread
From: giecrilj at stegny dot 2a.pl @ 2014-06-29  8:48 UTC (permalink / raw)
  To: glibc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 5835 bytes --]

https://sourceware.org/bugzilla/show_bug.cgi?id=13960

Christopher Yeleighton <giecrilj at stegny dot 2a.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                URL|                            |file:///usr/share/doc/glibc
                   |                            |/Feature-Test-Macros.html#F
                   |                            |eature-Test-Macros
   Last reconfirmed|                            |2014-06-29
            Version|2.14                        |2.18
         Resolution|WORKSFORME                  |---
     Ever confirmed|0                           |1

--- Comment #3 from Christopher Yeleighton <giecrilj at stegny dot 2a.pl> ---
Let’s put some order in this, shall we?

It is documented that if _LARGEFILE_SOURCE is #defined then ftello is
available.  The default meaning of the word is ‘available as documented’ and
not ‘somewhat available’ as your explanation seems to imply — and ftello is
documented to return off_t, not __off_t.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-24679-listarch-glibc-bugs=sources.redhat.com@sourceware.org Sun Jun 29 11:50:16 2014
Return-Path: <glibc-bugs-return-24679-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 2291 invoked by alias); 29 Jun 2014 11:50:16 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 2114 invoked by uid 55); 29 Jun 2014 11:50:09 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug math/17097] ldbl-128 powl bad sign in overflow cases
Date: Sun, 29 Jun 2014 11:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: math
X-Bugzilla-Version: 2.19
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-17097-131-k4nejZKHWG@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-17097-131@http.sourceware.org/bugzilla/>
References: <bug-17097-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-06/txt/msg02055.txt.bz2
Content-length: 2622

https://sourceware.org/bugzilla/show_bug.cgi?id\x17097

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  edea402804bce917cfd7cd1af76212e6364c23db (commit)
      from  dd0ba018122e88937a5f14b6594b9a40693b2e58 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;híea402804bce917cfd7cd1af76212e6364c23db

commit edea402804bce917cfd7cd1af76212e6364c23db
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Sun Jun 29 11:49:08 2014 +0000

    Fix ldbl-128 powl sign of result in overflow / underflow cases (bug 17097).

    This patch fixes bug 17097, ldbl-128 powl producing overflowing /
    underflowing results with positive sign when the result should have
    been negative.  This was shown up by the tests in non-default rounding
    modes added by my patch for bug 16315, but isn't actually limited to
    non-default rounding modes: rather, when rounding to nearest the
    wrappers produced a result with the correct sign and so always hid the
    bug unless -lieee was used to disable the wrappers.  The problem is
    that in the cases where Y is large enough that the result overflows or
    underflows for X not very close to 1, but not large enough to overflow
    or underflow for all X != +/- 1 (in the latter case Y is always an
    even integer), a positive overflowing / underflowing result is always
    returned, rather than one with the correct sign.  This patch moves the
    relevant part of computation of the sign earlier and returns a result
    of the correct sign.

    Tested for mips64.

        [BZ #17097]
        * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
        result with correct sign in case of exponents that produce
        overflow except for X very close to 1.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                         |    7 +++++++
 NEWS                              |    2 +-
 sysdeps/ieee754/ldbl-128/e_powl.c |   26 +++++++++++++-------------
 3 files changed, 21 insertions(+), 14 deletions(-)

--
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-29  8:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-07 10:49 [Bug stdio/13960] New: #defining _LARGEFILE_SOURCE does not give me ftello giecrilj at stegny dot 2a.pl
2012-04-08  9:47 ` [Bug stdio/13960] " aj at suse dot de
2013-05-09 17:25 ` ondra at iuuk dot mff.cuni.cz
2014-06-25 11:19 ` fweimer at redhat dot com
2014-06-29  8:48 ` giecrilj at stegny dot 2a.pl

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).