Fix license year and remove Read.
This commit is contained in:
parent
44427d8e26
commit
ddef7f8078
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2018 The gVisor Authors.
|
||||
// Copyright 2019 The gVisor Authors.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -16,12 +16,9 @@ package dev
|
|||
|
||||
import (
|
||||
"gvisor.dev/gvisor/pkg/abi/linux"
|
||||
"gvisor.dev/gvisor/pkg/rand"
|
||||
"gvisor.dev/gvisor/pkg/sentry/context"
|
||||
"gvisor.dev/gvisor/pkg/sentry/fs"
|
||||
"gvisor.dev/gvisor/pkg/sentry/fs/fsutil"
|
||||
"gvisor.dev/gvisor/pkg/sentry/safemem"
|
||||
"gvisor.dev/gvisor/pkg/sentry/usermem"
|
||||
"gvisor.dev/gvisor/pkg/waiter"
|
||||
)
|
||||
|
||||
|
@ -72,8 +69,3 @@ type ttyFileOperations struct {
|
|||
}
|
||||
|
||||
var _ fs.FileOperations = (*ttyFileOperations)(nil)
|
||||
|
||||
// Read implements fs.FileOperations.Read.
|
||||
func (*ttyFileOperations) Read(ctx context.Context, _ *fs.File, dst usermem.IOSequence, _ int64) (int64, error) {
|
||||
return dst.CopyOutFrom(ctx, safemem.FromIOReader{rand.Reader})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue