equal
deleted
inserted
replaced
542 return |
542 return |
543 } |
543 } |
544 |
544 |
545 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
545 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
546 |
546 |
|
547 func ClockGettime(clockid int32, time *Timespec) (err error) { |
|
548 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) |
|
549 if e1 != 0 { |
|
550 err = errnoErr(e1) |
|
551 } |
|
552 return |
|
553 } |
|
554 |
|
555 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
556 |
547 func Close(fd int) (err error) { |
557 func Close(fd int) (err error) { |
548 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) |
558 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) |
549 if e1 != 0 { |
559 if e1 != 0 { |
550 err = errnoErr(e1) |
560 err = errnoErr(e1) |
551 } |
561 } |