This file is indexed.

/usr/lib/gcc/x86_64-linux-gnu/6/include/d/std/syserror.d is in libgphobos-6-dev 6.4.0-17ubuntu1.

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
// Written in the D programming language
// Placed in public domain.
// Written by Walter Bright

/**
 Convert Win32 error code to string

 Source:    $(PHOBOSSRC std/_syserror.d)
*/

module std.syserror;

// Deprecated - instead use std.windows.syserror.sysErrorString()

deprecated("Please use std.windows.syserror.sysErrorString instead")
class SysError
{
    private import core.stdc.stdio;
    private import core.stdc.string;
    private import std.string;

    static string msg(uint errcode)
    {
        string result;

        switch (errcode)
        {
            case 2:     result = "file not found";      break;
            case 3:     result = "path not found";      break;
            case 4:     result = "too many open files"; break;
            case 5:     result = "access denied";       break;
            case 6:     result = "invalid handle";      break;
            case 8:     result = "not enough memory";   break;
            case 14:    result = "out of memory";       break;
            case 15:    result = "invalid drive";       break;
            case 21:    result = "not ready";           break;
            case 32:    result = "sharing violation";   break;
            case 87:    result = "invalid parameter";   break;

            default:
                auto r = new char[uint.sizeof * 3 + 1];
                auto len = sprintf(r.ptr, "%u", errcode);
                result = cast(string) r[0 .. len];
                break;
        }

        return result;
    }
}