![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 /* 0003 * usage.c 0004 * 0005 * Various reporting routines. 0006 * Originally copied from GIT source. 0007 * 0008 * Copyright (C) Linus Torvalds, 2005 0009 */ 0010 #include "util.h" 0011 #include <stdio.h> 0012 #include <stdlib.h> 0013 #include <linux/compiler.h> 0014 0015 static __noreturn void usage_builtin(const char *err) 0016 { 0017 fprintf(stderr, "\n Usage: %s\n", err); 0018 exit(129); 0019 } 0020 0021 /* If we are in a dlopen()ed .so write to a global variable would segfault 0022 * (ugh), so keep things static. */ 0023 static void (*usage_routine)(const char *err) __noreturn = usage_builtin; 0024 0025 void usage(const char *err) 0026 { 0027 usage_routine(err); 0028 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |