Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136592068
D14246.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D14246.diff
View Options
Index: head/lib/libsysdecode/mkioctls
===================================================================
--- head/lib/libsysdecode/mkioctls
+++ head/lib/libsysdecode/mkioctls
@@ -17,18 +17,29 @@
# XXX should we use an ANSI cpp?
ioctl_includes=$(
cd $includedir
+ set -e
+ # if /bin/sh is bash this will avoid further errors due to missing commands
+ if set -o | grep -q pipefail; then
+ set -o pipefail
+ fi
filter='tee'
- if [ "${MK_PF}" == "no" ]; then
+ if [ "${MK_PF}" = "no" ]; then
filter='egrep -v (net/pfvar|net/if_pfsync)\.h'
fi
-
- find -H -s * -name '*.h' | \
+ # find -s would avoid the need to invoke sort but it is non-portable
+ find -L ./* -type f -name '*.h' | \
+ LC_ALL=C sort | \
$filter | \
xargs egrep -l \
'^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-9_]*[ ]+_IO[^a-z0-9_]' |
awk '{printf("#include <%s>\\n", $1)}'
)
+
+if [ -z "$ioctl_includes" ]; then
+ echo "Failed to build list of ioctl headers"
+ exit 1
+fi
awk -v x="$ioctl_includes" 'BEGIN {print x}' |
$CPP -nostdinc -I$includedir -dM -DCOMPAT_43TTY - |
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 19, 12:07 PM (16 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25629983
Default Alt Text
D14246.diff (1 KB)
Attached To
Mode
D14246: crossbuild: make mkioctls script work on Linux and MacOS
Attached
Detach File
Event Timeline
Log In to Comment