diff options
author | John Baldwin <jhb@FreeBSD.org> | 2015-12-22 20:33:49 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2015-12-22 20:33:49 +0000 |
commit | 265e58989d94820a0845000733a5908bcf0d3b00 (patch) | |
tree | 12efcb04d4bc19b74d2554032b084f8fee602ddf /lib/libsysdecode/sysdecode.h | |
parent | b63d070ad17e361cda7b769aac13ed87767f1958 (diff) | |
download | src-265e58989d94820a0845000733a5908bcf0d3b00.tar.gz src-265e58989d94820a0845000733a5908bcf0d3b00.zip |
Move the mkioctls script to libsysdecode and use it to generate a
sysdecode_ioctlname() function. This function matches the behavior
of the truss variant in that it returns a pointer to a string description
for known ioctls. The caller is responsible for displaying unknown
ioctl requests. For kdump this meant moving the logic to handle unknown
ioctl requests out of the generated function and into an ioctlname()
function in kdump.c instead.
Differential Revision: https://reviews.freebsd.org/D4610
Notes
Notes:
svn path=/head/; revision=292622
Diffstat (limited to 'lib/libsysdecode/sysdecode.h')
-rw-r--r-- | lib/libsysdecode/sysdecode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libsysdecode/sysdecode.h b/lib/libsysdecode/sysdecode.h index 10feee10456f..aa95838e78d7 100644 --- a/lib/libsysdecode/sysdecode.h +++ b/lib/libsysdecode/sysdecode.h @@ -29,6 +29,7 @@ #ifndef __SYSDECODE_H__ #define __SYSDECODE_H__ +const char *sysdecode_ioctlname(unsigned long _val); int sysdecode_utrace(FILE *_fp, void *_buf, size_t _len); #endif /* !__SYSDECODE_H__ */ |