diff options
author | jilles <jilles@FreeBSD.org> | 2013-08-13 19:57:35 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-08-13 19:57:35 +0000 |
commit | 7817797d293e752b1b26e3e8098f8017382fa645 (patch) | |
tree | df7221f4588fdd0bfb6412b0169d73e8718e718b /usr.bin/kdump/mksubr | |
parent | 9381206c83fd21139368e4421be5d9b0c3d16bab (diff) | |
download | FreeBSD-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/mksubr | 12 |
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) |