From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14821 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Petr Vorel Newsgroups: gmane.linux.lib.musl.general Subject: Re: loff_t definition in (vs. glibc in ) Date: Fri, 18 Oct 2019 00:52:05 +0200 Message-ID: <20191017225203.GA9969@x230> References: <20191016212835.GA17420@dell5510> <20191016215315.GU16318@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="230037"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) To: musl@lists.openwall.com Original-X-From: musl-return-14837-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 18 00:52:23 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iLEd4-000xiL-NG for gllmg-musl@m.gmane.org; Fri, 18 Oct 2019 00:52:22 +0200 Original-Received: (qmail 10148 invoked by uid 550); 17 Oct 2019 22:52:19 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 10128 invoked from network); 17 Oct 2019 22:52:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Tbu8Z24m7TnRe/LYPsogleyMpNo4Mi4GICcgfXq/41Q=; b=kZyXSEd55LM1uEg1tnFzcjgTFmwN1bcTbO3lMrM3YKlvYl9SKbegivXKuvNzv2J+WM +ckQjCiMh5STvrDJoMNQ2wX132lroUY7qmFaEQyDG8Gkr9ZvZKGAqJoo/dsghpszWFod lKjLk3a3OIGTHrh+dVZqap1WifWozrlZRKhGJ5sAwHxs3Ushvk2CqYUWICgN0LqHvaue OpqtRpKPffvUQWSHl4hj/H64M3GQR1kDcwRRudf7Culi09DUZSuSiZ1cu7r0LHj9Km/R eoo/lRtRtkTTRK7l58rssAfRHVr3FWeIousyeR8riMRX/OuyjAE5wwg7Pg5NjrAWoRbE btsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Tbu8Z24m7TnRe/LYPsogleyMpNo4Mi4GICcgfXq/41Q=; b=ZEKICQaF4m5iooR0PHWMujvDuxiTmrFDmxA3UAA7F79Xlb+8OiZhoju0r6hYIDA93j wILwrL1Qmg4RiBRXpH5+9pf0Dazk0WRDIZ4w3mGCicz45c2FLFcsBvl8AREQYbPZkVYj caWIU/rZfL4Sp+AyvWdzvGneS6ItVY4bOG4rddycbgH1NUcA5qnfOaptrvd3Wxw4HKp5 8HYCrO6RQ9ckIbneKB3JZ1sYFjFZaRiWJnuRyxbTVqG/IB1hFKb9h4Qjrx12VTHjBZnh pAON04ygVDf45z/sUrQZ7fQItildxRCzM0Y8E5/xDJfbRWL9aySVasFq+3Z1oZcGLhFf ewng== X-Gm-Message-State: APjAAAW0zI+8gN30D5Yi8qWSCwSH+SvkSSqK9WTfygQV8J/sjtrvc5n4 e4kzcAFM3pBFS8XQflcrQisGQ2UY5rY= X-Google-Smtp-Source: APXvYqydPMt5oKXOBS66+8MiL7J84ANdhXEgQKbj/la8+iqy8IbabELeQPjYrbaDcZh1MNJy3r6bYg== X-Received: by 2002:a7b:c387:: with SMTP id s7mr4474927wmj.110.1571352727522; Thu, 17 Oct 2019 15:52:07 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20191016215315.GU16318@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:14821 Archived-At: Hi Rich, > > what is the reason for loff_t being defined in ? > > It was defined some time ago, in v0.9.5. > > glibc (and thus uclibc; + also Bionic) has it in , defined long > > time before. Who is correct? I guess loff_t not being posix, therefore it > > shouldn't be in ? > > I'm asking because it'd be nice to have it for both in single header > > (portability). > The reason it's defined in fcntl.h is because that's where the > declarations for the only functions which use it in their interfaces > reside. If it needs to be made available from multiple places, that > could be done at some point, but this is a really minor type that > shouldn't be used except with with functions defined in terms of it. Thanks for info. So maybe glibc shouldn't have defined it in . FYI I'm handling compatibility issues for LTP [1], which often uses kernel API in order to test it. Probably normal user space applications don't have needs we have in LTP. Kind regards, Petr [1] https://github.com/linux-test-project/ltp/