/usr/src/ndiswrapper-1.60/mkstubs.sh is in ndiswrapper-dkms 1.60-6.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | #! /bin/sh
for file in "$@"; do
echo
echo "# automatically generated from $file"
sed -n \
-e 's/.*WIN_FUNC(\([^\,]\+\) *\, *\([0-9]\+\)).*/\
win2lin(\1, \2)/p' \
-e 's/.*WIN_FUNC_PTR(\([^\,]\+\) *\, *\([0-9]\+\)).*/\
win2lin(\1, \2)/p' \
$file | sed -e 's/[ \t ]\+//' | sort -u; \
done
|