]> granicus.if.org Git - strace/commit
net: enhance decoding of getsockopt(SO_ERROR)
authorMasatake YAMATO <yamato@redhat.com>
Mon, 17 Dec 2018 19:16:11 +0000 (04:16 +0900)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 17 Dec 2018 19:19:23 +0000 (19:19 +0000)
commit692dbd2c3d2052025e3d4b121d94689f24458651
tree09719e2f8b07fbf2e8ebdbd5a393d5afcbe3ebc0
parent004e6b5b7af458dd465b30a6461cae13c5c98457
net: enhance decoding of getsockopt(SO_ERROR)

* net.c (print_get_error): New function decoding error
number returned as option value for SO_ERROR option.
(print_getsockopt) <case SO_ERROR>: Call print_get_error.

* tests/so_error.c: New test.
* tests/gen_tests.in (so_error): Likewise.
* tests/pure_executables.list: Add so_error.
* tests/.gitignore: Likewise.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
net.c
tests/.gitignore
tests/gen_tests.in
tests/pure_executables.list
tests/so_error.c [new file with mode: 0644]