Add more static keywords to truss(1) source code.
There are some tables in the source code that are only used by the individual source files themselves. Therefore there is no need to export them.
This commit is contained in:
parent
8375d51296
commit
a02c83afc5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228396
@ -228,7 +228,7 @@ amd64_linux32_syscall_entry(struct trussinfo *trussinfo, int nargs) {
|
|||||||
/*
|
/*
|
||||||
* Linux syscalls return negative errno's, we do positive and map them
|
* Linux syscalls return negative errno's, we do positive and map them
|
||||||
*/
|
*/
|
||||||
const int bsd_to_linux_errno[] = {
|
static const int bsd_to_linux_errno[] = {
|
||||||
-0, -1, -2, -3, -4, -5, -6, -7, -8, -9,
|
-0, -1, -2, -3, -4, -5, -6, -7, -8, -9,
|
||||||
-10, -35, -12, -13, -14, -15, -16, -17, -18, -19,
|
-10, -35, -12, -13, -14, -15, -16, -17, -18, -19,
|
||||||
-20, -21, -22, -23, -24, -25, -26, -27, -28, -29,
|
-20, -21, -22, -23, -24, -25, -26, -27, -28, -29,
|
||||||
|
@ -228,7 +228,7 @@ i386_linux_syscall_entry(struct trussinfo *trussinfo, int nargs) {
|
|||||||
/*
|
/*
|
||||||
* Linux syscalls return negative errno's, we do positive and map them
|
* Linux syscalls return negative errno's, we do positive and map them
|
||||||
*/
|
*/
|
||||||
const int bsd_to_linux_errno[] = {
|
static const int bsd_to_linux_errno[] = {
|
||||||
-0, -1, -2, -3, -4, -5, -6, -7, -8, -9,
|
-0, -1, -2, -3, -4, -5, -6, -7, -8, -9,
|
||||||
-10, -35, -12, -13, -14, -15, -16, -17, -18, -19,
|
-10, -35, -12, -13, -14, -15, -16, -17, -18, -19,
|
||||||
-20, -21, -22, -23, -24, -25, -26, -27, -28, -29,
|
-20, -21, -22, -23, -24, -25, -26, -27, -28, -29,
|
||||||
|
@ -74,7 +74,7 @@ usage(void)
|
|||||||
* WARNING! "FreeBSD a.out" must be first, or set_etype will not
|
* WARNING! "FreeBSD a.out" must be first, or set_etype will not
|
||||||
* work correctly.
|
* work correctly.
|
||||||
*/
|
*/
|
||||||
struct ex_types {
|
static struct ex_types {
|
||||||
const char *type;
|
const char *type;
|
||||||
void (*enter_syscall)(struct trussinfo *, int);
|
void (*enter_syscall)(struct trussinfo *, int);
|
||||||
long (*exit_syscall)(struct trussinfo *, int);
|
long (*exit_syscall)(struct trussinfo *, int);
|
||||||
|
@ -89,7 +89,7 @@ static const char rcsid[] =
|
|||||||
/*
|
/*
|
||||||
* This should probably be in its own file, sorted alphabetically.
|
* This should probably be in its own file, sorted alphabetically.
|
||||||
*/
|
*/
|
||||||
struct syscall syscalls[] = {
|
static struct syscall syscalls[] = {
|
||||||
{ .name = "fcntl", .ret_type = 1, .nargs = 3,
|
{ .name = "fcntl", .ret_type = 1, .nargs = 3,
|
||||||
.args = { { Int, 0 } , { Fcntl, 1 }, { Fcntlflag | OUT, 2 } } },
|
.args = { { Int, 0 } , { Fcntl, 1 }, { Fcntlflag | OUT, 2 } } },
|
||||||
{ .name = "fork", .ret_type = 1, .nargs = 0 },
|
{ .name = "fork", .ret_type = 1, .nargs = 0 },
|
||||||
@ -283,7 +283,7 @@ static struct xlat kevent_flags[] = {
|
|||||||
X(EV_CLEAR) X(EV_FLAG1) X(EV_ERROR) X(EV_EOF) XEND
|
X(EV_CLEAR) X(EV_FLAG1) X(EV_ERROR) X(EV_EOF) XEND
|
||||||
};
|
};
|
||||||
|
|
||||||
struct xlat poll_flags[] = {
|
static struct xlat poll_flags[] = {
|
||||||
X(POLLSTANDARD) X(POLLIN) X(POLLPRI) X(POLLOUT) X(POLLERR)
|
X(POLLSTANDARD) X(POLLIN) X(POLLPRI) X(POLLOUT) X(POLLERR)
|
||||||
X(POLLHUP) X(POLLNVAL) X(POLLRDNORM) X(POLLRDBAND)
|
X(POLLHUP) X(POLLNVAL) X(POLLRDNORM) X(POLLRDBAND)
|
||||||
X(POLLWRBAND) X(POLLINIGNEOF) XEND
|
X(POLLWRBAND) X(POLLINIGNEOF) XEND
|
||||||
|
Loading…
Reference in New Issue
Block a user