move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.

this breaks the dependency of package io on package bytes.

R=rsc
CC=golang-dev
https://golang.org/cl/163085
This commit is contained in:
Rob Pike 2009-12-02 22:02:14 -08:00
parent 1eba218e44
commit b0683bd77a
30 changed files with 87 additions and 68 deletions

View file

@ -9,7 +9,7 @@ package proc
import (
"container/vector";
"fmt";
"io";
"io/ioutil";
"os";
"runtime";
"strconv";
@ -1215,7 +1215,7 @@ func (p *process) attachAllThreads() os.Error {
if err != nil {
// There could have been a race, or
// this process could be a zobmie.
statFile, err2 := io.ReadFile(taskPath + "/" + tidStr + "/stat");
statFile, err2 := ioutil.ReadFile(taskPath + "/" + tidStr + "/stat");
if err2 != nil {
switch err2 := err2.(type) {
case *os.PathError: