2021-01-15 10:43:47 +00:00
|
|
|
#!/bin/sh
|
2021-01-27 12:37:10 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2021-01-15 10:43:47 +00:00
|
|
|
set -eu
|
|
|
|
|
2021-04-20 11:02:02 +00:00
|
|
|
cd "${1:?}" && shift
|
2021-01-15 10:43:47 +00:00
|
|
|
|
2021-01-27 12:56:12 +00:00
|
|
|
curl --fail -L -o syscall-list.txt 'https://raw.githubusercontent.com/hrw/syscalls-table/master/syscall-names.text'
|
2021-01-15 10:43:47 +00:00
|
|
|
|
|
|
|
for arch in "$@"; do
|
2021-04-20 11:02:02 +00:00
|
|
|
curl --fail -L -o "syscalls-$arch.txt" "https://raw.githubusercontent.com/hrw/syscalls-table/master/tables/syscalls-$arch"
|
2021-01-15 10:43:47 +00:00
|
|
|
done
|