cliutils.h
Go to the documentation of this file.
#ifndef _CLIUTIL_H
#define _CLIUTIL_H
#include <stdio.h>
#include <popt.h>
#include <rpm/rpmutil.h>
/* "normalized" exit: avoid overflowing and xargs special value 255 */
#define RETVAL(rc) (((rc) > 254) ? 254 : (rc))
RPM_GNUC_NORETURN
void argerror(const char * desc);
void printUsage(poptContext con, FILE * fp, int flags);
int initPipe(void);
int finishPipe(void);
#endif /* _CLIUTIL_H */
RPM_GNUC_NORETURN
#define RPM_GNUC_NORETURN
Definition: rpmutil.h:71
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