Re: [PATCH] Print protocol name of socket descriptors with -yy option

2014-11-20 Thread Masatake YAMATO
Hi, > was introduced in glibc v2.3 about 12 years ago, > not sure about other libc implementations. > Can we rely on and include it unconditionally? I added the similar code which includes sys/xattr.h to lsof a year ago. However, I have never heard complains about this inclusion. >> +static ch

Re: [PATCH] Print protocol name of socket descriptors with -yy option

2014-11-19 Thread enh
speaking for bionic, we have . -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports

Re: [PATCH] Print protocol name of socket descriptors with -yy option

2014-11-19 Thread Dmitry V. Levin
On Wed, Nov 19, 2014 at 11:32:32PM +0900, Masatake YAMATO wrote: > When -yy option is specified other than inet socket > were printed as . > > e.g. > > # ./strace -e recvmsg -yy ping 127.0.0.1 > /dev/null > ... > recvmsg(3, ... > ... > > This patch makes the output more infor

[PATCH] Print protocol name of socket descriptors with -yy option

2014-11-19 Thread Masatake YAMATO
When -yy option is specified other than inet socket were printed as . e.g. # ./strace -e recvmsg -yy ping 127.0.0.1 > /dev/null ... recvmsg(3, ... ... This patch makes the output more informative; instead of printing "socket" strace prints the name of protocol behind the sock