1
0
mirror of https://github.com/golang/go synced 2024-11-12 07:00:21 -07:00

godoc: remove dependency of syscall

On app-engine, we cannot import syscall.
The respective constants are already defined
elsewhere for the same reason.

R=r, dsymonds
CC=golang-dev
https://golang.org/cl/5036042
This commit is contained in:
Robert Griesemer 2011-09-15 16:47:01 -07:00
parent 66e44000d4
commit 642d272c3c

View File

@ -23,7 +23,6 @@ import (
"runtime"
"sort"
"strings"
"syscall"
"template"
"time"
)
@ -826,9 +825,9 @@ func fsReadDir(dir string) ([]*os.FileInfo, os.Error) {
// Convert []FileInfo to []*os.FileInfo.
osfi := make([]*os.FileInfo, len(fi))
for i, f := range fi {
mode := uint32(syscall.S_IFREG)
mode := uint32(S_IFREG)
if f.IsDirectory() {
mode = syscall.S_IFDIR
mode = S_IFDIR
}
osfi[i] = &os.FileInfo{Name: f.Name(), Size: f.Size(), Mtime_ns: f.Mtime_ns(), Mode: mode}
}