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