Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 192 for 0640 (0.04 sec)

  1. src/go/doc/testdata/blank.go

    	tweedledee T = iota
    	tweedledum
    	C1
    	C2
    	alice
    	C3
    	redQueen int = iota
    	C4
    )
    
    // Constants with a single type that is not propagated.
    const (
    	zero     os.FileMode = 0
    	Default              = 0644
    	Useless              = 0312
    	WideOpen             = 0777
    )
    
    // Constants with an imported type that is propagated.
    const (
    	zero os.FileMode = 0
    	M1
    	M2
    	M3
    )
    
    // Package constants.
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 18:01:14 UTC 2017
    - 1.1K bytes
    - Viewed (0)
  2. test/fixedbugs/issue22660.go

    	path := filepath.Join("users", "xxx", "go")
    	var src bytes.Buffer
    	fmt.Fprintf(&src, "//line %s:1\n", filepath.Join(path, "foo.go"))
    
    	if err := ioutil.WriteFile(f.Name(), src.Bytes(), 0660); err != nil {
    		log.Fatal(err)
    	}
    
    	out, err := exec.Command("go", "tool", "compile", "-p=p", fmt.Sprintf("-trimpath=%s", path), f.Name()).CombinedOutput()
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. pkg/util/flock/flock_unix.go

    import "golang.org/x/sys/unix"
    
    // Acquire acquires a lock on a file for the duration of the process. This method
    // is reentrant.
    func Acquire(path string) error {
    	fd, err := unix.Open(path, unix.O_CREAT|unix.O_RDWR|unix.O_CLOEXEC, 0600)
    	if err != nil {
    		return err
    	}
    
    	// We don't need to close the fd since we should hold
    	// it until the process exits.
    
    	return unix.Flock(fd, unix.LOCK_EX)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/arm64/asm_arm64_test.go

    	}
    	defer os.RemoveAll(dir)
    
    	// generate a very large function
    	buf := bytes.NewBuffer(make([]byte, 0, 7000000))
    	gen(buf)
    
    	tmpfile := filepath.Join(dir, "x.s")
    	err = os.WriteFile(tmpfile, buf.Bytes(), 0644)
    	if err != nil {
    		t.Fatalf("can't write output: %v\n", err)
    	}
    
    	pattern := `0x0080\s00128\s\(.*\)\tMOVD\t\$3,\sR3`
    
    	// assemble generated file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:46:11 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  5. src/crypto/tls/testdata/Server-TLSv12-Ed25519

    00000190  7d a3 47 cd 62 43 15 28  da ac 5f bb 29 07 30 ff  |}.G.bC.(.._.).0.|
    000001a0  f6 84 af c4 cf c2 ed 90  99 5f 58 cb 3b 74 08 07  |........._X.;t..|
    000001b0  00 40 a2 12 66 be 81 b1  24 93 f2 e1 60 9f c4 13  |.@..f...$...`...|
    000001c0  04 3f 39 77 8f fe e4 33  5b f7 9d 84 f5 0f 96 aa  |.?9w...3[.......|
    000001d0  a0 d6 9d da ae b2 eb 76  64 02 82 58 d4 bc 5a 44  |.......vd..X..ZD|
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:13:30 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonRegistryStateProbe.groovy

            if (OperatingSystem.current().isLinux() || OperatingSystem.current().isMacOsX()) {
                def stat = NativeServicesTestFixture.instance.get(Stat)
                assert stat.getUnixMode(registryFile) == 0600 // user read-write
                assert stat.getUnixMode(registryFile.parentFile) == 0700 // user read-write-execute
            }
        }
    
        @Override
        State getCurrentState() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. pkg/volume/projected/projected_test.go

    			secret: &v1.Secret{
    				Data: map[string][]byte{
    					"foo": []byte("foo"),
    					"bar": []byte("bar"),
    				},
    			},
    			mode: 0644,
    			payload: map[string]util.FileProjection{
    				"foo": {Data: []byte("foo"), Mode: 0644},
    				"bar": {Data: []byte("bar"), Mode: 0644},
    			},
    			success: true,
    		},
    		{
    			name: "basic 1",
    			mappings: []v1.KeyToPath{
    				{
    					Key:  "foo",
    					Path: "path/to/foo.txt",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 40.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/clobberdead_test.go

    		// takes a while.
    		t.Skip("skip in short mode")
    	}
    	testenv.MustHaveGoRun(t)
    	t.Parallel()
    
    	tmpdir := t.TempDir()
    	src := filepath.Join(tmpdir, "x.go")
    	err := os.WriteFile(src, []byte(helloSrc), 0644)
    	if err != nil {
    		t.Fatalf("write file failed: %v", err)
    	}
    
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "run", "-gcflags=all="+flag, src)
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:19:15 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  9. src/runtime/trace/trace_test.go

    	}
    	Stop()
    	Stop()
    }
    
    func saveTrace(t *testing.T, buf *bytes.Buffer, name string) {
    	if !*saveTraces {
    		return
    	}
    	if err := os.WriteFile(name+".trace", buf.Bytes(), 0600); err != nil {
    		t.Errorf("failed to write trace file: %s", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/ChmodBenchmark.java

    @Fork(1)
    @Warmup(iterations = 10)
    @Measurement(iterations = 10)
    @State(Scope.Benchmark)
    @SuppressWarnings("OctalInteger")
    public class ChmodBenchmark {
        private static final int DEFAULT_JAVA6_FILE_PERMISSIONS = 0644;
        private static final Set<PosixFilePermission> DEFAULT_JAVA7_FILE_PERMISSIONS = EnumSet.of(
            OWNER_READ, OWNER_WRITE, GROUP_READ, OTHERS_READ
        );
    
        private static final int WEIRD_JAVA6_FILE_PERMISSIONS = 0123;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 12:13:32 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top