dpkg 1.22.7-3-g89f48
|
Functions | |
void | dpkg_set_progname (const char *name) |
Set the program name. | |
const char * | dpkg_get_progname (void) |
Get the program name. | |
const char * dpkg_get_progname | ( | void | ) |
Get the program name.
The program name might have been set previously by dpkg_set_progname(), but if not this function will try to initialize it by system dependent means, so it's half safe to not call dpkg_set_progname() at all. At worst the function might return NULL in that case.
References dpkg_set_progname().
Referenced by assert_feature(), do_internerr(), dpkg_warning_printer(), info(), notice(), parse_force(), and print_fatal_error().
void dpkg_set_progname | ( | const char * | name | ) |
Set the program name.
This function will set the program name which will be used by error reporting functions, among others.
name | The new program name. |
References path_basename().
Referenced by dpkg_get_progname(), and dpkg_program_init().