]> git.lizzy.rs Git - plan9front.git/commit
syscall: utility overhaul
authorkvik <kvik@a-b.xyz>
Sun, 20 Sep 2020 12:49:12 +0000 (14:49 +0200)
committerkvik <kvik@a-b.xyz>
Sun, 20 Sep 2020 12:49:12 +0000 (14:49 +0200)
commitaa7c8cac1145d0cd6e9117deaa1f8c9f418bca17
tree46e284013e4eaf89b0a436e5a28d34f067c32492
parente3166b4fe83d12a29c265fe9a8f333369b35c663
syscall: utility overhaul

Following is a list of functional changes:

* The -o flag outputs the entire buffer to the length returned
  by the syscall, or, in case of fd2path(2) and errstr(2), to '\0'.
* The -x flag is removed; the above makes it possible to pipe
  into xd(1) to get the same result.
* The -s flag uses dirfmt(2) to format the stat message, instead
  of trying to imitate ls(1).
* Stderr reports are normalized and made easier to parse.

The code also suffered a number of stylistic changes.
sys/man/1/syscall
sys/src/cmd/syscall/mkfile
sys/src/cmd/syscall/syscall.c