Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 109 for linkname (2.02 sec)

  1. src/syscall/syscall_linux.go

    	"internal/itoa"
    	runtimesyscall "internal/runtime/syscall"
    	"runtime"
    	"unsafe"
    )
    
    // Pull in entersyscall/exitsyscall for Syscall/Syscall6.
    //
    // Note that this can't be a push linkname because the runtime already has a
    // nameless linkname to export to assembly here and in x/sys. Additionally,
    // entersyscall fetches the caller PC and SP and thus can't have a wrapper
    // inbetween.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  2. src/runtime/signal_unix.go

    // sigpanic calls can be injected.
    //
    // The signal handler must not inject a call to sigpanic if
    // getg().throwsplit, since sigpanic may need to grow the stack.
    //
    // This is exported via linkname to assembly in runtime/cgo.
    //
    //go:linkname sigpanic
    func sigpanic() {
    	gp := getg()
    	if !canpanic() {
    		throw("unexpected signal during runtime execution")
    	}
    
    	switch gp.sig {
    	case _SIGBUS:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. src/os/os_windows_test.go

    	// a non-nil error for it, and Stat should return results identical to Lstat.
    	linkName, err := os.Readlink(pythonPath)
    	if err == nil {
    		t.Errorf("os.Readlink(%q) = %q, but expected an error\n(should be an APPEXECLINK reparse point, not a symlink)", pythonPath, linkName)
    	}
    
    	sfi, err := os.Stat(pythonPath)
    	if err != nil {
    		t.Fatalf("Stat %s: %v", pythonPath, err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/objfile.go

    		flag2 |= goobj.SymFlagDict
    	}
    	if s.IsPkgInit() {
    		flag2 |= goobj.SymFlagPkgInit
    	}
    	if s.IsLinkname() || (w.ctxt.IsAsm && name != "") || name == "main.main" {
    		// Assembly reference is treated the same as linkname,
    		// but not for unnamed (aux) symbols.
    		// The runtime linknames main.main.
    		flag2 |= goobj.SymFlagLinkname
    	}
    	if s.ABIWrapper() {
    		flag2 |= goobj.SymFlagABIWrapper
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  5. src/runtime/runtime2.go

    	processorVersionInfo uint32
    	isIntel              bool
    )
    
    // set by cmd/link on arm systems
    // accessed using linkname by internal/runtime/atomic.
    //
    // goarm should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/creativeprojects/go-selfupdate
    //
    // Do not remove or change the type signature.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  6. src/runtime/panic.go

    // The implementation of the predeclared function panic.
    // The compiler emits calls to this function.
    //
    // gopanic should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - go.undefinedlabs.com/scopeagent
    //   - github.com/goplus/igop
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  7. src/net/textproto/reader.go

    // license that can be found in the LICENSE file.
    
    package textproto
    
    import (
    	"bufio"
    	"bytes"
    	"errors"
    	"fmt"
    	"io"
    	"math"
    	"strconv"
    	"strings"
    	"sync"
    	_ "unsafe" // for linkname
    )
    
    // TODO: This should be a distinguishable error (ErrMessageTooLarge)
    // to allow mime/multipart to detect it.
    var errMessageTooLarge = errors.New("message too large")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  8. src/runtime/cgocall.go

    // platforms. Syscalls may have untyped arguments on the stack, so
    // it's not safe to grow or scan the stack.
    //
    // cgocall should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/ebitengine/purego
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname cgocall
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  9. src/runtime/chan.go

    	}
    	return c
    }
    
    // chanbuf(c, i) is pointer to the i'th slot in the buffer.
    //
    // chanbuf should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/fjl/memsize
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname chanbuf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  10. src/runtime/stack.go

    	// you may have made a copy of a stackObjectRecord.
    	// You must use the original pointer.
    	res := mod.rodata + uintptr(r.gcdataoff)
    	return (*byte)(unsafe.Pointer(res))
    }
    
    // This is exported as ABI0 via linkname so obj can call it.
    //
    //go:nosplit
    //go:linkname morestackc
    func morestackc() {
    	throw("attempt to execute system stack code on user stack")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top