mailing list of musl libc
 help / color / mirror / code / Atom feed
* statx syscall support
@ 2017-12-13  9:54 Daniel Cegiełka
  2017-12-13 20:20 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Cegiełka @ 2017-12-13  9:54 UTC (permalink / raw)
  To: musl

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

Daniel


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

* Re: statx syscall support
  2017-12-13  9:54 statx syscall support Daniel Cegiełka
@ 2017-12-13 20:20 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2017-12-13 20:20 UTC (permalink / raw)
  To: musl

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 <linux/statx.h> 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


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

end of thread, other threads:[~2017-12-13 20:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-13  9:54 statx syscall support Daniel Cegiełka
2017-12-13 20:20 ` Rich Felker

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