- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 98 for O_WRONLY (0.17 sec)
-
src/net/splice_linux_test.go
actualSize := tc.totalSize if tc.limitReadSize > 0 { if tc.limitReadSize < actualSize { actualSize = tc.limitReadSize } } f, err := os.OpenFile(os.DevNull, os.O_WRONLY, 0) if err != nil { t.Fatal(err) } defer f.Close() client, server := spawnTestSocketPair(t, tc.upNet) defer server.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 14.5K bytes - Viewed (0) -
src/syscall/syscall_js.go
} return "signal " + itoa.Itoa(int(s)) } var signals = [...]string{} // File system const ( Stdin = 0 Stdout = 1 Stderr = 2 ) const ( O_RDONLY = 0 O_WRONLY = 1 O_RDWR = 2 O_CREAT = 0100 O_CREATE = O_CREAT O_TRUNC = 01000 O_APPEND = 02000 O_EXCL = 0200 O_SYNC = 010000 O_CLOEXEC = 0 ) const ( F_DUPFD = 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 6.7K bytes - Viewed (0) -
src/cmd/internal/buildid/buildid_test.go
if err != nil { t.Errorf("FindAndHash(%s): %v", f, err) continue } if err := os.WriteFile(tmp, data, 0666); err != nil { t.Error(err) continue } tf, err := os.OpenFile(tmp, os.O_WRONLY, 0) if err != nil { t.Error(err) continue } err = Rewrite(tf, m, newID) err2 := tf.Close() if err != nil { t.Errorf("Rewrite(%s): %v", f, err) continue } if err2 != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:28 UTC 2024 - 6.6K bytes - Viewed (0) -
src/os/file.go
) // Flags to OpenFile wrapping those of the underlying system. Not all // flags may be implemented on a given system. const ( // Exactly one of O_RDONLY, O_WRONLY, or O_RDWR must be specified. O_RDONLY int = syscall.O_RDONLY // open the file read-only. O_WRONLY int = syscall.O_WRONLY // open the file write-only. O_RDWR int = syscall.O_RDWR // open the file read-write. // The remaining values may be or'ed in to control behavior.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:37 UTC 2024 - 25.4K bytes - Viewed (0) -
src/syscall/fs_wasip1.go
oflags |= OFLAG_TRUNC } if (openmode & O_EXCL) != 0 { oflags |= OFLAG_EXCL } var rights rights switch openmode & (O_RDONLY | O_WRONLY | O_RDWR) { case O_RDONLY: rights = fileRights & ^writeRights case O_WRONLY: rights = fileRights & ^readRights case O_RDWR: rights = fileRights } var fdflags fdflags if (openmode & O_APPEND) != 0 { fdflags |= FDFLAG_APPEND
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24.1K bytes - Viewed (0) -
src/os/file_windows.go
r, e := syscall.Open(path, flag|syscall.O_CLOEXEC, syscallMode(perm)) if e != nil { // We should return EISDIR when we are trying to open a directory with write access. if e == syscall.ERROR_ACCESS_DENIED && (flag&O_WRONLY != 0 || flag&O_RDWR != 0) { pathp, e1 := syscall.UTF16PtrFromString(path) if e1 == nil { var fa syscall.Win32FileAttributeData
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 15:38:38 UTC 2024 - 13.4K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/funcprops_test.go
// output from a "-d=dumpinlfuncprops=..." compilation. func genExpected(td string, testcase string) (string, error) { epath := filepath.Join(td, testcase+".expected") outf, err := os.OpenFile(epath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644) if err != nil { return "", err } gopath := "testdata/props/" + testcase + ".go" content, err := os.ReadFile(gopath) if err != nil { return "", err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 20:15:25 UTC 2023 - 15K bytes - Viewed (0) -
src/syscall/exec_plan9.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 13.3K bytes - Viewed (0) -
src/os/example_test.go
if err := f.Close(); err != nil { log.Fatal(err) } } func ExampleOpenFile_append() { // If the file doesn't exist, create it, or append to the file f, err := os.OpenFile("access.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) if err != nil { log.Fatal(err) } if _, err := f.Write([]byte("appended some data\n")); err != nil { f.Close() // ignore error; Write error takes precedence log.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 17:35:49 UTC 2024 - 8.4K bytes - Viewed (0) -
internal/logger/logrotate.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.8K bytes - Viewed (0)