swh:1:snp:173f8deb0c56c557784b4fd217e7608ac6197844
Raw File
Tip revision: 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 authored by Linus Torvalds on 31 May 2020, 23:49:15 UTC
Linux 5.7
Tip revision: 3d77e6a
config.c.in
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
 */

#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