Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for O_WRONLY (0.11 sec)

  1. src/runtime/defs_dragonfly.go

    #include <errno.h>
    #include <signal.h>
    */
    import "C"
    
    const (
    	EINTR     = C.EINTR
    	EFAULT    = C.EFAULT
    	EBUSY     = C.EBUSY
    	EAGAIN    = C.EAGAIN
    	ETIMEDOUT = C.ETIMEDOUT
    
    	O_WRONLY   = C.O_WRONLY
    	O_NONBLOCK = C.O_NONBLOCK
    	O_CREAT    = C.O_CREAT
    	O_TRUNC    = C.O_TRUNC
    	O_CLOEXEC  = C.O_CLOEXEC
    
    	PROT_NONE  = C.PROT_NONE
    	PROT_READ  = C.PROT_READ
    	PROT_WRITE = C.PROT_WRITE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. src/runtime/defs_netbsd.go

    #include <sys/time.h>
    #include <sys/ucontext.h>
    #include <sys/unistd.h>
    #include <errno.h>
    #include <signal.h>
    */
    import "C"
    
    const (
    	EINTR  = C.EINTR
    	EFAULT = C.EFAULT
    	EAGAIN = C.EAGAIN
    
    	O_WRONLY   = C.O_WRONLY
    	O_NONBLOCK = C.O_NONBLOCK
    	O_CREAT    = C.O_CREAT
    	O_TRUNC    = C.O_TRUNC
    	O_CLOEXEC  = C.O_CLOEXEC
    
    	PROT_NONE  = C.PROT_NONE
    	PROT_READ  = C.PROT_READ
    	PROT_WRITE = C.PROT_WRITE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/upgrade/postupgrade_test.go

    	certFile, err := os.OpenFile(certPath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0666)
    	if err != nil {
    		t.Fatalf("Failed to create cert file %s: %v", certPath, err)
    	}
    	certFile.Close()
    
    	keyPath := filepath.Join(tmpdir, constants.APIServerKeyName)
    	keyFile, err := os.OpenFile(keyPath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0666)
    	if err != nil {
    		t.Fatalf("Failed to create key file %s: %v", keyPath, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 11:40:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. src/runtime/defs_darwin.go

    	EVFILT_USER  = C.EVFILT_USER
    
    	NOTE_TRIGGER = C.NOTE_TRIGGER
    
    	PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED
    
    	F_GETFL = C.F_GETFL
    	F_SETFL = C.F_SETFL
    
    	O_WRONLY   = C.O_WRONLY
    	O_NONBLOCK = C.O_NONBLOCK
    	O_CREAT    = C.O_CREAT
    	O_TRUNC    = C.O_TRUNC
    
    	VM_REGION_BASIC_INFO_COUNT_64 = C.VM_REGION_BASIC_INFO_COUNT_64
    	VM_REGION_BASIC_INFO_64       = C.VM_REGION_BASIC_INFO_64
    )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. src/runtime/defs_freebsd.go

    	_CPU_WHICH_PID   = C.CPU_WHICH_PID   // Specifies a process id.
    )
    
    const (
    	EINTR     = C.EINTR
    	EFAULT    = C.EFAULT
    	EAGAIN    = C.EAGAIN
    	ETIMEDOUT = C.ETIMEDOUT
    
    	O_WRONLY   = C.O_WRONLY
    	O_NONBLOCK = C.O_NONBLOCK
    	O_CREAT    = C.O_CREAT
    	O_TRUNC    = C.O_TRUNC
    	O_CLOEXEC  = C.O_CLOEXEC
    
    	PROT_NONE  = C.PROT_NONE
    	PROT_READ  = C.PROT_READ
    	PROT_WRITE = C.PROT_WRITE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. src/os/fifo_test.go

    	rc := make(chan *os.File, 1)
    	go func() {
    		r, err := os.Open(fifoName)
    		if err != nil {
    			t.Error(err)
    		}
    		rc <- r
    	}()
    
    	w, err := os.OpenFile(fifoName, os.O_WRONLY, 0)
    	if err != nil {
    		t.Error(err)
    	}
    
    	r := <-rc
    	if t.Failed() {
    		if r != nil {
    			r.Close()
    		}
    		if w != nil {
    			w.Close()
    		}
    		return
    	}
    
    	testPipeEOF(t, r, w)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:47:23 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/copy.go

    	if err != nil {
    		return err
    	}
    
    	sourceFile, err := os.Open(src)
    	if err != nil {
    		return err
    	}
    	defer func() {
    		_ = sourceFile.Close()
    	}()
    
    	destFile, err := os.OpenFile(dest, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, sourceFileInfo.Mode())
    	if err != nil {
    		return err
    	}
    	defer func() {
    		_ = destFile.Close()
    	}()
    
    	_, err = io.Copy(destFile, sourceFile)
    
    	return err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 01:42:57 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. src/cmd/covdata/metamerge.go

    	}
    	defer inf.Close()
    
    	fi, err := inf.Stat()
    	if err != nil {
    		fatal("accessing input meta-data file %s: %v", inpath, err)
    	}
    
    	outf, err := os.OpenFile(outpath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, fi.Mode())
    	if err != nil {
    		fatal("opening output meta-data file %s: %v", outpath, err)
    	}
    
    	_, err = io.Copy(outf, inf)
    	outf.Close()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 17:17:47 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. tools/istio-iptables/pkg/dependencies/stub.go

    func (s *DependenciesStub) writeAllToDryRunPath() error {
    	path := DryRunFilePath.Get()
    	if path != "" {
    		// Print the input into the given output file.
    		f, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY, 0o644)
    		if err != nil {
    			return fmt.Errorf("unable to open dry run output file %v: %v", path, err)
    		}
    
    		defer f.Close()
    
    		for _, line := range s.ExecutedAll {
    			_, err := f.WriteString(line + "\n")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. 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)
Back to top