From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12235 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: statx syscall support Date: Wed, 13 Dec 2017 15:20:09 -0500 Message-ID: <20171213202009.GD1627@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1513196425 32355 195.159.176.226 (13 Dec 2017 20:20:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2017 20:20:25 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-12251-gllmg-musl=m.gmane.org@lists.openwall.com Wed Dec 13 21:20:21 2017 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.84_2) (envelope-from ) id 1ePDVq-00082o-QP for gllmg-musl@m.gmane.org; Wed, 13 Dec 2017 21:20:18 +0100 Original-Received: (qmail 17764 invoked by uid 550); 13 Dec 2017 20:20:23 -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 17743 invoked from network); 13 Dec 2017 20:20:22 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:12235 Archived-At: On Wed, Dec 13, 2017 at 10:54:07AM +0100, Daniel Cegiełka wrote: > hi, > is there any plan for statx syscall support in musl? > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/stat.h?h=v4.15-rc3 > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/samples/statx/test-statx.c?h=v4.15-rc3 Nothing specific right now. The syscall number will of course be added to syscall.h and available for direct use, but not much use without a header defining the type. Of course or whatever should work assuming they don't define types that clash with libc. In the long term, the statx interfaces may be useful for implementing the POSIX stat function, especially on some archs (mainly mips) where the existing stat syscalls are broken and need patching-up in userspace. There's a vague future idea for a "musl 2 ABI" somewhere down the line with clean, extensible, arch-independent definitions for all the structs (and translation to/from kernel definitions in wrappers) and using statx would certainly be helpful for that (but of course would need fallbacks for older kernels unless this happens so far in the future that older kernels are not relevant). All this would be "under the hood", though, not as the primary public interface. Rich