16
16
#include "mysys_priv.h"
17
17
#include "mysys_err.h"
19
#ifndef SHARED_LIBRARY
21
const char * globerrs[GLOBERRS]=
23
"Can't create/write to file '%s' (Errcode: %d)",
24
"Error reading file '%s' (Errcode: %d)",
25
"Error writing file '%s' (Errcode: %d)",
26
"Error on close of '%s' (Errcode: %d)",
27
"Out of memory (Needed %u bytes)",
28
"Error on delete of '%s' (Errcode: %d)",
29
"Error on rename of '%s' to '%s' (Errcode: %d)",
31
"Unexpected eof found when reading file '%s' (Errcode: %d)",
32
"Can't lock file (Errcode: %d)",
33
"Can't unlock file (Errcode: %d)",
34
"Can't read dir of '%s' (Errcode: %d)",
35
"Can't get stat of '%s' (Errcode: %d)",
36
"Can't change size of file (Errcode: %d)",
37
"Can't open stream from handle (Errcode: %d)",
38
"Can't get working dirctory (Errcode: %d)",
39
"Can't change dir to '%s' (Errcode: %d)",
40
"Warning: '%s' had %d links",
41
"Warning: %d files and %d streams is left open\n",
42
"Disk is full writing '%s' (Errcode: %d). Waiting for someone to free space... Retry in %d secs",
43
"Can't create directory '%s' (Errcode: %d)",
44
"Character set '%s' is not a compiled character set and is not specified in the '%s' file",
45
"Out of resources when opening file '%s' (Errcode: %d)",
46
"Can't read value for symlink '%s' (Error %d)",
47
"Can't create symlink '%s' pointing at '%s' (Error %d)",
48
"Error on realpath() on '%s' (Error %d)",
49
"Can't sync file '%s' to disk (Errcode: %d)",
50
"Collation '%s' is not a compiled collation and is not specified in the '%s' file",
51
"File '%s' not found (Errcode: %d)",
52
"File '%s' (fileno: %d) was not closed"
55
void init_glob_errs(void)
57
/* This is now done statically. */
18
#include <libdrizzle/gettext.h>
20
/* Error message numbers in global map */
21
const char * globerrs[GLOBERRS];
62
23
void init_glob_errs()
64
EE(EE_CANTCREATEFILE) = "Can't create/write to file '%s' (Errcode: %d)";
65
EE(EE_READ) = "Error reading file '%s' (Errcode: %d)";
66
EE(EE_WRITE) = "Error writing file '%s' (Errcode: %d)";
67
EE(EE_BADCLOSE) = "Error on close of '%'s (Errcode: %d)";
68
EE(EE_OUTOFMEMORY) = "Out of memory (Needed %u bytes)";
69
EE(EE_DELETE) = "Error on delete of '%s' (Errcode: %d)";
70
EE(EE_LINK) = "Error on rename of '%s' to '%s' (Errcode: %d)";
71
EE(EE_EOFERR) = "Unexpected eof found when reading file '%s' (Errcode: %d)";
72
EE(EE_CANTLOCK) = "Can't lock file (Errcode: %d)";
73
EE(EE_CANTUNLOCK) = "Can't unlock file (Errcode: %d)";
74
EE(EE_DIR) = "Can't read dir of '%s' (Errcode: %d)";
75
EE(EE_STAT) = "Can't get stat of '%s' (Errcode: %d)";
76
EE(EE_CANT_CHSIZE) = "Can't change size of file (Errcode: %d)";
77
EE(EE_CANT_OPEN_STREAM)= "Can't open stream from handle (Errcode: %d)";
78
EE(EE_GETWD) = "Can't get working dirctory (Errcode: %d)";
79
EE(EE_SETWD) = "Can't change dir to '%s' (Errcode: %d)";
80
EE(EE_LINK_WARNING) = "Warning: '%s' had %d links";
81
EE(EE_OPEN_WARNING) = "Warning: %d files and %d streams is left open\n";
82
EE(EE_DISK_FULL) = "Disk is full writing '%s'. Waiting for someone to free space...";
83
EE(EE_CANT_MKDIR) ="Can't create directory '%s' (Errcode: %d)";
84
EE(EE_UNKNOWN_CHARSET)= "Character set '%s' is not a compiled character set and is not specified in the %s file";
85
EE(EE_OUT_OF_FILERESOURCES)="Out of resources when opening file '%s' (Errcode: %d)";
86
EE(EE_CANT_READLINK)= "Can't read value for symlink '%s' (Error %d)";
87
EE(EE_CANT_SYMLINK)= "Can't create symlink '%s' pointing at '%s' (Error %d)";
88
EE(EE_REALPATH)= "Error on realpath() on '%s' (Error %d)";
89
EE(EE_SYNC)= "Can't sync file '%s' to disk (Errcode: %d)";
90
EE(EE_UNKNOWN_COLLATION)= "Collation '%s' is not a compiled collation and is not specified in the %s file";
91
EE(EE_FILENOTFOUND) = "File '%s' not found (Errcode: %d)";
92
EE(EE_FILE_NOT_CLOSED) = "File '%s' (fileno: %d) was not closed";
25
EE(EE_CANTCREATEFILE) = gettext_noop("Can't create/write to file '%s' (Errcode: %d)");
26
EE(EE_READ) = gettext_noop("Error reading file '%s' (Errcode: %d)");
27
EE(EE_WRITE) = gettext_noop("Error writing file '%s' (Errcode: %d)");
28
EE(EE_BADCLOSE) = gettext_noop("Error on close of '%'s (Errcode: %d)");
29
EE(EE_OUTOFMEMORY) = gettext_noop("Out of memory (Needed %u bytes)");
30
EE(EE_DELETE) = gettext_noop("Error on delete of '%s' (Errcode: %d)");
31
EE(EE_LINK) = gettext_noop("Error on rename of '%s' to '%s' (Errcode: %d)");
32
EE(EE_EOFERR) = gettext_noop("Unexpected eof found when reading file '%s' (Errcode: %d)");
33
EE(EE_CANTLOCK) = gettext_noop("Can't lock file (Errcode: %d)");
34
EE(EE_CANTUNLOCK) = gettext_noop("Can't unlock file (Errcode: %d)");
35
EE(EE_DIR) = gettext_noop("Can't read dir of '%s' (Errcode: %d)");
36
EE(EE_STAT) = gettext_noop("Can't get stat of '%s' (Errcode: %d)");
37
EE(EE_CANT_CHSIZE) = gettext_noop("Can't change size of file (Errcode: %d)");
38
EE(EE_CANT_OPEN_STREAM)= gettext_noop("Can't open stream from handle (Errcode: %d)");
39
EE(EE_GETWD) = gettext_noop("Can't get working dirctory (Errcode: %d)");
40
EE(EE_SETWD) = gettext_noop("Can't change dir to '%s' (Errcode: %d)");
41
EE(EE_LINK_WARNING) = gettext_noop("Warning: '%s' had %d links");
42
EE(EE_OPEN_WARNING) = gettext_noop("Warning: %d files and %d streams is left open\n");
43
EE(EE_DISK_FULL) = gettext_noop("Disk is full writing '%s'. Waiting for someone to free space...");
44
EE(EE_CANT_MKDIR) = gettext_noop("Can't create directory '%s' (Errcode: %d)");
45
EE(EE_UNKNOWN_CHARSET)= gettext_noop("Character set '%s' is not a compiled character set and is not specified in the %s file");
46
EE(EE_OUT_OF_FILERESOURCES)= gettext_noop("Out of resources when opening file '%s' (Errcode: %d)");
47
EE(EE_CANT_READLINK)= gettext_noop("Can't read value for symlink '%s' (Error %d)");
48
EE(EE_CANT_SYMLINK)= gettext_noop("Can't create symlink '%s' pointing at '%s' (Error %d)");
49
EE(EE_REALPATH)= gettext_noop("Error on realpath() on '%s' (Error %d)");
50
EE(EE_SYNC)= gettext_noop("Can't sync file '%s' to disk (Errcode: %d)");
51
EE(EE_UNKNOWN_COLLATION)= gettext_noop("Collation '%s' is not a compiled collation and is not specified in the %s file");
52
EE(EE_FILENOTFOUND) = gettext_noop("File '%s' not found (Errcode: %d)");
53
EE(EE_FILE_NOT_CLOSED) = gettext_noop("File '%s' (fileno: %d) was not closed");