summaryrefslogtreecommitdiff
path: root/Meta/check-syscall-lists.sh
diff options
context:
space:
mode:
authorthislooksfun <tlf@thislooks.fun>2021-10-26 13:08:39 -0500
committerAndreas Kling <kling@serenityos.org>2021-11-02 12:23:30 +0100
commitc2d44209a8f508ccb243410fc0e591976820b287 (patch)
tree6500ff07de9f876a3bc4958e178636e5d5b510ad /Meta/check-syscall-lists.sh
parent4de7b3ad24209777d40445ed4e8b6ffcee5185b6 (diff)
downloadserenity-c2d44209a8f508ccb243410fc0e591976820b287.zip
Meta: Use grep -E/F, not grep -P
grep -E and -F are POSIX standard, and meets all our matching needs.
Diffstat (limited to 'Meta/check-syscall-lists.sh')
-rwxr-xr-xMeta/check-syscall-lists.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Meta/check-syscall-lists.sh b/Meta/check-syscall-lists.sh
index 95e954a0f2..8dba593e4a 100755
--- a/Meta/check-syscall-lists.sh
+++ b/Meta/check-syscall-lists.sh
@@ -5,8 +5,8 @@ set -eo pipefail
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
cd "${script_path}/.."
-SYSCALLS_KERNEL="$(echo 'Kernel syscalls'; echo; grep -Pio '(?<=^ S\().*(?=\)( +\\)?$)' Kernel/API/Syscall.h | sort)"
-SYSCALLS_UE="$(echo 'Implemented in UserspaceEmulator'; echo; grep -Pio '(?<=^ case SC_).*(?=:$)' Userland/DevTools/UserspaceEmulator/Emulator.cpp | sort)"
+SYSCALLS_KERNEL="$(echo 'Kernel syscalls'; echo; grep -Eio '(?<=^ S\().*(?=\)( +\\)?$)' Kernel/API/Syscall.h | sort)"
+SYSCALLS_UE="$(echo 'Implemented in UserspaceEmulator'; echo; grep -Eio '(?<=^ case SC_).*(?=:$)' Userland/DevTools/UserspaceEmulator/Emulator.cpp | sort)"
SYSCALLS_MAN2="$(echo 'Documented syscalls'; echo; find Base/usr/share/man/man2/ ! -type d -printf '%f\n' | sed -Ee 's,\.md,,' | sort)"
set +e