* bootstrap.conf (gnulib_modules): Add progname.
* debug/clearfat/clearfat.c: Include "progname.h".
(main): Call set_program_name rather than setting program_name.
* parted/parted.c: Likewise.
* partprobe/partprobe.c: Likewise.
* libparted/tests/disk.c: Include "progname.h" and call
set_program_name even though program_name isn't used, yet.
* libparted/tests/label.c: Likewise.
malloc
realloc
rpmatch
+ progname
safe-read
stdbool
useless-if-before-free
/*
clear_fat - a tool to clear unused space (for testing purposes)
- Copyright (C) 2000, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2007-2008 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "configmake.h"
#include "error.h"
#include "long-options.h"
+#include "progname.h"
#include "../../libparted/fs/fat/fat.h"
#define AUTHORS \
"<http://parted.alioth.debian.org/cgi-bin/trac.cgi/browser/AUTHORS>"
-/* The name this program was run with. */
-char *program_name;
-
void
usage (int status)
{
PedPartition* part;
PedFileSystem* fs;
- program_name = argv[0];
+ set_program_name (argv[0]);
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
#include <parted/parted.h>
#include "common.h"
+#include "progname.h"
static char* temporary_disk;
int
main (void)
{
+ set_program_name (argv[0]);
int number_failed;
Suite* suite = suite_create ("Disk");
TCase* tcase_duplicate = tcase_create ("Duplicate");
#include <parted/parted.h>
#include "common.h"
+#include "progname.h"
static char* temporary_disk;
int
main (void)
{
+ set_program_name (argv[0]);
int number_failed;
Suite* suite = suite_create ("Disk Label");
TCase* tcase_basic = tcase_create ("Create");
#include "version-etc.h"
#include "command.h"
#include "ui.h"
+#include "progname.h"
#include "table.h"
#define AUTHORS \
{NULL, NULL}
};
-char *program_name;
-
int opt_script_mode = 0;
int pretend_input_tty = 0;
int opt_machine_mode = 0;
PedDevice* dev;
int status;
- program_name = argv[0];
+ set_program_name (argv[0]);
atexit (close_stdout);
dev = _init (&argc, &argv);
/*
partprobe - informs the OS kernel of partition layout
- Copyright (C) 2001, 2002, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2007-2008 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "closeout.h"
#include "configmake.h"
+#include "progname.h"
#include "version-etc.h"
#include <locale.h>
{NULL, 0, NULL, 0}
};
-
-char *program_name;
-
/* initialized to 0 according to the language lawyers */
static int opt_no_inform;
static int opt_summary;
{
int status = 0;
- program_name = argv[0];
+ set_program_name (argv[0]);
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);