PMISETVERSION(3)
π PMISETVERSION(3) π
okay so this is a page from the Library Functions Manual bestie, and it's literally all about one tiny lil function called pmiSetVersion. she's small but she's important, i promise. π
β¨ NAME β¨
pmiSetVersion β sets the archive version for a LOGIMPORT archive ποΈ
πΈ C SYNOPSIS πΈ
#include <pcp/pmapi.h>
#include <pcp/import.h>
int pmiSetVersion(int value);
cc ... -lpcp_import -lpcp
π¦ Perl SYNOPSIS π¦
use PCP::LogImport;
pmiSetVersion($value);
π Python SYNOPSIS π
from pcp import pmi
log.pmiSetVersion(value)
π DESCRIPTION π
so here's the tea, bestie π β this whole thing is part of the Performance Co-Pilot Log Import API (peep LOGIMPORT(3) if you wanna get the full lore). and what pmiSetVersion does is it sets the output archive version in the current context to be value. that's it. that's the whole job. iconic honestly. π
now here's the important bit, no cap: if you never call pmiSetVersion at all, the version just defaults to the traditional v2 format. but heads up π β in a future major version of PCP, it's gonna default to v3 format instead. so like, don't get too comfy assuming v2 forever, yk? plan accordingly. π
π DIAGNOSTICS π
pmiSetVersion returns zero on success π«Ά β but if things go sideways it returns a negative value instead. and you can turn that sad little negative number into an actual error message by calling pmiErrStr(3). so don't just sit there staring at the negative number, go get the explanation. π
π₯ SEE ALSO π₯
and that's the whole page, bestie!! π§β¨ this lil number comes to you straight from Performance Co-Pilot, and it's filed under PMISETVERSION(3) β mwah, go set some versions, you got this ππ
π¦ 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
- 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.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 stonking: libpcp4-dev 7.2.1-2build1
- Copyright (c) 2022 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms