This file is indexed.

/usr/include/gnome-vfsmm-2.6/libgnomevfsmm/file-info.h is in libgnome-vfsmm-2.6-dev 2.26.0-1build1.

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
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _LIBGNOMEVFSMM_FILE_INFO_H
#define _LIBGNOMEVFSMM_FILE_INFO_H


#include <glibmm.h>

/* $Id: file-info.hg,v 1.13 2005/11/16 19:50:26 murrayc Exp $ */
// -*- C++ -*- // this is for the .hg, I realize gensig puts one in

/* Copyright 2003 gnome-vfsmm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */


#include <libgnomevfsmm/enums.h>
#include <libgnomevfsmm/types.h>


namespace Gnome
{

namespace Vfs
{

//TODO: This is actually now a boxed-type, with a get_type() function.

class FileInfo
{
  public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  typedef FileInfo CppObjectType;
  typedef GnomeVFSFileInfo BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */

  static Glib::RefPtr<FileInfo> create();

  // For use with Glib::RefPtr<> only.
  void reference()   const;
  void unreference() const;

  ///Provides access to the underlying C instance.
  GnomeVFSFileInfo*       gobj();

  ///Provides access to the underlying C instance.
  const GnomeVFSFileInfo* gobj() const;

  ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
  GnomeVFSFileInfo* gobj_copy() const;

protected:
  // Do not derive this.  Gnome::Vfs::FileInfo can neither be constructed nor deleted.
  FileInfo();
  void operator delete(void*, size_t);

private:
  // noncopyable
  FileInfo(const FileInfo&);
  FileInfo& operator=(const FileInfo&);


public:

  
  /** Clears the attributes so they are ready to accept new data.
   */
  void clear();
  
  /** Retrieve MIME type from this object.
   * @return A pointer to a string representing the MIME type.
   */
  Glib::ustring get_mime_type() const;
  
  /** Duplicates @a orig and returns it.
   * @return A new file information struct that duplicates the information in @a orig.
   */
  Glib::RefPtr<FileInfo> duplicate();
  

  /** Get the name property of this FileInfo.
   * @return A string containing the name.
   */
   std::string get_name() const;
 
	/* Fields which are actually valid in this structure. */
//GnomeVFSFileInfoFields valid_fields;

  /** Get the file type of this FileInfo.
   * @return A FileType representing the file type.
   */
   FileType get_type() const;
 
  /** Get the permissions of this FileInfo.
   * @return A FilePermissions representing the permissions.
   */
   FilePermissions get_permissions() const;
   
  /** Get the special flags of this FileInfo.
   * @return A FileFlags representing the special flags.
   */
   FileFlags get_flags() const;
 
  /* These are only valid if `is_local' is TRUE (see below).  */
  //dev_t device;
  //GnomeVFSInodeNumber inode;


  /** Get the link count of this FileInfo.
   * @return The number of links.
   */
   guint get_link_count() const;
     
  /** Get the user id of this FileInfo.
   * @return The uid.
   */
   guint get_uid() const;
   
  /** Get the group id of this FileInfo.
   * @return The gid.
   */
   guint get_gid() const;
   
  /** Get the size of this FileInfo.
   * This is the size of the file in bytes.
   * @return The size.
   */
   FileSize get_size() const;
   
  /** Get the size of this FileInfo.
   * This is the size of the file measured in units of 512-byte blocks.
   * @return The size.
   */
   FileSize get_block_count() const;
   
  /** Get the I/O block size of this FileInfo.
   * This is used to determine the optimal block size for reading/writing the file.
   * @return The block size.
   */
   guint get_io_block_size() const;
 
  /** Get the access time of this FileInfo.
   * @return The time.
   */
   time_t get_access_time() const;
   
  /** Get the modification time of this FileInfo.
   * @return The time.
   */
   time_t get_modification_time() const;
   
  /** Get the creation time of this FileInfo.
   * @return The time.
   */
   time_t get_creation_time() const;
 
  /** Get the symlink name of this FileInfo.
   * @return If this FileInfo is a symlink, the file this FileInfo points to.
   */
   std::string get_symlink_name() const;
   
  /** Find out if this FileInfo is a symbolic link.
   * In order for this to work, this FileInfo must be created using FILE_INFO_FOLLOW_LINKS.
   * @return <tt>true</tt> if it is a sym link, otherwise <tt>false</tt>.
   */
  bool is_symlink() const;
          

};

} // namespace Vfs
} // namespace Gnome

#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace Glib
{  
  RefPtr<Gnome::Vfs::FileInfo> wrap(GnomeVFSFileInfo* object, bool take_copy);

  namespace Container_Helpers
  {
    /** Specialization for pointers to GnomeVFSFileInfo instances.
     * @ingroup ContHelpers
     * The C++ type is always a Glib::RefPtr<Gnome::Vfs::FileInfo>.
     */
    template <>
    struct TypeTraits< Glib::RefPtr<Gnome::Vfs::FileInfo> >
    {
      typedef Glib::RefPtr<Gnome::Vfs::FileInfo>              CppType;
      typedef Gnome::Vfs::FileInfo::BaseObjectType * CType;
      typedef Gnome::Vfs::FileInfo::BaseObjectType * CTypeNonConst;

      static CType   to_c_type      (const CppType& ptr) { return Glib::unwrap(ptr);     }
      static CType   to_c_type      (CType          ptr) { return ptr;                   }
      static CppType to_cpp_type    (CType          ptr)
      {
        return Glib::wrap(ptr, true);
      }
  
      static void    release_c_type (CType          ptr)
      {
        gnome_vfs_file_info_unref(const_cast<CTypeNonConst>(ptr));
      }
    };
  } // namespace Container_Helpers
} // namespace Glib

#endif // DOXYGEN_SHOULD_SKIP_THIS


namespace Gnome
{

namespace Vfs
{

/** @relates Gnome::Vfs::FileInfo
 * @param lhs The left-hand side
 * @param rhs The right-hand side
 * @result The result
 */
bool operator==(const FileInfo& lhs, const FileInfo& rhs);

/** @relates Gnome::Vfs::FileInfo
 * @param lhs The left-hand side
 * @param rhs The right-hand side
 * @result The result
 */
bool operator!=(const FileInfo& lhs, const FileInfo& rhs);


} // namespace Vfs

} // namespace Gnome


namespace Glib
{

  /** A Glib::wrap() method for this object.
   * 
   * @param object The C instance.
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
   * @result A C++ instance that wraps this C instance.
   *
   * @relates Gnome::Vfs::FileInfo
   */
  Glib::RefPtr<Gnome::Vfs::FileInfo> wrap(GnomeVFSFileInfo* object, bool take_copy = false);

} // namespace Glib


#endif /* _LIBGNOMEVFSMM_FILE_INFO_H */