commit | 802cc28f399951da292c1ece6d4fe039470525fa | [log] [tgz] |
---|---|---|
author | Fabien Siron <fabien.siron@epita.fr> | Fri Jun 17 16:29:53 2016 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Sun Jun 19 23:01:14 2016 +0000 |
tree | 9eb146f6616540c476a07f769f37f3e7b0ff1d0e | |
parent | cb7409c87a1382bd8193ec6e334a400b1e22c302 [diff] |
Make getfdproto return enum instead of string Introduce a new enum type sock_proto and use it instead of strings for socket protocols identification. * defs.h (sock_proto): New enum. (get_proto_by_name): New function. * socketutils.c (protocols): New static table. (print_sockaddr_by_inode): Use it. Change type of "proto" argument to sock_proto. (get_proto_by_name): New function. * util.c (getfdproto): Use it. Change return type to sock_proto. (printfd): Update.
This is strace -- a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.
strace is released under a Berkeley-style license at the request of Paul Kranenburg; see the file COPYING for details.
See the file NEWS for information on what has changed in recent versions.
Please send bug reports and enhancements to the strace mailing list.