- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 129 for O_WRONLY (0.17 sec)
-
src/os/exec_plan9.go
} return newPIDProcess(pid), nil } func (p *Process) writeProcFile(file string, data string) error { f, e := OpenFile("/proc/"+itoa.Itoa(p.Pid)+"/"+file, O_WRONLY, 0) if e != nil { return e } defer f.Close() _, e = f.Write([]byte(data)) return e } func (p *Process) signal(sig Signal) error { switch p.pidStatus() { case statusDone:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 3.4K bytes - Viewed (0) -
cmd/prune-junit-xml/prunexml.go
if err != nil { panic(err) } pruneXML(suites, *maxTextSize*1e6) // convert MB into bytes (roughly!) if *pruneTests { pruneTESTS(suites) } xmlWriter, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0666) if err != nil { panic(err) } defer xmlWriter.Close() err = streamXML(xmlWriter, suites) if err != nil { panic(err) } fmt.Println("done.") } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 12:26:00 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/file/file.go
if err != nil { return err } defer in.Close() perm, err := in.Stat() if err != nil { return err } out, err := os.OpenFile(filepath.Join(targetDir, targetFilename), os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm.Mode()) if err != nil { return err } defer out.Close() if _, err := io.Copy(out, in); err != nil { return err } return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 11 21:42:29 UTC 2024 - 3K bytes - Viewed (0) -
src/runtime/write_err_android.go
clear(dst) writePos = 0 } } } func initLegacy() { // In legacy mode, logs are written to /dev/log/main writeFD = uintptr(open(&writePath[0], 0x1 /* O_WRONLY */, 0)) if writeFD == 0 { // It is hard to do anything here. Write to stderr just // in case user has root on device and has run // adb shell setprop log.redirect-stdio true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 4.7K bytes - Viewed (0) -
src/syscall/exec_pdeathsig_test.go
src, err := os.Open(os.Args[0]) if err != nil { t.Fatalf("cannot open binary %q, %v", os.Args[0], err) } defer src.Close() dst, err := os.OpenFile(tmpBinary, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0755) if err != nil { t.Fatalf("cannot create temporary binary %q, %v", tmpBinary, err) } if _, err := io.Copy(dst, src); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 21:23:17 UTC 2023 - 4.5K bytes - Viewed (0) -
cmd/erasure-healing-common_test.go
// and check if that disk // appears in outDatedDisks. tamperedIndex = index filePath := pathJoin(erasureDisks[index].String(), bucket, object, fi.DataDir, "part.1") f, err := os.OpenFile(filePath, os.O_WRONLY|os.O_SYNC, 0) if err != nil { t.Fatalf("Failed to open %s: %s\n", filePath, err) } f.WriteString("oops") // Will cause bitrot error f.Close() break } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 23K bytes - Viewed (0) -
src/runtime/defs_aix.go
_SEGV_ACCERR = C.SEGV_ACCERR _ITIMER_REAL = C.ITIMER_REAL _ITIMER_VIRTUAL = C.ITIMER_VIRTUAL _ITIMER_PROF = C.ITIMER_PROF _O_RDONLY = C.O_RDONLY _O_WRONLY = C.O_WRONLY _O_NONBLOCK = C.O_NONBLOCK _O_CREAT = C.O_CREAT _O_TRUNC = C.O_TRUNC _SS_DISABLE = C.SS_DISABLE _SI_USER = C.SI_USER _SIG_BLOCK = C.SIG_BLOCK _SIG_UNBLOCK = C.SIG_UNBLOCK
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 20 21:27:51 UTC 2023 - 4.2K bytes - Viewed (0) -
src/cmd/go/internal/work/shell.go
// This avoids build tags and works even on systems like Plan 9 // where the file mask computation incorporates other information. mode := perm f, err := os.OpenFile(filepath.Clean(dst)+"-go-tmp-umask", os.O_WRONLY|os.O_CREATE|os.O_EXCL, perm) if err == nil { fi, err := f.Stat() if err == nil { mode = fi.Mode() & 0777 } name := f.Name() f.Close() os.Remove(name) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 19.8K bytes - Viewed (0) -
src/syscall/exec_linux.go
} if sys.Unshareflags&CLONE_NEWUSER != 0 && sys.GidMappings != nil { dirfd = int(_AT_FDCWD) if fd1, _, err1 = RawSyscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(&psetgroups[0])), uintptr(O_WRONLY), 0, 0, 0); err1 != 0 { goto childerror } pid, _, err1 = RawSyscall(SYS_WRITE, fd1, uintptr(unsafe.Pointer(&setgroups[0])), uintptr(len(setgroups))) if err1 != 0 { goto childerror }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 07:45:37 UTC 2024 - 23K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/upload/run.go
" ", "") fname := filepath.Join(debugDir, logBase) if _, err := os.Stat(fname); err == nil { // This process previously called upload.Run return nil, nil } f, err := os.OpenFile(fname, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0666) if err != nil { if os.IsExist(err) { return nil, nil // this process previously called upload.Run } return nil, err } return f, nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:12:15 UTC 2024 - 5.5K bytes - Viewed (0)