Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 172 for O_WRONLY (0.15 sec)

  1. 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)
  2. 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)
  3. src/runtime/defs_solaris.go

    	PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED
    
    	FORK_NOSIGCHLD = C.FORK_NOSIGCHLD
    	FORK_WAITPID   = C.FORK_WAITPID
    
    	MAXHOSTNAMELEN = C.MAXHOSTNAMELEN
    
    	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
    
    	POLLIN  = C.POLLIN
    	POLLOUT = C.POLLOUT
    	POLLHUP = C.POLLHUP
    	POLLERR = C.POLLERR
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 17:47:39 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. internal/ioutil/append-file_nix.go

    package ioutil
    
    import (
    	"io"
    	"os"
    )
    
    // AppendFile - appends the file "src" to the file "dst"
    func AppendFile(dst string, src string, osync bool) error {
    	flags := os.O_WRONLY | os.O_APPEND | os.O_CREATE
    	if osync {
    		flags |= os.O_SYNC
    	}
    	appendFile, err := os.OpenFile(dst, flags, 0o666)
    	if err != nil {
    		return err
    	}
    	defer appendFile.Close()
    
    	srcFile, err := os.Open(src)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.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. internal/lock/lock_windows.go

    	switch flag {
    	case syscall.O_RDONLY:
    		access = syscall.GENERIC_READ
    	case syscall.O_WRONLY:
    		access = syscall.GENERIC_WRITE
    	case syscall.O_RDWR:
    		fallthrough
    	case syscall.O_RDWR | syscall.O_CREAT:
    		fallthrough
    	case syscall.O_WRONLY | syscall.O_CREAT:
    		access = syscall.GENERIC_READ | syscall.GENERIC_WRITE
    	case syscall.O_WRONLY | syscall.O_CREAT | syscall.O_APPEND:
    		access = syscall.FILE_APPEND_DATA
    	default:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/internal/bootstrap_test/overlaydir_test.go

    			return nil
    		}
    
    		// Otherwise, copy the bytes.
    		src, err := os.Open(srcPath)
    		if err != nil {
    			return err
    		}
    		defer src.Close()
    
    		dst, err := os.OpenFile(dstPath, os.O_WRONLY|os.O_CREATE|os.O_EXCL, perm)
    		if err != nil {
    			return err
    		}
    
    		_, err = io.Copy(dst, src)
    		if closeErr := dst.Close(); err == nil {
    			err = closeErr
    		}
    		return err
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:35:05 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. src/syscall/const_plan9.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package syscall
    
    // Plan 9 Constants
    
    // Open modes
    const (
    	O_RDONLY  = 0
    	O_WRONLY  = 1
    	O_RDWR    = 2
    	O_TRUNC   = 16
    	O_CLOEXEC = 32
    	O_EXCL    = 0x1000
    )
    
    // Bind flags
    const (
    	MORDER  = 0x0003 // mask for bits defining order of mounting
    	MREPL   = 0x0000 // mount replaces object
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 14:05:53 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. internal/ioutil/append-file_windows.go

    	"io"
    	"os"
    
    	"github.com/minio/minio/internal/lock"
    )
    
    // AppendFile - appends the file "src" to the file "dst"
    func AppendFile(dst string, src string, osync bool) error {
    	appendFile, err := lock.Open(dst, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0o666)
    	if err != nil {
    		return err
    	}
    	defer appendFile.Close()
    
    	srcFile, err := lock.Open(src, os.O_RDONLY, 0o666)
    	if err != nil {
    		return err
    	}
    	defer srcFile.Close()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top