rpm: cliutils.h Source File

rpm 4.12.0.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

cliutils.h
Go to the documentation of this file.
1 #ifndef _CLIUTIL_H
2 #define _CLIUTIL_H
3
4 #include <stdio.h>
5 #include <popt.h>
6 #include <rpm/rpmutil.h>
7
8 /* "normalized" exit: avoid overflowing and xargs special value 255 */
9 #define RETVAL(rc) (((rc) > 254) ? 254 : (rc))
10
11 RPM_GNUC_NORETURN
12 void argerror(const char * desc);
13
14 void printUsage(poptContext con, FILE * fp, int flags);
15
16 int initPipe(void);
17
18 int finishPipe(void);
19
20 #endif /* _CLIUTIL_H */
RPM_GNUC_NORETURN
#define RPM_GNUC_NORETURN
Definition: rpmutil.h:70
initPipe
int initPipe(void)
Definition: cliutils.c:48
printUsage
void printUsage(poptContext con, FILE *fp, int flags)
Definition: cliutils.c:36
argerror
RPM_GNUC_NORETURN void argerror(const char *desc)
Definition: cliutils.c:19
finishPipe
int finishPipe(void)
Definition: cliutils.c:73