Author: jilles Date: Mon Aug 26 17:22:51 2013 New Revision: 254922 URL: http://svnweb.freebsd.org/changeset/base/254922
Log: kdump: Decode SOCK_CLOEXEC and SOCK_NONBLOCK in socket() and socketpair(). Modified: head/usr.bin/kdump/kdump.c head/usr.bin/kdump/mksubr Modified: head/usr.bin/kdump/kdump.c ============================================================================== --- head/usr.bin/kdump/kdump.c Mon Aug 26 17:21:40 2013 (r254921) +++ head/usr.bin/kdump/kdump.c Mon Aug 26 17:22:51 2013 (r254922) @@ -830,7 +830,7 @@ ktrsyscall(struct ktr_syscall *ktr, u_in ip++; narg--; putchar(','); - socktypename(*ip); + socktypenamewithflags(*ip); ip++; narg--; if (sockdomain == PF_INET || @@ -908,7 +908,7 @@ ktrsyscall(struct ktr_syscall *ktr, u_in ip++; narg--; putchar(','); - socktypename(*ip); + socktypenamewithflags(*ip); ip++; narg--; c = ','; Modified: head/usr.bin/kdump/mksubr ============================================================================== --- head/usr.bin/kdump/mksubr Mon Aug 26 17:21:40 2013 (r254921) +++ head/usr.bin/kdump/mksubr Mon Aug 26 17:22:51 2013 (r254922) @@ -368,6 +368,19 @@ vmprotname (int type) if_print_or(type, VM_PROT_EXECUTE, or); if_print_or(type, VM_PROT_COPY, or); } + +/* + * MANUAL + */ +void +socktypenamewithflags(int type) +{ + if (type & SOCK_CLOEXEC) + printf("SOCK_CLOEXEC|"), type &= ~SOCK_CLOEXEC; + if (type & SOCK_NONBLOCK) + printf("SOCK_NONBLOCK|"), type &= ~SOCK_NONBLOCK; + socktypename(type); +} _EOF_ auto_or_type "accessmodename" "[A-Z]_OK[[:space:]]+0?x?[0-9A-Fa-f]+" "sys/unistd.h" _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"