diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1546a5c8a46..da4563e559d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -51,7 +51,7 @@ i.e. via email or by including a `Signed-off-by:` line at the bottom of your commit comments. To improve tracking of who is the author of a contribution, we kindly ask you -to use your real name (not an alias) when commiting your changes to the NVM Library: +to use your real name (not an alias) when committing your changes to the NVM Library: ``` Author: Random J Developer ``` diff --git a/doc/libpmemobj.3.md b/doc/libpmemobj.3.md index 9ef04028858..ad6bf8a3fc8 100644 --- a/doc/libpmemobj.3.md +++ b/doc/libpmemobj.3.md @@ -776,7 +776,7 @@ The **pmemobj_direct**() function returns a pointer to an object represented by If **OID_NULL** is passed as an argument, function returns NULL. >NOTE: -For preformance reasons, on Linux this function is inlined by default. +For performance reasons, on Linux this function is inlined by default. You may decide to compile your programs using the non-inlined variant of **pmemobj_direct**() by defining **PMEMOBJ_DIRECT_NON_INLINE** macro. You should define this macro by using *\#define* preprocessor directive, diff --git a/src/examples/libpmemobj/libart/arttree_examine.c b/src/examples/libpmemobj/libart/arttree_examine.c index 27d53e54517..331bbe71cec 100644 --- a/src/examples/libpmemobj/libart/arttree_examine.c +++ b/src/examples/libpmemobj/libart/arttree_examine.c @@ -383,7 +383,7 @@ examine_art_node_u(char *appname, struct examine_ctx *ctx, off_t off) dump_PMEMoid(" art_leaf oid", &(node_u->u.al.oid)); break; - default: printf("ERROR: unkown node type\n"); + default: printf("ERROR: unknown node type\n"); break; } printf("\n};\n"); diff --git a/src/jemalloc/ChangeLog b/src/jemalloc/ChangeLog index d56ee999e69..039b8537da3 100644 --- a/src/jemalloc/ChangeLog +++ b/src/jemalloc/ChangeLog @@ -516,7 +516,7 @@ found in the git revision history: - Make it possible for the application to manually flush a thread's cache, via the "tcache.flush" mallctl. - Base maximum dirty page count on proportion of active memory. - - Compute various addtional run-time statistics, including per size class + - Compute various additional run-time statistics, including per size class statistics for large objects. - Expose malloc_stats_print(), which can be called repeatedly by the application. diff --git a/src/jemalloc/bin/pprof b/src/jemalloc/bin/pprof index 328138cd982..f41828a2aaa 100755 --- a/src/jemalloc/bin/pprof +++ b/src/jemalloc/bin/pprof @@ -4743,7 +4743,7 @@ sub MapToSymbols { } else { # MapSymbolsWithNM tags each routine with its starting address, # useful in case the image has multiple occurrences of this - # routine. (It uses a syntax that resembles template paramters, + # routine. (It uses a syntax that resembles template parameters, # that are automatically stripped out by ShortFunctionName().) # addr2line does not provide the same information. So we check # if nm disambiguated our symbol, and if so take the annotated @@ -5095,7 +5095,7 @@ sub GetProcedureBoundaries { # "nm -f $image" is supposed to fail on GNU nm, but if: # # a. $image starts with [BbSsPp] (for example, bin/foo/bar), AND - # b. you have a.out in your current directory (a not uncommon occurence) + # b. you have a.out in your current directory (a not uncommon occurrence) # # then "nm -f $image" succeeds because -f only looks at the first letter of # the argument, which looks valid because it's [BbSsPp], and then since diff --git a/src/jemalloc/include/jemalloc/internal/rb.h b/src/jemalloc/include/jemalloc/internal/rb.h index 423802eb2dc..b46f5c98646 100644 --- a/src/jemalloc/include/jemalloc/internal/rb.h +++ b/src/jemalloc/include/jemalloc/internal/rb.h @@ -198,7 +198,7 @@ a_prefix##reverse_iter(a_rbt_type *rbtree, a_type *start, \ * int (a_cmp *)(a_type *a_node, a_type *a_other); * ^^^^^^ * or a_key - * Interpretation of comparision function return values: + * Interpretation of comparison function return values: * -1 : a_node < a_other * 0 : a_node == a_other * 1 : a_node > a_other diff --git a/src/jemalloc/src/ctl.c b/src/jemalloc/src/ctl.c index 4c53847ce77..e7a626be19e 100644 --- a/src/jemalloc/src/ctl.c +++ b/src/jemalloc/src/ctl.c @@ -10,7 +10,7 @@ * - ctl_stats.* * - opt_prof_active */ -static malloc_mutex_t ctl_mtx; /* XXX seperate mutex for each pool? */ +static malloc_mutex_t ctl_mtx; /* XXX separate mutex for each pool? */ static uint64_t ctl_epoch; /******************************************************************************/ diff --git a/src/test/pmempool_check/TEST19 b/src/test/pmempool_check/TEST19 index fa4f0400355..3111d386005 100755 --- a/src/test/pmempool_check/TEST19 +++ b/src/test/pmempool_check/TEST19 @@ -59,7 +59,7 @@ INVALID_ARCH_FLAGS="FFFFFFFF" $PMEMSPOIL -v $POOL_P1 pool_hdr.arch_flags=$INVALID_ARCH_FLAGS >> $LOG expect_abnormal_exit $PMEMPOOL$EXESUFFIX check -v $POOLSET >> $LOG expect_normal_exit $PMEMPOOL$EXESUFFIX check -vry $POOLSET >> $LOG -# pmempool info schould exit normally +# pmempool info should exit normally expect_normal_exit $PMEMPOOL$EXESUFFIX info $POOLSET &> /dev/null # if valid part does not exist it is impossible to check arch_flags diff --git a/src/test/pmempool_check/TEST19.PS1 b/src/test/pmempool_check/TEST19.PS1 index 1e8b1fa0bd1..26775eac001 100644 --- a/src/test/pmempool_check/TEST19.PS1 +++ b/src/test/pmempool_check/TEST19.PS1 @@ -63,7 +63,7 @@ $INVALID_ARCH_FLAGS="FFFFFFFF" &$PMEMSPOIL -v $POOL_P1 "pool_hdr.arch_flags=$INVALID_ARCH_FLAGS" >> $LOG expect_abnormal_exit $PMEMPOOL check -v $POOLSET >> $LOG expect_normal_exit $PMEMPOOL check -vry $POOLSET >> $LOG -# pmempool info schould exit normally +# pmempool info should exit normally expect_normal_exit $PMEMPOOL info $POOLSET >> $null # if valid part does not exist it is impossible to check arch_flags diff --git a/src/test/unittest/unittest.ps1 b/src/test/unittest/unittest.ps1 index 78c0e5f561e..ac30d9c47ea 100644 --- a/src/test/unittest/unittest.ps1 +++ b/src/test/unittest/unittest.ps1 @@ -299,7 +299,7 @@ function create_poolset { } $cmd = $args[$i] # need to strip out a drive letter if included because we use : - # as a delimeter in the arguement + # as a delimeter in the argument $driveLetter = "" if ($cmd -match ":([a-zA-Z]):\\") { @@ -759,7 +759,7 @@ function check_size { function check_mode { sv -Name mode -Scope "Local" $args[0] sv -Name file -Scope "Local" $args[1] - $mode = [math]::floor($mode / 100) # get first digit (user/owner permision) + $mode = [math]::floor($mode / 100) # get first digit (user/owner permission) $read_only = (gp $file IsReadOnly).IsReadOnly if ($mode -band 2) { diff --git a/src/windows/include/unistd.h b/src/windows/include/unistd.h index 12a152dfc25..1016f148cd4 100644 --- a/src/windows/include/unistd.h +++ b/src/windows/include/unistd.h @@ -76,10 +76,10 @@ sysconf(int p) static ssize_t pread(int fd, void *buf, size_t count, off_t offset) { - __int64 postion = _lseeki64(fd, 0, SEEK_CUR); + __int64 position = _lseeki64(fd, 0, SEEK_CUR); _lseeki64(fd, offset, SEEK_SET); int ret = _read(fd, buf, (unsigned)count); - _lseeki64(fd, postion, SEEK_SET); + _lseeki64(fd, position, SEEK_SET); return ret; } @@ -89,10 +89,10 @@ pread(int fd, void *buf, size_t count, off_t offset) static ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset) { - __int64 postion = _lseeki64(fd, 0, SEEK_CUR); + __int64 position = _lseeki64(fd, 0, SEEK_CUR); _lseeki64(fd, offset, SEEK_SET); int ret = _write(fd, buf, (unsigned)count); - _lseeki64(fd, postion, SEEK_SET); + _lseeki64(fd, position, SEEK_SET); return ret; } diff --git a/utils/build-rpm.sh b/utils/build-rpm.sh index 689336e48ed..b3cd56ed161 100755 --- a/utils/build-rpm.sh +++ b/utils/build-rpm.sh @@ -422,7 +422,7 @@ Group: %{package_group} Summary: Tools for %{name} %description tools -Usefull applications for administration and diagnostic purposes. +Useful applications for administration and diagnostic purposes. %files tools %{_bindir}/pmempool