rpm  4.12.0.1
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 
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 */
#define RPM_GNUC_NORETURN
Definition: rpmutil.h:70
int initPipe(void)
Definition: cliutils.c:48
void printUsage(poptContext con, FILE *fp, int flags)
Definition: cliutils.c:36
RPM_GNUC_NORETURN void argerror(const char *desc)
Definition: cliutils.c:19
int finishPipe(void)
Definition: cliutils.c:73