// Time implements linux syscall time(2).
Time implements linux syscall time(2).
// Time implements linux syscall time ( 2 ) .
func Time(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.SyscallControl, error) {
	addr := args[0].Pointer()
	r := t.Kernel().RealtimeClock().Now().TimeT()
	if addr == hostarch.Addr(0) {
		return uintptr(r), nil, nil
	}
	if _, err := r.CopyOut(t, addr); err != nil {
		return 0, nil, err
	}
	return uintptr(r), nil, nil
}
func Time ( t * kernel . Task , args arch . SyscallArguments ) ( uintptr , * kernel . SyscallControl , error ) { addr := args [ 0 ] . Pointer ( ) r := t . Kernel ( ) . RealtimeClock ( ) . Now ( ) . TimeT ( ) if addr == hostarch . Addr ( 0 ) { return uintptr ( r ) , nil , nil } if _ , err := r . CopyOut ( t , addr ) ; err != nil { return 0 , nil , err } return uintptr ( r ) , nil , nil }
Time implements linux syscall time(2).
Time implements linux syscall time ( 2 ) .