dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Functions
Program name handling
Collaboration diagram for Program name handling:

Functions

void dpkg_set_progname (const char *name)
 Set the program name.
 
const char * dpkg_get_progname (void)
 Get the program name.
 

Detailed Description

Function Documentation

◆ dpkg_get_progname()

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.

Returns
A pointer to a static buffer with the program name.

References dpkg_set_progname().

Referenced by assert_feature(), do_internerr(), dpkg_warning_printer(), info(), notice(), parse_force(), and print_fatal_error().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dpkg_set_progname()

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.

Parameters
nameThe new program name.

References path_basename().

Referenced by dpkg_get_progname(), and dpkg_program_init().

Here is the call graph for this function:
Here is the caller graph for this function: