NAME | C SYNOPSIS | CAVEAT | DESCRIPTION | DIAGNOSTICS AND RETURN VALUES | SEE ALSO | COLOPHON
PMAPUTLOG(3) Library Functions Manual PMAPUTLOG(3)
pmaPutLog - direct write of the next record from an archive file
#include <pcp/pmapi.h> #include <pcp/libpcp.h> #include <pcp/archive.h> void pmaPutLog(FILE *f, __int32_t *rbuf); cc ... -lpcp_archive -lpcp
This documentation is intended for internal Performance Co-Pilot (PCP) developer use. These interfaces are not part of the PCP APIs that are guaranteed to remain fixed across releases, and they may not work, or may provide different semantics at some point in the future.
This is a cut-down version of the archive record reading routines from libpcp, that writes the next physical record on the stream identified by f. The record is already formatted in rbuf, including the setup of the record header length and trailer length, and rbuf must be in network byte-order. There is no checking, so the record format must be correct and match the semantics of which ever physical file (metadata or data volume) that is associated with f.
The return value is 0 if all is well, else some error code less than zero.
pmaGetLog(3) and PMAPI(3).
This page is part of the PCP (Performance Co-Pilot) project. Information about the project can be found at ⟨http://www.pcp.io/⟩. If you have a bug report for this manual page, send it to email@example.com. This page was obtained from the project's upstream Git repository ⟨https://github.com/performancecopilot/pcp.git⟩ on 2022-12-17. (At that time, the date of the most recent commit that was found in the repository was 2022-12-16.) If you discover any rendering problems in this HTML version of the page, or you believe there is a better or more up-to-date source for the page, or you have corrections or improvements to the information in this COLOPHON (which is not part of the original manual page), send a mail to firstname.lastname@example.org Performance Co-Pilot PCP PMAPUTLOG(3)
Pages that refer to this page: pmagetlog(3)