Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/pkg/config.c
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
#include <errno.h> | #include <errno.h> | ||||
#include <libutil.h> | #include <libutil.h> | ||||
#include <paths.h> | #include <paths.h> | ||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#include "config.h" | #include "config.h" | ||||
#define roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ | |||||
struct config_value { | struct config_value { | ||||
char *value; | char *value; | ||||
STAILQ_ENTRY(config_value) next; | STAILQ_ENTRY(config_value) next; | ||||
}; | }; | ||||
struct config_entry { | struct config_entry { | ||||
uint8_t type; | uint8_t type; | ||||
const char *key; | const char *key; | ||||
▲ Show 20 Lines • Show All 478 Lines • Show Last 20 Lines |