Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 0f50a49e3008597abed0fff052d487f77db89093 25 lines 520 B view raw
1/* 2 * usage.c 3 * 4 * Various reporting routines. 5 * Originally copied from GIT source. 6 * 7 * Copyright (C) Linus Torvalds, 2005 8 */ 9#include "util.h" 10#include "debug.h" 11 12static __noreturn void usage_builtin(const char *err) 13{ 14 fprintf(stderr, "\n Usage: %s\n", err); 15 exit(129); 16} 17 18/* If we are in a dlopen()ed .so write to a global variable would segfault 19 * (ugh), so keep things static. */ 20static void (*usage_routine)(const char *err) __noreturn = usage_builtin; 21 22void usage(const char *err) 23{ 24 usage_routine(err); 25}