summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump/mksubr
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-08-13 19:57:35 +0000
committerjilles <jilles@FreeBSD.org>2013-08-13 19:57:35 +0000
commit7817797d293e752b1b26e3e8098f8017382fa645 (patch)
treedf7221f4588fdd0bfb6412b0169d73e8718e718b /usr.bin/kdump/mksubr
parent9381206c83fd21139368e4421be5d9b0c3d16bab (diff)
downloadFreeBSD-src-7817797d293e752b1b26e3e8098f8017382fa645.zip
FreeBSD-src-7817797d293e752b1b26e3e8098f8017382fa645.tar.gz
kdump: Improve decoding of various *at calls:
* Write AT_FDCWD where appropriate. * Decode the remaining arguments of openat() etc like open() etc.
Diffstat (limited to 'usr.bin/kdump/mksubr')
-rw-r--r--usr.bin/kdump/mksubr12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr
index aed8291..bb70d13 100644
--- a/usr.bin/kdump/mksubr
+++ b/usr.bin/kdump/mksubr
@@ -209,6 +209,18 @@ cat <<_EOF_
while (0)
/* MANUAL */
+void
+atfdname(int fd, int decimal)
+{
+ if (fd == AT_FDCWD)
+ printf("AT_FDCWD");
+ else if (decimal)
+ printf("%d", fd);
+ else
+ printf("%#x", fd);
+}
+
+/* MANUAL */
extern char *signames[]; /* from kdump.c */
void
signame(int sig)
OpenPOWER on IntegriCloud