summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2012-11-02 16:07:21 +0000
committerjilles <jilles@FreeBSD.org>2012-11-02 16:07:21 +0000
commit2a05c8d9e2ced25189fb50d510d7f8226b4fbfa2 (patch)
treefd57147a8f5cc8edffb493c64d3502313846ca87 /usr.bin/kdump
parentdd8afbd1630f9f57b7210beab95ded436336080d (diff)
downloadFreeBSD-src-2a05c8d9e2ced25189fb50d510d7f8226b4fbfa2.zip
FreeBSD-src-2a05c8d9e2ced25189fb50d510d7f8226b4fbfa2.tar.gz
kdump: Also decode fcntl commands containing underscores and digits.
The commands F_SETLK_REMOTE, F_DUPFD_CLOEXEC and F_DUP2FD_CLOEXEC were not decoded.
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/mksubr2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr
index 2397812..1b0df5e 100644
--- a/usr.bin/kdump/mksubr
+++ b/usr.bin/kdump/mksubr
@@ -416,7 +416,7 @@ fcntlcmdname(int cmd, int arg, int decimal)
{
switch (cmd) {
_EOF_
-egrep "^#[[:space:]]*define[[:space:]]+F_[A-Z]+[[:space:]]+[0-9]+[[:space:]]*" \
+egrep "^#[[:space:]]*define[[:space:]]+F_[A-Z0-9_]+[[:space:]]+[0-9]+[[:space:]]*" \
$include_dir/sys/fcntl.h | \
awk 'BEGIN { o=0 } { for (i = 1; i <= NF; i++) \
if ($i ~ /define/) \
OpenPOWER on IntegriCloud