/[public]/getopt/trunk/util-linux-compat.h
ViewVC logotype

Annotation of /getopt/trunk/util-linux-compat.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 364 - (hide annotations)
Thu Nov 20 19:09:47 2014 UTC (4 years, 11 months ago) by frodo
File MIME type: text/plain
File size: 711 byte(s)
(Frodo) Sync with util-linux (git 20142011)
* Whitespace
* Some comments
* Remove main declaration
* Introduce warnx


1 frodo 363 /*
2     * Fundamental C definitions.
3     */
4    
5     #ifndef UTIL_LINUX_C_H
6     #define UTIL_LINUX_C_H
7    
8     /*
9     * Constant strings for usage() functions.
10     */
11     #define USAGE_HEADER _("\nUsage:\n")
12     #define USAGE_OPTIONS _("\nOptions:\n")
13     #define USAGE_SEPARATOR _("\n")
14     #define USAGE_HELP _(" -h, --help display this help and exit\n")
15     #define USAGE_VERSION _(" -V, --version output version information and exit\n")
16     #define USAGE_MAN_TAIL(_man) _("\nFor more details see %s.\n"), _man
17    
18     #define UTIL_LINUX_VERSION _("%s (enhanced) %s\n"), program_invocation_short_name, program_version
19    
20 frodo 364 #define warnx(dummy,message) fprintf(stderr, "%s: %s\n", program_invocation_short_name, message);
21    
22 frodo 363 #endif /* UTIL_LINUX_C_H */

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26