1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-20 18:04:03 +03:00

shared/syscall-list: filter out some obviously platform-specific syscalls

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-08-19 17:46:30 +02:00
parent 077e8fc0ca
commit 752fedbea7

View File

@ -1,5 +1,14 @@
#!/usr/bin/env python
import sys
import os
s390 = 's390' in os.uname().machine
arm = 'arm' in os.uname().machine
for line in open(sys.argv[1]):
if line.startswith('s390_') and not s390:
continue
if line.startswith('arm_') and not arm:
continue
print('"{}\\0"'.format(line.strip()))