summaryrefslogtreecommitdiff
path: root/src/include/extern.h
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-01-04 12:41:00 -0500
committerKeith Bostic <keith@wiredtiger.com>2015-01-04 12:41:00 -0500
commit73e2bc2ffa213da160ba4e71e9ce104b4e953984 (patch)
tree9fe917ce6809d2b60bbbcb4e504c496929f5df3d /src/include/extern.h
parent8cd48210941368893c6a29e16b3cbfac2a725ab1 (diff)
downloadmongo-73e2bc2ffa213da160ba4e71e9ce104b4e953984.tar.gz
Keep wiredtiger_strerror() as thread-safe as possible by splitting the
possible error returns into "constant string" and other, and checking for constant strings before anything else.
Diffstat (limited to 'src/include/extern.h')
-rw-r--r--src/include/extern.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/extern.h b/src/include/extern.h
index b5c71aa7c15..c34f5d354c8 100644
--- a/src/include/extern.h
+++ b/src/include/extern.h
@@ -431,6 +431,7 @@ extern int __wt_dlopen(WT_SESSION_IMPL *session, const char *path, WT_DLH **dlhp
extern int __wt_dlsym(WT_SESSION_IMPL *session, WT_DLH *dlh, const char *name, int fail, void *sym_ret);
extern int __wt_dlclose(WT_SESSION_IMPL *session, WT_DLH *dlh);
extern int __wt_errno(void);
+extern char *__wt_strerror(int error);
extern int __wt_strerror_r(int error, char *buf, size_t buflen);
extern int __wt_exist(WT_SESSION_IMPL *session, const char *filename, int *existp);
extern void __wt_fallocate_config(WT_SESSION_IMPL *session, WT_FH *fh);