Blame


1 90fbce40 2021-11-25 op /*
2 90fbce40 2021-11-25 op * Copyright (c) 2021 Omar Polo <op@omarpolo.com>
3 90fbce40 2021-11-25 op *
4 90fbce40 2021-11-25 op * Permission to use, copy, modify, and distribute this software for any
5 90fbce40 2021-11-25 op * purpose with or without fee is hereby granted, provided that the above
6 90fbce40 2021-11-25 op * copyright notice and this permission notice appear in all copies.
7 90fbce40 2021-11-25 op *
8 90fbce40 2021-11-25 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 90fbce40 2021-11-25 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 90fbce40 2021-11-25 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 90fbce40 2021-11-25 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 90fbce40 2021-11-25 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 90fbce40 2021-11-25 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 90fbce40 2021-11-25 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 90fbce40 2021-11-25 op */
16 90fbce40 2021-11-25 op
17 90fbce40 2021-11-25 op /*
18 90fbce40 2021-11-25 op * XXX: eventualyl there are some ways, at least on linux, to get the
19 90fbce40 2021-11-25 op * program name, probably like glibc program_invocation_short_name or
20 90fbce40 2021-11-25 op * reading stuff from /proc/self.
21 90fbce40 2021-11-25 op */
22 90fbce40 2021-11-25 op
23 90fbce40 2021-11-25 op const char *
24 90fbce40 2021-11-25 op getprogname(void)
25 90fbce40 2021-11-25 op {
26 90fbce40 2021-11-25 op return "lstun";
27 90fbce40 2021-11-25 op }