- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 51 for 0o377 (0.04 sec)
-
src/strconv/atoi_test.go
{"0200000000000000000000", 0, 1 << 61, nil}, {"0b", 0, 0, ErrSyntax}, {"0B", 0, 0, ErrSyntax}, {"0b101", 0, 5, nil}, {"0B101", 0, 5, nil}, {"0o", 0, 0, ErrSyntax}, {"0O", 0, 0, ErrSyntax}, {"0o377", 0, 255, nil}, {"0O377", 0, 255, nil}, // underscores allowed with base == 0 only {"1_2_3_4_5", 0, 12345, nil}, // base 0 => 10 {"_12345", 0, 0, ErrSyntax}, {"1__2345", 0, 0, ErrSyntax}, {"12345_", 0, 0, ErrSyntax},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 21 05:09:21 UTC 2023 - 17.1K bytes - Viewed (0) -
src/fmt/scan_test.go
{"0x_1_0\n", &intVal, 0x10}, {"-0x10\n", &intVal, -0x10}, {"0377\n", &intVal, 0377}, {"0_3_7_7\n", &intVal, 0377}, {"0o377\n", &intVal, 0377}, {"0o_3_7_7\n", &intVal, 0377}, {"-0377\n", &intVal, -0377}, {"-0o377\n", &intVal, -0377}, {"0\n", &uintVal, uint(0)}, {"000\n", &uintVal, uint(0)}, {"0x10\n", &uintVal, uint(0x10)}, {"0377\n", &uintVal, uint(0377)}, {"22\n", &int8Val, int8(22)},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 20:25:13 UTC 2023 - 39.3K bytes - Viewed (0) -
src/html/template/exec_test.go
{"binary _", "{{print 0b_1_0_1}}", "5", tVal, true}, {"BINARY", "{{print 0B101}}", "5", tVal, true}, {"octal0", "{{print 0377}}", "255", tVal, true}, {"octal", "{{print 0o377}}", "255", tVal, true}, {"octal _", "{{print 0o_3_7_7}}", "255", tVal, true}, {"OCTAL", "{{print 0O377}}", "255", tVal, true}, {"hex", "{{print 0x123}}", "291", tVal, true}, {"hex _", "{{print 0x1_23}}", "291", tVal, true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 57.6K bytes - Viewed (0) -
src/text/template/exec_test.go
{"binary _", "{{print 0b_1_0_1}}", "5", tVal, true}, {"BINARY", "{{print 0B101}}", "5", tVal, true}, {"octal0", "{{print 0377}}", "255", tVal, true}, {"octal", "{{print 0o377}}", "255", tVal, true}, {"octal _", "{{print 0o_3_7_7}}", "255", tVal, true}, {"OCTAL", "{{print 0O377}}", "255", tVal, true}, {"hex", "{{print 0x123}}", "291", tVal, true}, {"hex _", "{{print 0x1_23}}", "291", tVal, true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0) -
cmd/os-reliable_test.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Sep 13 15:14:36 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/go/internal/toolchain/umask_unix.go
// so set it conservatively and then restore the original one. m := syscall.Umask(0o777) syscall.Umask(m) // restore bits if m&0o22 == 0o22 { // group and world are unwritable by default return 0o700 } if m&0o2 == 0o2 { // group is writable by default, but not world return 0o770 } return 0o777 // everything is writable by default
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 20 15:44:08 UTC 2023 - 896 bytes - Viewed (0) -
cmd/os-readdir_test.go
} // Test to read non-empty directory with directories and files. func setupTestReadDirGeneric(t *testing.T) (testResults []result) { dir := t.TempDir() if err := os.MkdirAll(filepath.Join(dir, "mydir"), 0o777); err != nil { t.Fatalf("Unable to create prefix directory \"mydir\", %s", err) } entries := []string{"mydir/"} for i := 0; i < 10; i++ { name := fmt.Sprintf("file-%d", i)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 7.5K bytes - Viewed (0) -
pkg/filewatcher/filewatcher_test.go
// // <watchDir>/data1/test.conf func newSymlinkedWatchFile(t *testing.T) (string, string) { g := NewGomegaWithT(t) watchDir := t.TempDir() dataDir1 := path.Join(watchDir, "data1") err := os.Mkdir(dataDir1, 0o777) g.Expect(err).NotTo(HaveOccurred()) realTestFile := path.Join(dataDir1, "test.conf") t.Logf("Real test file location: %s\n", realTestFile) err = os.WriteFile(realTestFile, []byte("foo: bar\n"), 0o640)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 7.9K bytes - Viewed (0) -
src/os/types.go
// Mask for the type bits. For regular files, none will be set. ModeType = fs.ModeType ModePerm = fs.ModePerm // Unix permission bits, 0o777 ) func (fs *fileStat) Name() string { return fs.name } func (fs *fileStat) IsDir() bool { return fs.Mode().IsDir() } // SameFile reports whether fi1 and fi2 describe the same file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 20:52:06 UTC 2024 - 2.9K bytes - Viewed (0) -
cmd/xl-storage_unix_test.go
st, err := os.Stat(path.Join(tmpPath, testCase.volName)) if err != nil { t.Fatalf("Stat failed with %s expected to pass.", err) } // Get umask of the bits stored. currentUmask := 0o777 - uint32(st.Mode().Perm()) // Verify if umask is correct. if int(currentUmask) != testCase.expectedUmask { t.Fatalf("Umask check failed expected %d, got %d", testCase.expectedUmask, currentUmask) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jul 25 19:37:26 UTC 2022 - 3.4K bytes - Viewed (0)