equal
deleted
inserted
replaced
519 return |
519 return |
520 } |
520 } |
521 |
521 |
522 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
522 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
523 |
523 |
|
524 func ClockGettime(clockid int32, time *Timespec) (err error) { |
|
525 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) |
|
526 if e1 != 0 { |
|
527 err = errnoErr(e1) |
|
528 } |
|
529 return |
|
530 } |
|
531 |
|
532 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
533 |
524 func Close(fd int) (err error) { |
534 func Close(fd int) (err error) { |
525 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) |
535 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) |
526 if e1 != 0 { |
536 if e1 != 0 { |
527 err = errnoErr(e1) |
537 err = errnoErr(e1) |
528 } |
538 } |