On Thu, Mar 9, 2017 at 5:44 PM, Victor Krapivensky
<krapivenskiy...@phystech.edu> wrote:
> I would like to implement the parser for statx. Here is my current
> attempt (no tests yet).
> I've spotted the tests/statx.sh script. Unfortunately, due to that
> tests/init.sh expects the caller name to end with ".test", it just
> endlessly runs itself. What is it supposed to do?
This is a support script for various stat test flavors:
$ git grep statx.sh
<...>
tests/fstatat64.test:. "${srcdir=.}/statx.sh"
tests/lstat.test:. "${srcdir=.}/statx.sh"
tests/lstat64.test:. "${srcdir=.}/statx.sh"
tests/newfstatat.test:. "${srcdir=.}/statx.sh"
tests/oldlstat.test:. "${srcdir=.}/statx.sh"
tests/oldstat.test:. "${srcdir=.}/statx.sh"
tests/stat.test:. "${srcdir=.}/statx.sh"
tests/stat64.test:. "${srcdir=.}/statx.sh"

> Also, how do I get syscall numbers for all the platforms?
For not so new arches, syscalls are wired on case-by-case basis, so
there is no simple way. There is some attempt to automate it [1], but
it relies on architecture headers, and for these proper wiring is
needed in place.

PS. Btw, by a quick look at the patch (haven't reviewed it yet), I can
say that you at least forgot to wire up i386 arch [2], improperly
indented SEN(statx) and most probably would have problems with struct
statx name clash once glibc decided to support it.

[1] https://strace.io/logs/strace/2017-02-08#1066;
[2] 
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/x86/entry/syscalls/syscall_32.tbl#n392

-- 
Eugene Syromyatnikov
mailto:evg...@gmail.com
xmpp:esyr@jabber.{ru|org}

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to