Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/config/main.c
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
struct hint_head hints; | struct hint_head hints; | ||||
struct includepath_head includepath; | struct includepath_head includepath; | ||||
char * PREFIX; | char * PREFIX; | ||||
char destdir[MAXPATHLEN]; | char destdir[MAXPATHLEN]; | ||||
char srcdir[MAXPATHLEN]; | char srcdir[MAXPATHLEN]; | ||||
int debugging; | int debugging; | ||||
int profiling; | |||||
int found_defaults; | int found_defaults; | ||||
int incignore; | int incignore; | ||||
/* | /* | ||||
* Preserve old behaviour in INCLUDE_CONFIG_FILE handling (files are included | * Preserve old behaviour in INCLUDE_CONFIG_FILE handling (files are included | ||||
* literally). | * literally). | ||||
*/ | */ | ||||
int filebased = 0; | int filebased = 0; | ||||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | case 'I': | ||||
calloc(1, sizeof (struct includepath)); | calloc(1, sizeof (struct includepath)); | ||||
if (ipath == NULL) | if (ipath == NULL) | ||||
err(EXIT_FAILURE, "calloc"); | err(EXIT_FAILURE, "calloc"); | ||||
ipath->path = optarg; | ipath->path = optarg; | ||||
SLIST_INSERT_HEAD(&includepath, ipath, path_next); | SLIST_INSERT_HEAD(&includepath, ipath, path_next); | ||||
break; | break; | ||||
case 'm': | case 'm': | ||||
printmachine = 1; | printmachine = 1; | ||||
break; | |||||
case 'p': | |||||
profiling++; | |||||
break; | break; | ||||
case 's': | case 's': | ||||
if (*srcdir == '\0') | if (*srcdir == '\0') | ||||
strlcpy(srcdir, optarg, sizeof(srcdir)); | strlcpy(srcdir, optarg, sizeof(srcdir)); | ||||
else | else | ||||
errx(EXIT_FAILURE, "src directory already set"); | errx(EXIT_FAILURE, "src directory already set"); | ||||
break; | break; | ||||
case 'V': | case 'V': | ||||
▲ Show 20 Lines • Show All 637 Lines • Show Last 20 Lines |