// ClockGetres implements linux syscall clock_getres(2).
ClockGetres implements linux syscall clock_getres(2).
// ClockGetres implements linux syscall clock_getres ( 2 ) .
func ClockGetres(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.SyscallControl, error) {
	clockID := int32(args[0].Int())
	addr := args[1].Pointer()
	r := linux.Timespec{
		Sec:  0,
		Nsec: 1,
	}
	if _, err := getClock(t, clockID); err != nil {
		return 0, nil, syserror.EINVAL
	}
	if addr == 0 {
		return 0, nil, nil
	}
	return 0, nil, copyTimespecOut(t, addr, &r)
}
func ClockGetres ( t * kernel . Task , args arch . SyscallArguments ) ( uintptr , * kernel . SyscallControl , error ) { clockID := int32 ( args [ 0 ] . Int ( ) ) addr := args [ 1 ] . Pointer ( ) r := linux . Timespec { Sec : 0 , Nsec : 1 , } if _ , err := getClock ( t , clockID ) ; err != nil { return 0 , nil , syserror . EINVAL } if addr == 0 { return 0 , nil , nil } return 0 , nil , copyTimespecOut ( t , addr , & r ) }
ClockGetres implements linux syscall clock_getres(2).
ClockGetres implements linux syscall clock_getres ( 2 ) .
// Don't need to copy out.