Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for funcptrtest (0.11 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go

    //go:nosplit
    func get_FlistxattrAddr() *(func(fd int, dest []byte) (sz int, err error))
    
    var Flistxattr = enter_Flistxattr
    
    func enter_Flistxattr(fd int, dest []byte) (sz int, err error) {
    	funcref := get_FlistxattrAddr()
    	if funcptrtest(GetZosLibVec()+SYS___FLISTXATTR_A<<4, "") == 0 {
    		*funcref = impl_Flistxattr
    	} else {
    		*funcref = error_Flistxattr
    	}
    	return (*funcref)(fd, dest)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 88.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    // good pointer returns 0
    // bad pointer returns 1
    
    // TODO: currently mksyscall_zos_s390x.go generate empty string for funcName
    // have correct funcName pass to the funcptrtest function
    func funcptrtest(funcptr uintptr, funcName string) uint64 {
    	entrypoint, err := safeload(funcptr + entrypointLocationOffset)
    	if err != 0 {
    		return 1
    	}
    
    	ppaoff := getPpaOffset(funcptr)
    	if ppaoff == -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  3. src/internal/abi/export_test.go

    // license that can be found in the LICENSE file.
    
    package abi
    
    func FuncPCTestFn()
    
    var FuncPCTestFnAddr uintptr // address of FuncPCTestFn, directly retrieved from assembly
    
    //go:noinline
    func FuncPCTest() uintptr {
    	return FuncPCABI0(FuncPCTestFn)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 23 21:05:39 UTC 2021
    - 362 bytes
    - Viewed (0)
  4. src/internal/abi/abi_test.go

    	"strings"
    	"testing"
    )
    
    func TestFuncPC(t *testing.T) {
    	// Test that FuncPC* can get correct function PC.
    	pcFromAsm := abi.FuncPCTestFnAddr
    
    	// Test FuncPC for locally defined function
    	pcFromGo := abi.FuncPCTest()
    	if pcFromGo != pcFromAsm {
    		t.Errorf("FuncPC returns wrong PC, want %x, got %x", pcFromAsm, pcFromGo)
    	}
    
    	// Test FuncPC for imported function
    	pcFromGo = abi.FuncPCABI0(abi.FuncPCTestFn)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top