Decode fd_set into array of file descriptors

Dmitry V. Levin ldv at
Sat Dec 22 00:33:34 UTC 2018


On Wed, Dec 19, 2018 at 08:41:39PM -0800, shankarapailoor wrote:
> Hi!
> I was looking at the decoding of select system call and I noticed that
> fd_set  is decoded as [fd1 fd2 fd3 ..]. Is it ok to change this to be
> an array of file descriptors?  Attached is a patch which changes this
> to be an array of file descriptors like [fd1, fd2, fd3, ...]. Let me
> know what you think.

Do you suggest to print bit sets as if they were regular arrays
of integer types?

We had a rather short and inconclusive discussion about bit sets recently,
please have a look at the thread starting at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <>

More information about the Strace-devel mailing list