mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			496 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			496 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* 
 | 
						|
 * 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"
 | 
						|
);
 | 
						|
 |