#include "nls.h"
#include "blkdev.h"
#include "pathnames.h"
+#include "closestream.h"
struct bdc {
long ioc; /* ioctl code */
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
if (argc < 2)
usage(stderr);
#include <sys/utsname.h>
#include "nls.h"
#include "blkdev.h"
+#include "closestream.h"
#include "linux_version.h"
/* this has to match with the kernel structure */
setlocale(LC_MESSAGES, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
for (;;) {
int opt;
#include <unistd.h>
#include "c.h"
+#include "closestream.h"
#include "nls.h"
#include "xalloc.h"
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
while ((ch = getopt_long(argc, argv, "nVh", longopts, NULL)) != -1)
switch (ch) {
#include "pathnames.h"
#include "exitcodes.h"
#include "c.h"
+#include "closestream.h"
#define XALLOC_EXIT_CODE FSCK_EX_ERROR
#include "xalloc.h"
setlocale(LC_CTYPE, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
mnt_init_debug(0); /* init libmount debug mask */
mntcache = mnt_new_cache(); /* no fatal error if failed */
#include "blkdev.h"
#include "c.h"
#include "exitcodes.h"
+#include "closestream.h"
#define XALLOC_EXIT_CODE FSCK_EX_ERROR
#include "xalloc.h"
setlocale(LC_MESSAGES, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
page_size = getpagesize();
#include "bitops.h"
#include "ismounted.h"
#include "writeall.h"
+#include "closestream.h"
#define ROOT_INO 1
#define YESNO_LENGTH 64
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
if (argc == 2 &&
(!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version"))) {
#include "nls.h"
#include "c.h"
#include "strutils.h"
+#include "closestream.h"
#define ISODCL(from, to) (to - from + 1)
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
while ((opt = getopt_long(argc, argv, "d:xVh", longopts, NULL)) != -1)
switch (opt) {
#include "blkdev.h"
#include "c.h"
+#include "closestream.h"
#include "nls.h"
#include "strutils.h"
#include "xalloc.h"
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
if (argc < 2)
usage(stderr);
#include <unistd.h>
#include "c.h"
+#include "closestream.h"
#include "nls.h"
#include "xalloc.h"
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
if (argc == 2 && !strcmp(argv[1], "-V"))
print_version();
#include "c.h"
#include "cramfs.h"
+#include "closestream.h"
#include "md5.h"
#include "nls.h"
#include "exitcodes.h"
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
/* command line options */
while ((c = getopt(argc, argv, "hb:Ee:i:n:N:psVvz")) != EOF) {
#include "exitcodes.h"
#include "strutils.h"
#include "writeall.h"
+#include "closestream.h"
#define MINIX_ROOT_INO 1
#define MINIX_BAD_INO 2
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
if (argc == 2 &&
(!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version"))) {
#include "writeall.h"
#include "xalloc.h"
#include "c.h"
+#include "closestream.h"
#ifdef HAVE_LIBUUID
# include <uuid.h>
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
while((c = getopt_long(argc, argv, "cfp:L:v:U:Vh", longopts, NULL)) != -1) {
switch (c) {
#include <unistd.h>
#include "c.h"
+#include "closestream.h"
#include "nls.h"
#include "pathnames.h"
setlocale(LC_MESSAGES, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
while ((c = getopt_long(argc, argv, "qaVh", longopts, NULL)) != -1)
switch (c) {
#endif
#include "c.h"
+#include "closestream.h"
#include "writeall.h"
#include "swapheader.h"
#include "strutils.h"
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
while ((c = getopt_long(argc, argv, "hVL:U:", longopts, NULL)) != -1) {
switch (c) {