mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 03:06:48 +00:00
559a218c9b
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
17 lines
226 B
C
17 lines
226 B
C
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "libc_private.h"
|
|
|
|
void
|
|
setprogname(const char *progname)
|
|
{
|
|
const char *p;
|
|
|
|
p = strrchr(progname, '/');
|
|
if (p != NULL)
|
|
__progname = p + 1;
|
|
else
|
|
__progname = progname;
|
|
}
|