This file is indexed.

/var/lib/pcp/testsuite/src/progname.c is in pcp-testsuite 4.0.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * Copyright (c) 1995-2001 Silicon Graphics, Inc.  All Rights Reserved.
 * Copyright (c) 2017 Ken McDonell.  All Rights Reserved.
 */

#include <pcp/pmapi.h>
#include <pcp/deprecated.h>

static pmLongOptions longopts[] = {
    PMOPT_DEBUG,		/* -D */
    PMAPI_OPTIONS_END
};

static pmOptions opts = {
    .flags = PM_OPTFLAG_BOUNDARIES | PM_OPTFLAG_STDOUT_TZ,
    .short_options = "D:",
    .long_options = longopts,
    .short_usage = "[options]",
};

int
main(int argc, char **argv)
{
    int		c;
    int		sts;

    printf("pmGetProgname=\"%s\"\n", pmGetProgname());

    while ((c = pmGetOptions(argc, argv, &opts)) != EOF) {
	;
    }

    printf("pmGetProgname()=\"%s\"\n", pmGetProgname());
    printf("pmProgname=\"%s\"\n", pmProgname);

    sts = __pmSetProgname("foo");
    printf("__pmSetProgname(foo) -> %d & pmProgname=\"%s\"\n", sts, pmProgname);
    printf("pmGetProgname()=\"%s\"\n", pmGetProgname());

    pmSetProgname("bar");
    printf("pmSetProgname(bar) & pmGetProgname()=\"%s\"\n", pmGetProgname());
    printf("pmProgname=\"%s\"\n", pmProgname);

    pmSetProgname(NULL);
    printf("pmSetProgname(NULL) & pmGetProgname()=\"%s\"\n", pmGetProgname());
    printf("pmProgname=\"%s\"\n", pmProgname);

    return 0;
}