# generate_linux_syscalls: Rework generation strategy for newer kernel ports\. · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/7e74276661fd76ce7d23b97e151aa9a6e367aea5)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 7e74276661fd76ce7d23b97e151aa9a6e367aea5

Requested commit: 7e74276661fd76ce7d23b97e151aa9a6e367aea5

Commit: 7e74276661fd76ce7d23b97e151aa9a6e367aea5

Tree: 322f77e5e62d078398bf58baf54a696e1fbedada

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
generate_linux_syscalls: Rework generation strategy for newer kernel ports.

If we're going to abuse the preprocessor, we may as well go all the way and have
it generate a convenient format for us. This achieves two things:

1. We no longer need hacks for the arch-specific syscalls.
2. We now generate the correct syscall names for 32-bit platforms.

The latter is because we now resolve __SC_3264, etc.

```

## Parents

- [f494a47ca5ac89fcc159d5db6c70763946193630](https://git.cafe/gitcafe/zig/commit/f494a47ca5ac89fcc159d5db6c70763946193630?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/7e74276661fd76ce7d23b97e151aa9a6e367aea5?format=markdown)
