summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-03-20 16:04:42 -0400
committerKeith Bostic <keith@wiredtiger.com>2015-03-20 16:04:42 -0400
commit153619ee1dfd04c654c0075ad2daa6d3aa57dcea (patch)
tree232f7b760f7d164b1cbcada5ca60e390929900da /dist
parent123c0bd6a2cf96c2fd17d542f537257b9de8a8b9 (diff)
downloadmongo-153619ee1dfd04c654c0075ad2daa6d3aa57dcea.tar.gz
Push the rest of the FILE handle functions down into the OS-specific
code, get rid of all calls to __wt_errno() from the upper-level code. Rename the WiredTiger FILE handle functions to match stdio(3).
Diffstat (limited to 'dist')
-rw-r--r--dist/s_string.ok3
-rwxr-xr-xdist/s_style9
2 files changed, 12 insertions, 0 deletions
diff --git a/dist/s_string.ok b/dist/s_string.ok
index 961c09bec26..86004e3d314 100644
--- a/dist/s_string.ok
+++ b/dist/s_string.ok
@@ -126,6 +126,7 @@ Filesystems
FindFirstFile
Fk
FlushFileBuffers
+Fprintf
FreeBSD
FreeBSD's
FreeLibrary
@@ -361,6 +362,7 @@ VLDB
VMSG
Vanishingly
Vc
+Vfprintf
Vixie
Vo
Vv
@@ -1147,6 +1149,7 @@ variable's
vcell
verrx
versa
+vfprintf
vlcs
vmsg
vpack
diff --git a/dist/s_style b/dist/s_style
index 50d00ff1d7f..ccee9404441 100755
--- a/dist/s_style
+++ b/dist/s_style
@@ -64,6 +64,15 @@ for f in \
cat $t
fi
+ if ! expr "$f" : 'src/os_posix/.*' > /dev/null &&
+ ! expr "$f" : 'src/os_win/.*' > /dev/null &&
+ ! expr "$f" : 'src/include/extern.h' > /dev/null &&
+ ! expr "$f" : 'src/include/os.h' > /dev/null &&
+ grep '__wt_errno' $f > $t; then
+ echo "$f: upper-level code should not call __wt_errno"
+ cat $t
+ fi
+
if ! expr "$f" : 'examples/c/.*' > /dev/null &&
! expr "$f" : 'ext/datasources/helium/helium.c' > /dev/null &&
! expr "$f" : 'src/include/os.h' > /dev/null &&