Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 119 for RawSyscall (1.43 sec)

  1. src/syscall/syscall_linux_riscv64.go

    		NsecToTimespec(TimevalToNsec(tv[1])),
    	}
    	return utimensat(_AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
    }
    
    //go:nosplit
    func rawSetrlimit(resource int, rlim *Rlimit) Errno {
    	_, _, errno := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    	return errno
    }
    
    func (r *PtraceRegs) PC() uint64 { return r.Pc }
    
    func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  2. src/syscall/syscall_openbsd.go

    func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno)
    func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    
    type SockaddrDatalink struct {
    	Len    uint8
    	Family uint8
    	Index  uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 10:34:00 UTC 2023
    - 7K bytes
    - Viewed (0)
  3. src/syscall/syscall_linux_mips64x.go

    }
    
    //sys	Utime(path string, buf *Utimbuf) (err error)
    //sys	utimes(path string, times *[2]Timeval) (err error)
    
    //go:nosplit
    func rawSetrlimit(resource int, rlim *Rlimit) Errno {
    	_, _, errno := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    	return errno
    }
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. src/syscall/syscall_js.go

    func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. src/syscall/syscall_netbsd.go

    func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno)
    func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    
    const (
    	_SYS_DUP3         = SYS_DUP3
    	_F_DUP2FD_CLOEXEC = 0
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  6. src/syscall/syscall_linux_mipsx.go

    		return EINVAL
    	}
    	if rlim.Max == rlimInf64 {
    		rl.Max = rlimInf32
    	} else if rlim.Max < uint64(rlimInf32) {
    		rl.Max = uint32(rlim.Max)
    	} else {
    		return EINVAL
    	}
    
    	_, _, errno = RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    	return errno
    }
    
    func (r *PtraceRegs) PC() uint64 { return uint64(r.Regs[64]) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  7. src/syscall/syscall_wasip1.go

    func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. src/syscall/exec_libc.go

    // ../runtime/syscall_solaris.go, rather than generated libc wrappers
    // because we need to avoid lazy-loading the functions (might malloc,
    // split the stack, or acquire mutexes). We can't call RawSyscall
    // because it's not safe even for BSD-subsystem calls.
    //
    //go:norace
    func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr *ProcAttr, sys *SysProcAttr, pipe int) (pid int, err Errno) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux_test.go

    		}
    	}
    }
    
    func TestSyscallNoError(t *testing.T) {
    	// On Linux there are currently no syscalls which don't fail and return
    	// a value larger than 0xfffffffffffff001 so we could test RawSyscall
    	// vs. RawSyscallNoError on 64bit architectures.
    	if unsafe.Sizeof(uintptr(0)) != 4 {
    		t.Skip("skipping on non-32bit architecture")
    	}
    
    	// See https://golang.org/issue/35422
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. src/syscall/syscall_linux_386.go

    		return EINVAL
    	}
    	if rlim.Max == rlimInf64 {
    		rl.Max = rlimInf32
    	} else if rlim.Max < uint64(rlimInf32) {
    		rl.Max = uint32(rlim.Max)
    	} else {
    		return EINVAL
    	}
    
    	_, _, errno = RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    	return errno
    }
    
    // Underlying system call writes to newoffset via pointer.
    // Implemented in assembly to avoid allocation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top