rpm  4.10.0
cliutils.h
Go to the documentation of this file.
00001 #ifndef _CLIUTIL_H
00002 #define _CLIUTIL_H
00003 
00004 #include <stdio.h>
00005 #include <popt.h>
00006 #include <rpm/rpmutil.h>
00007 
00008 /* "normalized" exit: avoid overflowing and xargs special value 255 */
00009 #define RETVAL(rc) (((rc) > 254) ? 254 : (rc))
00010 
00011 RPM_GNUC_NORETURN
00012 void argerror(const char * desc);
00013 
00014 void printUsage(poptContext con, FILE * fp, int flags);
00015 
00016 int initPipe(void);
00017 
00018 int finishPipe(void);
00019 
00020 #endif /* _CLIUTIL_H */