Martin Wilck Martin.Wilck@fujitsu-siemens.com writes:
I just wanted to make this distinction more logical. I think it is necessary to separate fd types and flags. The distinction between regular files, pipes, sockets, ... that the patch introduces is currently not needed, but doesn't hurt IMO.
I prefer that we make the distinction only where needed, to encourage people to write generic code if possible.
If you wish, I can strip the patch down to its essential part (have separate flags for overlapped and timeout flags).
That would be better yes. Also I think they should be really separate: the type should be an enum and the flags should be in a separate variable.