Skip to content

Commit

Permalink
shared/syscall-list: filter out some obviously platform-specific sysc…
Browse files Browse the repository at this point in the history
…alls
  • Loading branch information
keszybz committed Aug 24, 2020
1 parent 077e8fc commit 752fedb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/shared/generate-syscall-list.py
Original file line number Diff line number Diff line change
@@ -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()))

0 comments on commit 752fedb

Please sign in to comment.