]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
enosys: list syscall numbers
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 27 Jun 2023 10:59:02 +0000 (12:59 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 23 Jul 2023 19:15:15 +0000 (21:15 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/enosys.c

index 9ec80c685b19b9f55b3fe274dba11558c2acd618..b2bb711407a2109c26fc1f2d6a590b5a09feefa0 100644 (file)
@@ -116,7 +116,7 @@ int main(int argc, char **argv)
                        break;
                case 'l':
                        for (i = 0; i < ARRAY_SIZE(syscalls); i++)
-                               printf("%s\n", syscalls[i].name);
+                               printf("%5ld %s\n", syscalls[i].number, syscalls[i].name);
                        return EXIT_SUCCESS;
                case 'V':
                        print_version(EXIT_SUCCESS);