This file is indexed.

/usr/include/wvstreams/wvatomicfile.h is in libwvstreams-dev 4.6.1-5.

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
/* -*- Mode: C++ -*-
 * Worldvisions Weaver Software:
 *   Copyright (C) 1997-2005 Net Integration Technologies, Inc.
 *
 * A simple class to access filesystem files using WvStreams.
 */
#ifndef __WVATOMFILE_H
#define __WVATOMFILE_H

#include "wvfile.h"

/**
 * WvAtomicFile implements a simple extension to wvfile to allow for 
 * atomic file creation.  Files normally can be created and written 
 * to, however, in the event of a kernel panic the file can be left in
 * an unusable state.
 *
 * A WvAtomicFile is atomically created on file close
 *
 */
class WvAtomicFile : public WvFile
{
private:
    WvString atomic_file;   
    WvString tmp_file;

public:
    WvAtomicFile(WvStringParm filename, int flags = O_TRUNC | O_CREAT, 
                    mode_t create_mode = 0666);
    ~WvAtomicFile();

    bool open(WvStringParm filename, int flags = O_TRUNC | O_CREAT, 
                mode_t create_mode = 0666);
    void close();
    
    // Like chmod(2), does *not* respect umask
    bool chmod(mode_t mode);
    
    bool chown(uid_t owner, gid_t group);

public:
    const char *wstype() const { return "WvAtomicFile"; }
};

#endif // __WVATOMFILE_H