kdump: Also decode fcntl commands containing underscores and digits.
The commands F_SETLK_REMOTE, F_DUPFD_CLOEXEC and F_DUP2FD_CLOEXEC were not decoded.
This commit is contained in:
parent
7d42370472
commit
a018a3c9e2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242482
@ -416,7 +416,7 @@ fcntlcmdname(int cmd, int arg, int decimal)
|
|||||||
{
|
{
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
_EOF_
|
_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 | \
|
$include_dir/sys/fcntl.h | \
|
||||||
awk 'BEGIN { o=0 } { for (i = 1; i <= NF; i++) \
|
awk 'BEGIN { o=0 } { for (i = 1; i <= NF; i++) \
|
||||||
if ($i ~ /define/) \
|
if ($i ~ /define/) \
|
||||||
|
Loading…
Reference in New Issue
Block a user