Deleted Added
full compact
sysconf.gperf (302408) sysconf.gperf (324124)
1%{
2/*
3 * Copyright is disclaimed as to the contents of this file.
4 *
1%{
2/*
3 * Copyright is disclaimed as to the contents of this file.
4 *
5 * $FreeBSD: stable/11/usr.bin/getconf/sysconf.gperf 289604 2015-10-19 21:06:30Z bapt $
5 * $FreeBSD: stable/11/usr.bin/getconf/sysconf.gperf 324124 2017-09-30 17:30:22Z jhb $
6 */
7
8#include <sys/types.h>
9
10#include <string.h>
11#include <unistd.h>
12
13#include "getconf.h"

--- 128 unchanged lines hidden (view full) ---

142 if (rv->valid) {
143 *key = rv->key;
144 return 1;
145 }
146 return -1;
147 }
148 return 0;
149}
6 */
7
8#include <sys/types.h>
9
10#include <string.h>
11#include <unistd.h>
12
13#include "getconf.h"

--- 128 unchanged lines hidden (view full) ---

142 if (rv->valid) {
143 *key = rv->key;
144 return 1;
145 }
146 return -1;
147 }
148 return 0;
149}
150
151void
152foreach_sysconf(void (*func)(const char *, int))
153{
154 const struct map *mp;
155
156 for (mp = wordlist; mp->name != NULL; mp++) {
157 if (mp->valid)
158 func(mp->name, mp->key);
159 }
160}