This file is indexed.

/usr/share/shedskin/lib/cStringIO.hpp is in shedskin 0.9.4-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
/* Copyright 2005-2011 Mark Dufour and contributors; License Expat (See LICENSE) */

#ifndef __CSTRINGIO_HPP
#define __CSTRINGIO_HPP

#include "builtin.hpp"

using namespace __shedskin__;
namespace __cStringIO__ {

class StringI : public file {
public:
    __ss_int pos;
    str *s;

    StringI(str *s=NULL) : file(), pos(0), s(s ? s : new str()) {}

    str * read(int n=-1);
    str * readline(int n=-1);
    void *seek(__ss_int i, __ss_int w=0);
    __ss_int tell() { return pos; }
    void *truncate(int size=-1) { 
        s->unit.resize(size == -1 ? pos : size); 
        return NULL;
    }
    void *write(str* data);

    bool __error() { return false; }
    bool __eof() { return (pos >= len(s)); }
};

StringI *StringIO(str *s=0);

void __init();

} // module namespace
#endif