blob: ff9732c3a51368bff5e4931856a4bfa31ceff835 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* See LICENSE file for copyright and license details. */
#include <sys/prctl.h>
#include <sys/wait.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "arg.h"
#define USAGE(SYNOPSIS)\
static void usage(void)\
{ eprintf("usage: %s%s%s\n", argv0, *SYNOPSIS ? " " : "", SYNOPSIS); }
void eprintf(const char *fmt, ...);
void bff_begin(void);
void bff_end(void);
pid_t bff_run(const char **args, int in, int out);
void bff_wait(pid_t pid, const char *cmd);
|