mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 10:01:02 +01:00
12017ca883
This import includes The basic blacklist library and utility programs, to add a system-wide packet filtering notification mechanism to FreeBSD. The rational behind the daemon was given by Christos Zoulas in a presentation at vBSDcon 2015: https://youtu.be/fuuf8G28mjs Reviewed by: rpaulo Approved by: rpaulo Obtained from: NetBSD Relnotes: YES Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5912
25 lines
297 B
C
25 lines
297 B
C
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
#include <string.h>
|
|
|
|
extern char *__progname;
|
|
|
|
const char *
|
|
getprogname(void)
|
|
{
|
|
return __progname;
|
|
}
|
|
|
|
void
|
|
setprogname(char *p)
|
|
{
|
|
char *q;
|
|
if (p == NULL)
|
|
return;
|
|
if ((q = strrchr(p, '/')) != NULL)
|
|
__progname = ++q;
|
|
else
|
|
__progname = p;
|
|
}
|