mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
gofmt-ify syscall
(replacement for CL 1018053) R=r http://go/go-review/1017047
This commit is contained in:
parent
30c7088c95
commit
bd4f94057f
16 changed files with 168 additions and 178 deletions
|
|
@ -5,7 +5,7 @@
|
|||
package syscall
|
||||
|
||||
func Getpagesize() int {
|
||||
return 4096
|
||||
return 4096;
|
||||
}
|
||||
|
||||
func TimespecToNsec(ts Timespec) int64 {
|
||||
|
|
@ -13,15 +13,15 @@ func TimespecToNsec(ts Timespec) int64 {
|
|||
}
|
||||
|
||||
func NsecToTimespec(nsec int64) (ts Timespec) {
|
||||
ts.Sec = int32(nsec / 1e9);
|
||||
ts.Nsec = int32(nsec % 1e9);
|
||||
ts.Sec = int32(nsec/1e9);
|
||||
ts.Nsec = int32(nsec%1e9);
|
||||
return;
|
||||
}
|
||||
|
||||
func NsecToTimeval(nsec int64) (tv Timeval) {
|
||||
nsec += 999; // round up to microsecond
|
||||
tv.Sec = int32(nsec/1e9);
|
||||
tv.Usec = int32(nsec%1e9 / 1e3);
|
||||
tv.Usec = int32(nsec%1e9/1e3);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -63,9 +63,8 @@ func NsecToTimeval(nsec int64) (tv Timeval) {
|
|||
|
||||
// TODO(kaib): add support for tracing
|
||||
func (r *PtraceRegs) PC() uint64 {
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
func (r *PtraceRegs) SetPC(pc uint64) {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue