rpm  4.12.90
cliutils.h
Go to the documentation of this file.
1 #ifndef _CLIUTIL_H
2 #define _CLIUTIL_H
3 
9 #include <stdio.h>
10 #include <popt.h>
11 #include <rpm/rpmutil.h>
12 
13 /* "normalized" exit: avoid overflowing and xargs special value 255 */
14 #define RETVAL(rc) (((rc) > 254) ? 254 : (rc))
15 
17 void argerror(const char * desc);
18 
19 void printUsage(poptContext con, FILE * fp, int flags);
20 
21 int initPipe(void);
22 
23 int finishPipe(void);
24 
25 #endif /* _CLIUTIL_H */
#define RPM_GNUC_NORETURN
Definition: rpmutil.h:71
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