testsuite: factor out fd related parameters to a structure

This is a more abstract implementation of "file descriptor
comparation". With the current implementation the code is full of
conditions based on the descriptor type. It makes sense to
initialize the parameters once based on the descriptor type.

stdout and stderr are handled in almost the same way, but for
monitor descriptor branch, based on the type check is necessary in
some cases.

Since epoll's context now contains pointers to the structures, so no
direct manipulations there.

Most of the patch is just replacing direct buffer manipulations with
the structures' ones.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
1 file changed
tree: bebb39763795d74bb958c535e8b35ea00bb0f632
  1. .semaphore/
  2. libkmod/
  3. m4/
  4. man/
  5. shared/
  6. shell-completion/
  7. testsuite/
  8. tools/
  9. .gitignore
  10. .travis.yml
  11. autogen.sh
  12. CODING-STYLE
  13. configure.ac
  14. COPYING
  15. Makefile.am
  16. NEWS
  17. README
  18. README.md
  19. TODO
README.md

kmod - Linux kernel module handling

Coverity Scan Status

This is a mirror only. Please see README file for more information.