blob: 81485184085a907a126c29a0818003cb8da580fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#pragma once
/*! Determine number of elements in an array of static size */
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
/* add a file descriptor from the list of to-be-traced ones */
void add_fd(int fd);
/* delete a file descriptor from the list of to-be-traced ones */
void del_fd(int fd);
/* is the given file descriptor part of the to-be-traced unix domain fd's? */
bool is_unix_socket(int fd);
char *udtrace_hexdump(const unsigned char *buf, int len, char *delim);
|