Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 663 for isarchive (0.2 sec)

  1. src/cmd/go/testdata/script/build_output.txt

    go build -o myatomic.a sync/atomic
    exists myatomic.a
    exec $GOBIN/isarchive myatomic.a
    ! exists atomic
    ! exists atomic.a
    ! exists atomic.exe
    
    ! go build -o whatever cmd/gofmt sync/atomic
    stderr 'multiple packages'
    
    -- go.mod --
    module m
    
    go 1.16
    -- x.go --
    package main
    
    func main() {}
    -- p.go --
    package p
    -- isarchive/isarchive.go --
    package main
    
    import (
    	"bytes"
    	"fmt"
    	"io"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  2. src/runtime/cgo/gcc_aix_ppc64.c

     * adding special code in cmd/link.
     * However, it will be called for every Go programs which has cgo.
     * Inside _rt0_ppc64_aix_lib(), runtime.isarchive is checked in order
     * to know if this program is a c-archive or a simple cgo program.
     * If it's not set, _rt0_ppc64_ax_lib() returns directly.
     */
    static void libinit() {
    	_rt0_ppc64_aix_lib();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 24 22:38:02 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. src/runtime/fds_unix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package runtime
    
    func checkfds() {
    	if islibrary || isarchive {
    		// If the program is actually a library, presumably being consumed by
    		// another program, we don't want to mess around with the file
    		// descriptors.
    		return
    	}
    
    	const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:20:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. src/runtime/signal_unix.go

    //go:nosplit
    //go:nowritebarrierrec
    func initsig(preinit bool) {
    	if !preinit {
    		// It's now OK for signal handlers to run.
    		signalsOK = true
    	}
    
    	// For c-archive/c-shared this is called by libpreinit with
    	// preinit == true.
    	if (isarchive || islibrary) && !preinit {
    		return
    	}
    
    	for i := uint32(0); i < _NSIG; i++ {
    		t := &sigtable[i]
    		if t.flags == 0 || t.flags&_SigDefault != 0 {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  5. src/runtime/os_freebsd.go

    	// signal stack on the main thread when not running in a
    	// library. This can be removed when we are confident that all
    	// FreeBSD users are running a patched kernel. See issue #15658.
    	if gp := getg(); !isarchive && !islibrary && gp.m == &m0 && gp == gp.m.g0 {
    		st := stackt{ss_flags: _SS_DISABLE}
    		sigaltstack(&st, nil)
    	}
    
    	minitSignals()
    }
    
    // Called from dropm to undo the effect of an minit.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  6. src/runtime/signal_windows.go

    //
    // It is nosplit for the same reason as exceptionhandler.
    //
    //go:nosplit
    func lastcontinuehandler(info *exceptionrecord, r *context, gp *g) int32 {
    	if islibrary || isarchive {
    		// Go DLL/archive has been loaded in a non-go program.
    		// If the exception does not originate from go, the go runtime
    		// should not take responsibility of crashing the process.
    		return _EXCEPTION_CONTINUE_SEARCH
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 20:32:29 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  7. src/runtime/runtime1.go

    			t |= uint32(n) << tracebackShift
    		}
    	}
    	// when C owns the process, simply exit'ing the process on fatal errors
    	// and panics is surprising. Be louder and abort instead.
    	if islibrary || isarchive {
    		t |= tracebackCrash
    	}
    
    	t |= traceback_env
    
    	atomic.Store(&traceback_cache, t)
    }
    
    // Poor mans 64-bit division.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  8. src/runtime/symtab.go

    				println("\t", hex(datap.ftab[j].entryoff), funcname(funcInfo{(*_func)(unsafe.Pointer(&datap.pclntable[datap.ftab[j].funcoff])), datap}))
    			}
    			if GOOS == "aix" && isarchive {
    				println("-Wl,-bnoobjreorder is mandatory on aix/ppc64 with c-archive")
    			}
    			throw("invalid runtime symbol table")
    		}
    	}
    
    	min := datap.textAddr(datap.ftab[0].entryoff)
    	max := datap.textAddr(datap.ftab[nftab].entryoff)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  9. src/runtime/runtime2.go

    //go:linkname goarm
    var (
    	goarm       uint8
    	goarmsoftfp uint8
    )
    
    // Set by the linker so the runtime can determine the buildmode.
    var (
    	islibrary bool // -buildmode=c-shared
    	isarchive bool // -buildmode=c-archive
    )
    
    // Must agree with internal/buildcfg.FramePointerEnabled.
    const framepointer_enabled = GOARCH == "amd64" || GOARCH == "arm64"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  10. src/cmd/distpack/archive.go

    	"path"
    	"path/filepath"
    	"sort"
    	"strings"
    	"time"
    )
    
    // An Archive describes an archive to write: a collection of files.
    // Directories are implied by the files and not explicitly listed.
    type Archive struct {
    	Files []File
    }
    
    // A File describes a single file to write to an archive.
    type File struct {
    	Name string    // name in archive
    	Time time.Time // modification time
    	Mode fs.FileMode
    	Size int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 17:37:52 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top