From: Alexander Monakov <amonakov@ispras.ru>
To: musl@lists.openwall.com
Subject: Re: fseek EOVERFLOW
Date: Mon, 29 Jun 2015 17:51:05 +0300 (MSK) [thread overview]
Message-ID: <alpine.LNX.2.11.1506291749210.27295@monopod.intra.ispras.ru> (raw)
In-Reply-To: <CAK4o1WwoXszgNfY7vwSga19STo9az8FAtXsOT4pJi_W_cmWjgA@mail.gmail.com>
On Mon, 29 Jun 2015, Justin Cormack wrote:
> The sign extension is correct - the argument to fseek is off_t (and so
> is the return value, it is not an int), and off_t is always 64 bit on
> Musl. For glibc it depends if it is compiled with LARGEFILE_SOURCE.
No; please consult the documentation. The 'offset' argument to fseek is
'long', and the return value is 'int' (either -1 on error, or 0).
Alexander
next prev parent reply other threads:[~2015-06-29 14:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-29 13:19 Alexander Monakov
2015-06-29 14:45 ` Justin Cormack
2015-06-29 14:51 ` Alexander Monakov [this message]
2015-06-29 15:11 ` Rich Felker
2015-06-29 15:31 ` Szabolcs Nagy
2015-06-29 16:05 ` Rich Felker
2015-06-29 16:43 ` Alexander Monakov
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=alpine.LNX.2.11.1506291749210.27295@monopod.intra.ispras.ru \
--to=amonakov@ispras.ru \
--cc=musl@lists.openwall.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).