]> Cypherpunks repositories - gostls13.git/commit
os, syscall: refactor Unix directory parsing
authorRuss Cox <rsc@golang.org>
Wed, 6 Apr 2011 19:44:40 +0000 (15:44 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 6 Apr 2011 19:44:40 +0000 (15:44 -0400)
commitcf56f06ab6d79ab2bf189081482329d22c609952
treefc78bfe73d0f1b23cd8846e927ff3b43327c0453
parent1e1e2f0971178e2a42a6c186ed3e1274fdf4ab81
os, syscall: refactor Unix directory parsing

Moved the details of how to read a directory
and how to parse the results behind the new
syscall functions ReadDirent and ParseDirent.

Now os needs just one copy of Readdirnames
for the three Unix variants, and it no longer
imports "unsafe".

R=r, r2
CC=golang-dev
https://golang.org/cl/4368048
src/pkg/os/Makefile
src/pkg/os/dir_freebsd.go [deleted file]
src/pkg/os/dir_linux.go [deleted file]
src/pkg/os/dir_unix.go [moved from src/pkg/os/dir_darwin.go with 61% similarity]
src/pkg/os/os_test.go
src/pkg/syscall/syscall_bsd.go
src/pkg/syscall/syscall_linux.go