Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 215 for linknames (0.13 sec)

  1. test/linkname.go

    // license that can be found in the LICENSE file.
    
    // Tests that linknames are included in export data (issue 18167).
    package ignored
    
    /*
    Without CL 33911, this test would fail with the following error:
    
    main.main: relocation target linkname2.byteIndex not defined
    main.main: undefined: "linkname2.byteIndex"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 28 19:27:20 UTC 2019
    - 456 bytes
    - Viewed (0)
  2. src/syscall/badlinkname_unix.go

    package syscall
    
    import _ "unsafe"
    
    // As of Go 1.22, the symbols below are found to be pulled via
    // linkname in the wild. We provide a push linkname here, to
    // keep them accessible with pull linknames.
    // This may change in the future. Please do not depend on them
    // in new code.
    
    // golang.org/x/sys linknames getsockopt.
    // Do not remove or change the type signature.
    //
    //go:linkname getsockopt
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 679 bytes
    - Viewed (0)
  3. src/runtime/sys_openbsd3.go

    // and we need to know whether to check 32 or 64 bits of the result.
    // (Some libc functions that return 32 bits put junk in the upper 32 bits of AX.)
    
    // golang.org/x/sys linknames syscall_syscall
    // (in addition to standard package syscall).
    // Do not remove or change the type signature.
    //
    //go:linkname syscall_syscall syscall.syscall
    //go:nosplit
    //go:cgo_unsafe_args
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. src/runtime/badlinkname_linux.go

    //go:build amd64 || arm64
    
    package runtime
    
    import _ "unsafe"
    
    // As of Go 1.22, the symbols below are found to be pulled via
    // linkname in the wild. We provide a push linkname here, to
    // keep them accessible with pull linknames.
    // This may change in the future. Please do not depend on them
    // in new code.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:47:42 UTC 2024
    - 506 bytes
    - Viewed (0)
  5. src/reflect/badlinkname.go

    // It is no longer used by this package and is here entirely for the
    // linkname uses.
    //
    //go:linkname unusedIfaceIndir reflect.ifaceIndir
    func unusedIfaceIndir(t *abi.Type) bool {
    	return t.Kind_&abi.KindDirectIface == 0
    }
    
    //go:linkname valueInterface
    
    // The compiler doesn't allow linknames on methods, for good reasons.
    // We use this trick to push linknames of the methods.
    // Do not call them in this package.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. src/runtime/sys_darwin.go

    	exitsyscall()
    	return args.r1, args.r2, args.err
    }
    func syscallX()
    
    // golang.org/x/sys linknames syscall.syscall6
    // (in addition to standard package syscall).
    // Do not remove or change the type signature.
    //
    // syscall.syscall6 is meant for package syscall (and x/sys),
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/tetratelabs/wazero
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. src/cmd/link/testdata/linkname/push.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // "Push" linknames are ok.
    
    package main
    
    import (
    	"cmd/link/testdata/linkname/p"
    	_ "unsafe"
    )
    
    // Push f1 to p.
    //
    //go:linkname f1 cmd/link/testdata/linkname/p.f1
    func f1() { f2() }
    
    // f2 is pushed from p.
    //
    //go:linkname f2
    func f2()
    
    func main() {
    	p.F()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 426 bytes
    - Viewed (0)
  8. src/syscall/linkname_bsd.go

    //go:build darwin || dragonfly || freebsd || netbsd || openbsd
    
    package syscall
    
    import _ "unsafe"
    
    // used by internal/syscall/unix
    //go:linkname ioctlPtr
    
    // golang.org/x/net linknames sysctl.
    // Do not remove or change the type signature.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 426 bytes
    - Viewed (0)
  9. src/cmd/link/testdata/linkname/badlinkname.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Existing pull linknames in the wild are allowed _for now_,
    // for legacy reason. Test a function and a method.
    // NOTE: this may not be allowed in the future. Don't do this!
    
    package main
    
    import (
    	_ "reflect"
    	"unsafe"
    )
    
    //go:linkname noescape runtime.noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:48:00 UTC 2024
    - 620 bytes
    - Viewed (0)
  10. src/syscall/mksyscall_libc.pl

    		print STDERR "$ARGV:$.: malformed parameter: $p\n";
    		$errors = 1;
    		return ("xx", "int");
    	}
    	return ($1, $2);
    }
    
    my $package = "";
    my $text = "";
    my $dynimports = "";
    my $linknames = "";
    my @vars = ();
    while(<>) {
    	chomp;
    	s/\s+/ /g;
    	s/^\s+//;
    	s/\s+$//;
    	$package = $1 if !$package && /^package (\S+)$/;
    	my $nonblock = /^\/\/sysnb /;
    	next if !/^\/\/sys / && !$nonblock;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 11:28:51 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top