summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorCyrille Hemidy <cyrille.hemidy@gmail.com>2018-05-03 14:05:25 -0700
committerShentubot <shentubot@google.com>2018-05-03 14:06:13 -0700
commit04b79137babed361fb227e3ad579adb2df4bb188 (patch)
tree883f16f8e572d6e160bbb3faab1c0f5d2d4858e1 /pkg/sentry
parent5c8db0a81882f009935cc6dd45cec47d5c38b267 (diff)
Fix misspellings.
PiperOrigin-RevId: 195307689 Change-Id: I499f19af49875a43214797d63376f20ae788d2f4
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/fs/file.go2
-rw-r--r--pkg/sentry/fs/fsutil/file.go2
-rw-r--r--pkg/sentry/fs/ramfs/dir.go4
-rw-r--r--pkg/sentry/fs/tty/line_discipline.go4
-rw-r--r--pkg/sentry/kernel/semaphore/semaphore.go2
-rw-r--r--pkg/sentry/kernel/task_exit.go2
-rw-r--r--pkg/sentry/mm/vma.go2
-rw-r--r--pkg/sentry/socket/rpcinet/socket.go2
-rw-r--r--pkg/sentry/strace/syscalls.go2
9 files changed, 11 insertions, 11 deletions
diff --git a/pkg/sentry/fs/file.go b/pkg/sentry/fs/file.go
index de2e80bf0..f2683bbd2 100644
--- a/pkg/sentry/fs/file.go
+++ b/pkg/sentry/fs/file.go
@@ -376,7 +376,7 @@ func (r *FileReader) Read(buf []byte) (int, error) {
return int(n), err
}
-// ReadAt implementes io.Reader.ReadAt.
+// ReadAt implements io.Reader.ReadAt.
func (r *FileReader) ReadAt(buf []byte, offset int64) (int, error) {
n, err := r.File.Preadv(r.Ctx, usermem.BytesIOSequence(buf), offset)
return int(n), err
diff --git a/pkg/sentry/fs/fsutil/file.go b/pkg/sentry/fs/fsutil/file.go
index a7329f1c9..b17f11a5a 100644
--- a/pkg/sentry/fs/fsutil/file.go
+++ b/pkg/sentry/fs/fsutil/file.go
@@ -34,7 +34,7 @@ func (NoopRelease) Release() {}
// SeekWithDirCursor is used to implement fs.FileOperations.Seek. If dirCursor
// is not nil and the seek was on a directory, the cursor will be updated.
//
-// Currenly only seeking to 0 on a directory is supported.
+// Currently only seeking to 0 on a directory is supported.
//
// FIXME: Lift directory seeking limitations.
func SeekWithDirCursor(ctx context.Context, file *fs.File, whence fs.SeekWhence, offset int64, dirCursor *string) (int64, error) {
diff --git a/pkg/sentry/fs/ramfs/dir.go b/pkg/sentry/fs/ramfs/dir.go
index bf4cd8dfd..19d5612ed 100644
--- a/pkg/sentry/fs/ramfs/dir.go
+++ b/pkg/sentry/fs/ramfs/dir.go
@@ -103,7 +103,7 @@ func (d *Dir) addChildLocked(name string, inode *fs.Inode) {
}
// Given we're now adding this inode to the directory we must also
- // increase its link count. Similiarly we decremented it in removeChildLocked.
+ // increase its link count. Similarly we decremented it in removeChildLocked.
inode.AddLink()
}
@@ -144,7 +144,7 @@ func (d *Dir) removeChildLocked(ctx context.Context, name string) (*fs.Inode, er
inode.NotifyStatusChange(ctx)
// Given we're now removing this inode to the directory we must also
- // decrease its link count. Similiarly it is increased in addChildLocked.
+ // decrease its link count. Similarly it is increased in addChildLocked.
inode.DropLink()
return inode, nil
diff --git a/pkg/sentry/fs/tty/line_discipline.go b/pkg/sentry/fs/tty/line_discipline.go
index fde4e7941..a3aa95ece 100644
--- a/pkg/sentry/fs/tty/line_discipline.go
+++ b/pkg/sentry/fs/tty/line_discipline.go
@@ -244,8 +244,8 @@ func (l *lineDiscipline) queueWrite(ctx context.Context, src usermem.IOSequence,
return int64(n), err
}
-// transformOutput does ouput processing for one end of the pty. See
-// drivers/tty/n_tty.c:do_output_char for an analagous kernel function.
+// transformOutput does output processing for one end of the pty. See
+// drivers/tty/n_tty.c:do_output_char for an analogous kernel function.
//
// Precondition: l.termiosMu must be held.
func (l *lineDiscipline) transformOutput(buf []byte) *bytes.Buffer {
diff --git a/pkg/sentry/kernel/semaphore/semaphore.go b/pkg/sentry/kernel/semaphore/semaphore.go
index 19ad5d537..fb8c2f98c 100644
--- a/pkg/sentry/kernel/semaphore/semaphore.go
+++ b/pkg/sentry/kernel/semaphore/semaphore.go
@@ -298,7 +298,7 @@ func (s *Set) GetVal(num int32, creds *auth.Credentials) (int16, error) {
}
// ExecuteOps attempts to execute a list of operations to the set. It only
-// suceeds when all operations can be applied. No changes are made if it fails.
+// succeeds when all operations can be applied. No changes are made if it fails.
//
// On failure, it may return an error (retries are hopeless) or it may return
// a channel that can be waited on before attempting again.
diff --git a/pkg/sentry/kernel/task_exit.go b/pkg/sentry/kernel/task_exit.go
index 3d49ae350..d6604f37b 100644
--- a/pkg/sentry/kernel/task_exit.go
+++ b/pkg/sentry/kernel/task_exit.go
@@ -125,7 +125,7 @@ func (t *Task) killLocked() {
Signo: int32(linux.SIGKILL),
// Linux just sets SIGKILL in the pending signal bitmask without
// enqueueing an actual siginfo, such that
- // kernel/signal.c:collect_signal() initalizes si_code to SI_USER.
+ // kernel/signal.c:collect_signal() initializes si_code to SI_USER.
Code: arch.SignalInfoUser,
})
t.interrupt()
diff --git a/pkg/sentry/mm/vma.go b/pkg/sentry/mm/vma.go
index b6af48cb7..61aaa3195 100644
--- a/pkg/sentry/mm/vma.go
+++ b/pkg/sentry/mm/vma.go
@@ -243,7 +243,7 @@ func (mm *MemoryManager) getVMAsLocked(ctx context.Context, ar usermem.AddrRange
}
// getVecVMAsLocked ensures that vmas exist for all addresses in ars, and
-// support access to type of (at, ignorePermissions). It retuns the subset of
+// support access to type of (at, ignorePermissions). It returns the subset of
// ars for which vmas exist. If this is not equal to ars, it returns a non-nil
// error explaining why.
//
diff --git a/pkg/sentry/socket/rpcinet/socket.go b/pkg/sentry/socket/rpcinet/socket.go
index 15047df01..2911d3fd6 100644
--- a/pkg/sentry/socket/rpcinet/socket.go
+++ b/pkg/sentry/socket/rpcinet/socket.go
@@ -530,7 +530,7 @@ func (p *socketProvider) Socket(t *kernel.Task, stypeflags unix.SockType, protoc
// Only accept TCP and UDP.
//
// Try to restrict the flags we will accept to minimize backwards
- // incompatability with netstack.
+ // incompatibility with netstack.
stype := int(stypeflags) & linux.SOCK_TYPE_MASK
switch stype {
case syscall.SOCK_STREAM:
diff --git a/pkg/sentry/strace/syscalls.go b/pkg/sentry/strace/syscalls.go
index d0e661706..eccee733e 100644
--- a/pkg/sentry/strace/syscalls.go
+++ b/pkg/sentry/strace/syscalls.go
@@ -82,7 +82,7 @@ const (
// PipeFDs is an array of two FDs, formatted after syscall execution.
PipeFDs
- // Uname is a pointer to a struct uname, formatted after syscall exection.
+ // Uname is a pointer to a struct uname, formatted after syscall execution.
Uname
// Stat is a pointer to a struct stat, formatted after syscall execution.