Fix misspellings.

PiperOrigin-RevId: 195307689
Change-Id: I499f19af49875a43214797d63376f20ae788d2f4
This commit is contained in:
Cyrille Hemidy
2018-05-03 14:06:13 -07:00
committed by Shentubot
parent 5c8db0a818
commit 04b79137ba
14 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ func (t TestEmitter) Emit(level Level, timestamp time.Time, format string, v ...
// Logger is a high-level logging interface. It is in fact, not used within the
// log package. Rather it is provided for others to provide contextual loggers
// that may append some addition information to log statement. BasicLogger
// satifies this interface, and may be passed around as a Logger.
// satisfies this interface, and may be passed around as a Logger.
type Logger interface {
// Debugf logs a debug statement.
Debugf(format string, v ...interface{})
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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) {
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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 {
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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.
//
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -60,7 +60,7 @@ const (
// IPv6ProtocolNumber is IPv6's network protocol number.
IPv6ProtocolNumber tcpip.NetworkProtocolNumber = 0x86dd
// IPv6Version is the version of the ipv6 procotol.
// IPv6Version is the version of the ipv6 protocol.
IPv6Version = 6
// IPv6MinimumMTU is the minimum MTU required by IPv6, per RFC 2460,
+1 -1
View File
@@ -165,7 +165,7 @@ type TCPSenderState struct {
// window size from a segment.
SndWndScale uint8
// MaxSentAck is the highest acknowledgemnt number sent till now.
// MaxSentAck is the highest acknowledgement number sent till now.
MaxSentAck seqnum.Value
// FastRecovery holds the fast recovery state for the endpoint.
+1 -1
View File
@@ -152,7 +152,7 @@ func newSender(ep *endpoint, iss, irs seqnum.Value, sndWnd seqnum.Size, mss uint
// updateMaxPayloadSize updates the maximum payload size based on the given
// MTU. If this is in response to "packet too big" control packets (indicated
// by the count argument), it also reduces the number of oustanding packets and
// by the count argument), it also reduces the number of outstanding packets and
// attempts to retransmit the first packet above the MTU size.
func (s *sender) updateMaxPayloadSize(mtu, count int) {
m := mtu - header.TCPMinimumSize
+2 -2
View File
@@ -58,7 +58,7 @@ func validateID(id string) error {
//
// Within a root directory, we maintain subdirectories for each sandbox named
// with the sandbox id. The sandbox metadata is is stored as json within the
// sandbox directoy in a file named "meta.json". This metadata format is
// sandbox directory in a file named "meta.json". This metadata format is
// defined by us, and is not part of the OCI spec.
//
// Sandboxes must write this metadata file after any change to their internal
@@ -199,7 +199,7 @@ func Load(rootDir, id string) (*Sandbox, error) {
// If the status is "Running" or "Created", check that the process
// still exists, and set it to Stopped if it does not.
//
// This is inherintly racey.
// This is inherently racey.
if s.Status == Running || s.Status == Created {
// Send signal 0 to check if process exists.
if err := s.Signal(0); err != nil {