Changeset View
Changeset View
Standalone View
Standalone View
stand/common/bootstrap.h
Show All 23 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _BOOTSTRAP_H_ | #ifndef _BOOTSTRAP_H_ | ||||
#define _BOOTSTRAP_H_ | #define _BOOTSTRAP_H_ | ||||
#include <stand.h> | |||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include <sys/linker_set.h> | #include <sys/linker_set.h> | ||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include "readin.h" | #include "readin.h" | ||||
/* Commands and return values; nonzero return sets command_errmsg != NULL */ | /* Commands and return values; nonzero return sets command_errmsg != NULL */ | ||||
▲ Show 20 Lines • Show All 354 Lines • ▼ Show 20 Lines | |||||
int nvstore_fini(const char *); | int nvstore_fini(const char *); | ||||
void *nvstore_get_store(const char *); | void *nvstore_get_store(const char *); | ||||
int nvstore_print(void *); | int nvstore_print(void *); | ||||
int nvstore_get_var(void *, const char *, void **); | int nvstore_get_var(void *, const char *, void **); | ||||
int nvstore_set_var(void *, int, const char *, void *, size_t); | int nvstore_set_var(void *, int, const char *, void *, size_t); | ||||
int nvstore_set_var_from_string(void *, const char *, const char *, | int nvstore_set_var_from_string(void *, const char *, const char *, | ||||
const char *); | const char *); | ||||
int nvstore_unset_var(void *, const char *); | int nvstore_unset_var(void *, const char *); | ||||
/* common code to set currdev variable. */ | |||||
extern int mount_currdev(struct env_var *, int, const void *); | |||||
#ifndef CTASSERT | #ifndef CTASSERT | ||||
#define CTASSERT(x) _Static_assert(x, "compile-time assertion failed") | #define CTASSERT(x) _Static_assert(x, "compile-time assertion failed") | ||||
#endif | #endif | ||||
#endif /* !_BOOTSTRAP_H_ */ | #endif /* !_BOOTSTRAP_H_ */ |