summaryrefslogtreecommitdiff
path: root/cliutils.h
blob: 35aa25285d53143217fd6a528ff627a06a5571de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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 */