config.c.in 496 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9
/* 
 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
 * Licensed under the GPL
 */

#include <stdio.h>
#include <stdlib.h>
#include "init.h"

10 11 12
static __initdata const char *config[] = {
"CONFIG"
};
L
Linus Torvalds 已提交
13 14 15

static int __init print_config(char *line, int *add)
{
16 17 18
	int i;
	for (i = 0; i < sizeof(config)/sizeof(config[0]); i++)
		printf("%s", config[i]);
L
Linus Torvalds 已提交
19 20 21 22 23 24 25 26
	exit(0);
}

__uml_setup("--showconfig", print_config,
"--showconfig\n"
"    Prints the config file that this UML binary was generated from.\n\n"
);