swh:1:snp:173f8deb0c56c557784b4fd217e7608ac6197844
Raw File
Tip revision: c470abd4fde40ea6a0846a2beab642a578c0b8cd authored by Linus Torvalds on 19 February 2017, 22:34:00 UTC
Linux 4.10
Tip revision: c470abd
config.c.in
/* 
 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
 * Licensed under the GPL
 */

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

static __initdata const char *config[] = {
"CONFIG"
};

static int __init print_config(char *line, int *add)
{
	int i;
	for (i = 0; i < sizeof(config)/sizeof(config[0]); i++)
		printf("%s", config[i]);
	exit(0);
}

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

back to top