Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/gen/dirname_compat.c
Show All 19 Lines | |||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <libgen.h> | #include <libgen.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
char * __freebsd11_dirname(char *path); | |||||
char * | char * | ||||
__freebsd11_dirname(char *path) | __freebsd11_dirname(char *path) | ||||
{ | { | ||||
static char *dname = NULL; | static char *dname = NULL; | ||||
size_t len; | size_t len; | ||||
const char *endp; | const char *endp; | ||||
if (dname == NULL) { | if (dname == NULL) { | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |