Start fs implementation for DragonFly BSD

This commit is contained in:
Lassi Kortela 2019-08-10 02:04:11 +03:00
parent fe01d2faa1
commit 10660ac8ed
1 changed files with 13 additions and 0 deletions

13
c/fs_dragonfly.c Normal file
View File

@ -0,0 +1,13 @@
#include <sys/types.h>
#include <sys/sysctl.h>
#include "fs.h"
char *get_exename(char *buf, size_t size)
{
int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 };
sysctl(mib, 4, buf, &size, 0, 0);
return buf;
}