Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/bhyve/acpi.c
Show First 20 Lines • Show All 879 Lines • ▼ Show 20 Lines | |||||
static int | static int | ||||
basl_make_templates(void) | basl_make_templates(void) | ||||
{ | { | ||||
const char *tmpdir; | const char *tmpdir; | ||||
int err; | int err; | ||||
int len; | int len; | ||||
err = 0; | err = 0; | ||||
/* | /* | ||||
* | * | ||||
*/ | */ | ||||
if ((tmpdir = getenv("BHYVE_TMPDIR")) == NULL || *tmpdir == '\0' || | if ((tmpdir = getenv("BHYVE_TMPDIR")) == NULL || *tmpdir == '\0' || | ||||
(tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0') { | (tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0') { | ||||
tmpdir = _PATH_TMP; | tmpdir = _PATH_TMP; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |