Define os.PageSize and syscall.PageSize.

R=rsc
APPROVED=rsc
DELTA=13  (13 added, 0 deleted, 0 changed)
OCL=29429
CL=29819
This commit is contained in:
David Symonds 2009-06-03 03:25:34 -07:00
parent ab3d40b271
commit e02d3e8ed1
3 changed files with 13 additions and 0 deletions

View file

@ -6,6 +6,10 @@ package syscall
import "syscall"
func Getpagesize() int {
return 4096
}
func TimespecToNsec(ts Timespec) int64 {
return int64(ts.Sec)*1e9 + int64(ts.Nsec);
}