From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8065 Path: news.gmane.org!not-for-mail From: Alexander Monakov Newsgroups: gmane.linux.lib.musl.general Subject: Re: fseek EOVERFLOW Date: Mon, 29 Jun 2015 17:51:05 +0300 (MSK) Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: ger.gmane.org 1435589481 25358 80.91.229.3 (29 Jun 2015 14:51:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 14:51:21 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8078-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jun 29 16:51:20 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Z9aP0-0005fq-N3 for gllmg-musl@m.gmane.org; Mon, 29 Jun 2015 16:51:18 +0200 Original-Received: (qmail 7739 invoked by uid 550); 29 Jun 2015 14:51:17 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 7718 invoked from network); 29 Jun 2015 14:51:16 -0000 In-Reply-To: User-Agent: Alpine 2.11 (LNX 23 2013-08-11) Xref: news.gmane.org gmane.linux.lib.musl.general:8065 Archived-At: 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