Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for writable (0.97 sec)

  1. src/cmd/cgo/internal/testplugin/testdata/issue44956/main.go

    // Copyright 2021 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.
    
    // Issue 44956: writable static temp is not exported correctly.
    // In the test below, package base is
    //
    //     X = &map{...}
    //
    // which compiles to
    //
    //     X = &stmp           // static
    //     stmp = makemap(...) // in init function
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/carchive_test.go

    		if _, err := os.Stat("/etc/alpine-release"); err == nil {
    			globalSkip = func(t *testing.T) { t.Skip("skipping failing test on alpine - go.dev/issue/19938") }
    			return m.Run()
    		}
    	}
    
    	// We need a writable GOPATH in which to run the tests.
    	// Construct one in a temporary directory.
    	var err error
    	GOPATH, err = os.MkdirTemp("", "carchive_test")
    	if err != nil {
    		log.Panic(err)
    	}
    	if testWork {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/noder/noder.go

    	base.Timer.AddEvent(int64(lines), "lines")
    
    	unified(m, noders)
    }
    
    // trimFilename returns the "trimmed" filename of b, which is the
    // absolute filename after applying -trimpath processing. This
    // filename form is suitable for use in object files and export data.
    //
    // If b's filename has already been trimmed (i.e., because it was read
    // in from an imported package's export data), then the filename is
    // returned unchanged.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  4. lib/time/mkzip.go

    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    // Mkzip writes a zoneinfo.zip with the content of the current directory
    // and its subdirectories, with no compression, suitable for package time.
    //
    // Usage:
    //
    //	go run ../../mkzip.go ../../zoneinfo.zip
    //
    // We use this program instead of 'zip -0 -r ../../zoneinfo.zip *' to get
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:32:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/regalloc.go

    					// be plain blocks, so check edge pb->pb.Preds instead of edge pb->b.
    					// TODO: improve the prediction of the likely predecessor. The following
    					// method is only suitable for the simplest cases. For complex cases,
    					// the prediction may be inaccurate, but this does not affect the
    					// correctness of the program.
    					// According to the layout algorithm, the predecessor with the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:49:56 UTC 2023
    - 87.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "StringLen", argLength: 1, typ: "Int"},     // len(arg0)
    
    	// Interfaces
    	{name: "IMake", argLength: 2},                // arg0=itab, arg1=data
    	{name: "ITab", argLength: 1, typ: "Uintptr"}, // arg0=interface, returns itable field
    	{name: "IData", argLength: 1},                // arg0=interface, returns data field
    
    	// Structs
    	{name: "StructMake0"},                              // Returns struct with 0 fields.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testshared/shared_test.go

    		if err := os.Remove(path); err != nil {
    			t.Fatal(err)
    		}
    	}
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// If we're replacing a symlink to a read-only file, make the new file
    	// user-writable.
    	perm := fi.Mode().Perm() | 0200
    
    	if err := os.WriteFile(path, data, perm); err != nil {
    		t.Fatal(err)
    	}
    	if err := os.Chtimes(path, nearlyNew, nearlyNew); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  8. src/archive/tar/common.go

    	// This package transparently handles these types.
    	TypeGNULongName = 'L'
    	TypeGNULongLink = 'K'
    )
    
    // Keywords for PAX extended header records.
    const (
    	paxNone     = "" // Indicates that no PAX key is suitable
    	paxPath     = "path"
    	paxLinkpath = "linkpath"
    	paxSize     = "size"
    	paxUid      = "uid"
    	paxGid      = "gid"
    	paxUname    = "uname"
    	paxGname    = "gname"
    	paxMtime    = "mtime"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/print.go

    }
    
    func (f *Func) String() string {
    	var buf strings.Builder
    	p := stringFuncPrinter{w: &buf, printDead: true}
    	fprintFunc(p, f)
    	return buf.String()
    }
    
    // rewriteHash returns a hash of f suitable for detecting rewrite cycles.
    func (f *Func) rewriteHash() string {
    	h := notsha256.New()
    	p := stringFuncPrinter{w: h, printDead: false}
    	fprintFunc(p, f)
    	return fmt.Sprintf("%x", h.Sum(nil))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testplugin/plugin_test.go

    	if op != "tool" {
    		flags = []string{"-gcflags", gcflags}
    	}
    	return run(t, filepath.Join(goroot, "bin", "go"), append(append([]string{op}, flags...), args...)...)
    }
    
    // escape converts a string to something suitable for a shell command line.
    func escape(s string) string {
    	s = strings.Replace(s, "\\", "\\\\", -1)
    	s = strings.Replace(s, "'", "\\'", -1)
    	// Conservative guess at characters that will force quoting
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top