L4Re/departure

libext2fs/lib/libsupport/plausible.h

617:2733e5770ee9
9 months ago Paul Boddie Made the run command wait for completion, introducing the spawn command to run programs in the background. Introduced conveniences for waiting for the last job to be initiated and for piping from the last job, also subscribing to signals from pipe-supplying jobs so that they may be transparently removed from the job list upon completion. Augmented the job listing with the "+" notation familiar from Unix. Prevented new jobs from being started when no job slots are available.
     1 /*     2  * plausible.h --- header file defining prototypes for helper functions     3  * used by tune2fs and mke2fs     4  *     5  * Copyright 2014 by Oracle, Inc.     6  *     7  * %Begin-Header%     8  * This file may be redistributed under the terms of the GNU Public     9  * License.    10  * %End-Header%    11  */    12     13 #ifndef PLAUSIBLE_H_    14 #define PLAUSIBLE_H_    15     16 /*    17  * Flags for check_plausibility()    18  */    19 #define CHECK_BLOCK_DEV	0x0001    20 #define CREATE_FILE	0x0002    21 #define CHECK_FS_EXIST	0x0004    22 #define VERBOSE_CREATE	0x0008    23 #define NO_SIZE		0x0010    24 #define QUIET_CHECK	0x0020    25     26 extern int check_plausibility(const char *device, int flags,    27 			      int *ret_is_dev);    28     29 #endif /* PLAUSIBLE_H_ */