mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
Meta: Remove unused and outdated check-syscall-lists.sh lint
This was apparently never used by anyone except me, and currently fails silently. The script originally allowed easy inspection of the difference between: 1. The list of declared syscalls according to Kernel/API/Syscall.h 2. The list of syscalls implemented by the UserspaceEmulator according to Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp 3. The list of syscalls documented in Base/usr/share/man/man2/. Here's how the script could have been updated: SYSCALLS_KERNEL="$(echo 'Kernel syscalls'; echo; \ grep -Eo '^ +S\(.*, NeedsBigProcessLock::' Kernel/API/Syscall.h | \ sed -Ee 's-^ +S\((.+), .*-\1-' | sort)" SYSCALLS_UE="$(echo 'Implemented in UserspaceEmulator'; echo; \ grep -Eo '^ +case SC_.*:$' \ Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp | \ sed -Ee 's,^ +case SC_(.*):$,\1,' | sort)" SYSCALLS_MAN2="$(echo 'Documented syscalls'; echo; \ find Base/usr/share/man/man2/ ! -type d -printf '%f\n' | \ sed -Ee 's,\.md,,' | sort)" diff --color=always \ <(echo "${SYSCALLS_KERNEL}") <(echo "${SYSCALLS_UE}") diff --color=always \ <(echo "${SYSCALLS_KERNEL}") <(echo "${SYSCALLS_MAN2}") A more readable version might be available at https://github.com/BenWiederhake/serenity/tree/historic/syscall-linting However, there seems to be no interest in the script, so it is better to remove it.
This commit is contained in:
parent
616b3dc718
commit
93b8e76133
Notes:
sideshowbarker
2024-07-17 07:13:42 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/93b8e76133 Pull-request: https://github.com/SerenityOS/serenity/pull/15216
1 changed files with 0 additions and 20 deletions
|
@ -1,20 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||
cd "${script_path}/.."
|
||||
|
||||
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
|
||||
|
||||
echo "ACTUAL versus UE"
|
||||
diff --color=always -u <(echo "${SYSCALLS_KERNEL}") <(echo "${SYSCALLS_UE}")
|
||||
echo
|
||||
echo "ACTUAL versus UE"
|
||||
diff --color=always -u <(echo "${SYSCALLS_KERNEL}") <(echo "${SYSCALLS_MAN2}")
|
||||
|
||||
exit 0
|
Loading…
Add table
Reference in a new issue