Skip to content

Commit

Permalink
common: typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GBuella committed May 3, 2017
1 parent 3fc8985 commit d43182f
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <random@developer.example.org>
```
Expand Down
2 changes: 1 addition & 1 deletion doc/libpmemobj.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/examples/libpmemobj/libart/arttree_examine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/jemalloc/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/jemalloc/bin/pprof
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/jemalloc/include/jemalloc/internal/rb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/jemalloc/src/ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/******************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion src/test/pmempool_check/TEST19
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/test/pmempool_check/TEST19.PS1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/test/unittest/unittest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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]):\\") {
Expand Down Expand Up @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions src/windows/include/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion utils/build-rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d43182f

Please sign in to comment.