namelist
_DIAGASSERT(namelist != NULL);
*namelist = names;
scandir(const char *dirname, struct dirent ***namelist,
findname(string, level, bufp, namelist)
struct list *namelist;
if (namelist->list == 0 || (name = strsep(bufp, ".")) == NULL) {
for (i = 0; i < namelist->size; i++)
if (namelist->list[i].ctl_name != NULL &&
strcmp(name, namelist->list[i].ctl_name) == 0)
if (i == namelist->size) {
char **namelist = v;
c = argcount(namelist) + 1;
for (ap = namelist, ap2 = altnames; *ap; ap++, ap2++) {
mail2(FILE *mtf, const char **namelist)
for (t = namelist; *t != NULL; t++)
(void)execv(cp, (char *const *)__UNCONST(namelist));
const char **namelist;
namelist = unpack(hp->h_smopts, to);
mail2(mtf, namelist);
struct namelist *n_next;
struct namelist *sc_args;
struct namelist *c_files;
struct namelist *
expand(struct namelist *, int);
int inlist(struct namelist *, char *);
struct namelist *, struct namelist *, struct subcmd *);
struct namelist *
lookup(char *, int, struct namelist *);
struct namelist *
void freenl(struct namelist *);
void prnames(struct namelist *);
doarrow(char **filev, struct namelist *xfiles, char *rhost,
struct namelist *f;
struct namelist * volatile files = xfiles;
dodcolon(char **filev, struct namelist *files, char *stamp, struct subcmd *cmds)
struct namelist *f;
notify(char *file, char *rhost, struct namelist *to, time_t lmod)
inlist(struct namelist *list, char *file)
struct namelist *nl;
struct namelist *nl;
struct namelist *, char *, struct subcmd *);
struct namelist *, char *, struct subcmd *);
static void notify(char *, char *, struct namelist *, time_t);
struct namelist *f;
struct namelist *tp;
struct namelist *
expand(struct namelist *list, int wh)
struct namelist *nl, *prev;
| NAME COLON namelist DCOLON NAME cmdlist = {
namelist: NAME = {
struct namelist *nl;
| NOTIFY namelist SM = {
| EXCEPT namelist SM = {
| PATTERN namelist SM = {
| namelist = {
insert(char *label, struct namelist *files, struct namelist *hosts,
struct namelist *h, *nexth;
append(char *label, struct namelist *files, char *stamp,
struct namelist *last_n;
struct namelist *
struct namelist *nl;
nl = ALLOC(namelist);
freenl(struct namelist *nl)
void append(char *, struct namelist *, char *, struct subcmd *);
struct namelist *namel;
%type <namel> namelist, names, opt_namelist
command: NAME EQUAL namelist = {
| namelist ARROW namelist cmdlist = {
| NAME COLON namelist ARROW namelist cmdlist = {
| namelist DCOLON NAME cmdlist = {
struct namelist *
lookup(char *name, int action, struct namelist *value)
struct namelist *s_value;
struct namelist *nl;
struct namelist *value;
struct namelist *nl, *prev;
struct namelist *files, *hosts;
static struct namelist tnl = { NULL, NULL };
prnames(struct namelist *nl)
static struct nlist namelist[] = {
n = kvm_nlist(kd, namelist);
nlisterr(namelist);
} else if (n == sizeof(namelist) / sizeof(namelist[0]) - 1) {
if (namelist[X_TCBTABLE].n_value == 0)
if ((protos & TCP) && namelist[X_TCBTABLE].n_type)
if ((protos & UDP) && namelist[X_UDBTABLE].n_type)
if ((protos & TCP) && namelist[X_TCBTABLE].n_type)
if ((protos & UDP) && namelist[X_UDBTABLE].n_type)
if (namelist[X_TCBTABLE].n_type == 0)
#define NVAL(indx) namelist[(indx)].n_value
static struct nlist namelist[] = {
if (namelist[0].n_type == 0) {
if (kvm_nlist(kd, namelist) &&
namelist[X_ALLEVENTS].n_type == 0) {
nlisterr(namelist);
nintr = (namelist[X_EINTRCNT].n_value -
namelist[X_INTRCNT].n_value) / sizeof (long);
intrnamebuf = malloc(namelist[X_EINTRNAMES].n_value -
namelist[X_INTRNAMES].n_value);
kread(namelist, X_NCHSTATS, &nch_stats, sizeof(nch_stats));
kread(namelist, X_UVMEXP, &uvmexp_kernel, sizeof(uvmexp_kernel));
kread(namelist, X_CPU_INFOS, &cpu_infos, sizeof(cpu_infos));
kread(namelist, X_ALLEVENTS, &allevents, sizeof allevents);
struct nlist namelist[] =
kread(namelist, X_POOLHEAD, &pool_head, sizeof(pool_head));
kread(namelist, X_POOLHEAD, &pool_head, sizeof(pool_head));
if ((c = kvm_nlist(kd, namelist)) != 0) {
for (i = 0; i < __arraycount(namelist)-1; i++)
if (namelist[i].n_type == 0) {
namelist[i].n_name);
if (namelist[X_STATHZ].n_type != 0 && namelist[X_STATHZ].n_value != 0)
kread(namelist, X_STATHZ, &hz, sizeof(hz));
kread(namelist, X_HZ, &hz, sizeof(hz));
kread(namelist, X_UVMEXP, &uvmexp_kernel, sizeof(uvmexp_kernel));
kread(namelist, X_UVMEXP, &uvmexp_kernel, sizeof(uvmexp_kernel));
kread(namelist, X_POOLHEAD, &pool_head, sizeof(pool_head));
getq(struct queue **namelist[])
*namelist = queue;
freeq(struct queue **namelist, u_int nitems)
if (namelist == NULL)
if (namelist[i])
free(namelist[i]);
free(namelist);
parsecred(char *namelist, struct uucred *cr)
names = strsep(&namelist, " \t\n");