#include <wctype.h>
#endif
+#include "closestream.h"
#include "nls.h"
#include "rpmatch.h"
#include "blkdev.h"
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
while ((c = getopt(argc, argv, "ac:gh:s:vzP:")) != -1)
switch (c) {
#include "pathnames.h"
#include "canonicalize.h"
#include "strutils.h"
+#include "closestream.h"
#include "fdisksunlabel.h"
#include "fdisksgilabel.h"
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
while ((c = getopt(argc, argv, "b:c::C:hH:lsS:u::vV")) != -1) {
switch (c) {
#include "gpt.h"
#include "blkdev.h"
#include "bitops.h"
+#include "closestream.h"
#define GPT_HEADER_SIGNATURE 0x5452415020494645LL
#define GPT_PRIMARY_PARTITION_TABLE_LBA 1
int
main(int argc, char **argv)
{
+ atexit(close_stdout);
if (argc!=2)
{
fprintf(stderr, "usage: %s <dev>\n", argv[0]);
#include <fcntl.h>
#include <stdlib.h>
+#include "closestream.h"
+
struct aix_label {
unsigned int magic;
/* more ... */
struct sgi_label *psgi;
struct sun_label *psun;
+ atexit(close_stdout);
if (argc != 2) {
fprintf(stderr, "call: %s device\n", argv[0]);
exit(1);
#include "pathnames.h"
#include "canonicalize.h"
#include "rpmatch.h"
+#include "closestream.h"
/*
* Table of contents:
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
if (argc < 1)
errx(EXIT_FAILURE, _("no command?"));