Coverage Report

Created: 2026-08-18 06:34

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/nspr/pr/src/misc/prerr.c
Line
Count
Source
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
/*
6
 *
7
 * prerr.c
8
 * This file is automatically generated; please do not edit it.
9
 */
10
#include "prerror.h"
11
static const struct PRErrorMessage text[] = {
12
    {"PR_OUT_OF_MEMORY_ERROR", "Memory allocation attempt failed"},
13
    {"PR_BAD_DESCRIPTOR_ERROR", "Invalid file descriptor"},
14
    {"PR_WOULD_BLOCK_ERROR", "The operation would have blocked"},
15
    {"PR_ACCESS_FAULT_ERROR", "Invalid memory address argument"},
16
    {"PR_INVALID_METHOD_ERROR", "Invalid function for file type"},
17
    {"PR_ILLEGAL_ACCESS_ERROR", "Invalid memory address argument"},
18
    {"PR_UNKNOWN_ERROR", "Some unknown error has occurred"},
19
    {"PR_PENDING_INTERRUPT_ERROR", "Operation interrupted by another thread"},
20
    {"PR_NOT_IMPLEMENTED_ERROR", "function not implemented"},
21
    {"PR_IO_ERROR", "I/O function error"},
22
    {"PR_IO_TIMEOUT_ERROR", "I/O operation timed out"},
23
    {"PR_IO_PENDING_ERROR", "I/O operation on busy file descriptor"},
24
    {"PR_DIRECTORY_OPEN_ERROR", "The directory could not be opened"},
25
    {"PR_INVALID_ARGUMENT_ERROR", "Invalid function argument"},
26
    {"PR_ADDRESS_NOT_AVAILABLE_ERROR",
27
     "Network address not available (in use?)"},
28
    {"PR_ADDRESS_NOT_SUPPORTED_ERROR", "Network address type not supported"},
29
    {"PR_IS_CONNECTED_ERROR", "Already connected"},
30
    {"PR_BAD_ADDRESS_ERROR", "Network address is invalid"},
31
    {"PR_ADDRESS_IN_USE_ERROR", "Local Network address is in use"},
32
    {"PR_CONNECT_REFUSED_ERROR", "Connection refused by peer"},
33
    {"PR_NETWORK_UNREACHABLE_ERROR",
34
     "Network address is presently unreachable"},
35
    {"PR_CONNECT_TIMEOUT_ERROR", "Connection attempt timed out"},
36
    {"PR_NOT_CONNECTED_ERROR", "Network file descriptor is not connected"},
37
    {"PR_LOAD_LIBRARY_ERROR", "Failure to load dynamic library"},
38
    {"PR_UNLOAD_LIBRARY_ERROR", "Failure to unload dynamic library"},
39
    {"PR_FIND_SYMBOL_ERROR",
40
     "Symbol not found in any of the loaded dynamic libraries"},
41
    {"PR_INSUFFICIENT_RESOURCES_ERROR", "Insufficient system resources"},
42
    {"PR_DIRECTORY_LOOKUP_ERROR",
43
     "A directory lookup on a network address has failed"},
44
    {"PR_TPD_RANGE_ERROR", "Attempt to access a TPD key that is out of range"},
45
    {"PR_PROC_DESC_TABLE_FULL_ERROR", "Process open FD table is full"},
46
    {"PR_SYS_DESC_TABLE_FULL_ERROR", "System open FD table is full"},
47
    {"PR_NOT_SOCKET_ERROR",
48
     "Network operation attempted on non-network file descriptor"},
49
    {"PR_NOT_TCP_SOCKET_ERROR",
50
     "TCP-specific function attempted on a non-TCP file descriptor"},
51
    {"PR_SOCKET_ADDRESS_IS_BOUND_ERROR",
52
     "TCP file descriptor is already bound"},
53
    {"PR_NO_ACCESS_RIGHTS_ERROR", "Access Denied"},
54
    {"PR_OPERATION_NOT_SUPPORTED_ERROR",
55
     "The requested operation is not supported by the platform"},
56
    {"PR_PROTOCOL_NOT_SUPPORTED_ERROR",
57
     "The host operating system does not support the protocol requested"},
58
    {"PR_REMOTE_FILE_ERROR", "Access to the remote file has been severed"},
59
    {"PR_BUFFER_OVERFLOW_ERROR",
60
     "The value requested is too large to be stored in the data buffer "
61
     "provided"},
62
    {"PR_CONNECT_RESET_ERROR", "TCP connection reset by peer"},
63
    {"PR_RANGE_ERROR", "Unused"},
64
    {"PR_DEADLOCK_ERROR", "The operation would have deadlocked"},
65
    {"PR_FILE_IS_LOCKED_ERROR", "The file is already locked"},
66
    {"PR_FILE_TOO_BIG_ERROR",
67
     "Write would result in file larger than the system allows"},
68
    {"PR_NO_DEVICE_SPACE_ERROR", "The device for storing the file is full"},
69
    {"PR_PIPE_ERROR", "Unused"},
70
    {"PR_NO_SEEK_DEVICE_ERROR", "Unused"},
71
    {"PR_IS_DIRECTORY_ERROR",
72
     "Cannot perform a normal file operation on a directory"},
73
    {"PR_LOOP_ERROR", "Symbolic link loop"},
74
    {"PR_NAME_TOO_LONG_ERROR", "File name is too long"},
75
    {"PR_FILE_NOT_FOUND_ERROR", "File not found"},
76
    {"PR_NOT_DIRECTORY_ERROR",
77
     "Cannot perform directory operation on a normal file"},
78
    {"PR_READ_ONLY_FILESYSTEM_ERROR",
79
     "Cannot write to a read-only file system"},
80
    {"PR_DIRECTORY_NOT_EMPTY_ERROR",
81
     "Cannot delete a directory that is not empty"},
82
    {"PR_FILESYSTEM_MOUNTED_ERROR",
83
     "Cannot delete or rename a file object while the file system is busy"},
84
    {"PR_NOT_SAME_DEVICE_ERROR",
85
     "Cannot rename a file to a file system on another device"},
86
    {"PR_DIRECTORY_CORRUPTED_ERROR",
87
     "The directory object in the file system is corrupted"},
88
    {"PR_FILE_EXISTS_ERROR",
89
     "Cannot create or rename a filename that already exists"},
90
    {"PR_MAX_DIRECTORY_ENTRIES_ERROR",
91
     "Directory is full.  No additional filenames may be added"},
92
    {"PR_INVALID_DEVICE_STATE_ERROR",
93
     "The required device was in an invalid state"},
94
    {"PR_DEVICE_IS_LOCKED_ERROR", "The device is locked"},
95
    {"PR_NO_MORE_FILES_ERROR", "No more entries in the directory"},
96
    {"PR_END_OF_FILE_ERROR", "Encountered end of file"},
97
    {"PR_FILE_SEEK_ERROR", "Seek error"},
98
    {"PR_FILE_IS_BUSY_ERROR", "The file is busy"},
99
    {"PR_OPERATION_ABORTED_ERROR", "The I/O operation was aborted"},
100
    {"PR_IN_PROGRESS_ERROR",
101
     "Operation is still in progress (probably a non-blocking connect)"},
102
    {"PR_ALREADY_INITIATED_ERROR",
103
     "Operation has already been initiated (probably a non-blocking connect)"},
104
    {"PR_GROUP_EMPTY_ERROR", "The wait group is empty"},
105
    {"PR_INVALID_STATE_ERROR", "Object state improper for request"},
106
    {"PR_NETWORK_DOWN_ERROR", "Network is down"},
107
    {"PR_SOCKET_SHUTDOWN_ERROR", "Socket shutdown"},
108
    {"PR_CONNECT_ABORTED_ERROR", "Connection aborted"},
109
    {"PR_HOST_UNREACHABLE_ERROR", "Host is unreachable"},
110
    {"PR_LIBRARY_NOT_LOADED_ERROR", "The library is not loaded"},
111
    {"PR_CALL_ONCE_ERROR",
112
     "The one-time function was previously called and failed. Its error code "
113
     "is no longer available"},
114
    {"PR_MAX_ERROR", "Placeholder for the end of the list"},
115
    {0, 0}};
116
117
static const struct PRErrorTable et = {text, "prerr", -6000L, 77};
118
119
19
void nspr_InitializePRErrorTable(void) { PR_ErrorInstallTable(&et); }