PMSETPROGNAME(3)
πΈ NAME πΈ
okay bestie, welcome to PMSETPROGNAME(3) β the Library Functions Manual page for the application name services. We're talking about:
pmSetProgname,pmGetPrognameβ application name services β¨
π C SYNOPSIS π
#include <pcp/pmapi.h>
void pmSetProgname(const char *program);
char *pmGetProgname(void);
cc ... -lpcp
π¦ DESCRIPTION π¦
Inside the Performance Co-Pilot (PCP) run-time libraries, the name of the running application is kept around so it can be used in error and diagnostic messages. Lowkey iconic.
The default application name is pcp. periodt.
pmSetProgname may be used to set the application name to program after stripping any leading components that begin with the filesystem path name separator (/ for Unix-like systems). Slay.
bestie, it is the caller's responsibility to make sure the memory pointed to by program stays available for the life of the application. Do not let it ghost you. π»
Typically, the value passed as program for a C program would be argv[0]. If program is NULL, the default application name is restored. No cap.
pmGetProgname may be used to return the current application name. It's giving "tell me who you are" energy. π
π SEE ALSO π
Performance Co-Pilot Β· PCP Β· PMSETPROGNAME(3) β source/version and page name from the footer; date: not present in this footer, bestie. mwah π
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu resolute: libpcp4-dev 7.1.1-1
- ubuntu stonking: libpcp4-dev 7.2.1-2build1
- Copyright (c) 2017 Ken McDonell. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms