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:
parent
077e8fc0ca
commit
752fedbea7
@ -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()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user