Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for O_WRONLY (0.38 sec)

  1. cmd/xl-storage.go

    	// with mode 0o777 mkdir honors system umask.
    	mkdirAll(pathutil.Dir(filePath), 0o777, s.drivePath) // don't need to fail here
    
    	w, err := s.openFileDirect(filePath, os.O_CREATE|os.O_WRONLY|os.O_EXCL)
    	if err != nil {
    		return err
    	}
    	_, err = w.Write(alignedBuf)
    	w.Close()
    	if err != nil {
    		if isSysErrInvalidArg(err) {
    			err = errUnsupportedDisk
    		}
    	}
    	return err
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  2. src/syscall/zerrors_solaris_amd64.go

    	O_SEARCH                      = 0x200000
    	O_SIOCGIFCONF                 = -0x3ff796ec
    	O_SIOCGLIFCONF                = -0x3fef9688
    	O_SYNC                        = 0x10
    	O_TRUNC                       = 0x200
    	O_WRONLY                      = 0x1
    	O_XATTR                       = 0x4000
    	PARENB                        = 0x100
    	PAREXT                        = 0x100000
    	PARMRK                        = 0x8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 50.8K bytes
    - Viewed (0)
  3. src/syscall/syscall_windows.go

    	}
    	pathp, err := UTF16PtrFromString(path)
    	if err != nil {
    		return InvalidHandle, err
    	}
    	var access uint32
    	switch mode & (O_RDONLY | O_WRONLY | O_RDWR) {
    	case O_RDONLY:
    		access = GENERIC_READ
    	case O_WRONLY:
    		access = GENERIC_WRITE
    	case O_RDWR:
    		access = GENERIC_READ | GENERIC_WRITE
    	}
    	if mode&O_CREAT != 0 {
    		access |= GENERIC_WRITE
    	}
    	if mode&O_APPEND != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go

    	O_SEARCH                      = 0x20
    	O_SNAPSHOT                    = 0x40
    	O_SYNC                        = 0x10
    	O_TRUNC                       = 0x200
    	O_TTY_INIT                    = 0x0
    	O_WRONLY                      = 0x1
    	PARENB                        = 0x100
    	PAREXT                        = 0x100000
    	PARMRK                        = 0x8
    	PARODD                        = 0x200
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 52.7K bytes
    - Viewed (0)
  5. src/syscall/zerrors_openbsd_ppc64.go

    	O_RDWR                            = 0x2
    	O_RSYNC                           = 0x80
    	O_SHLOCK                          = 0x10
    	O_SYNC                            = 0x80
    	O_TRUNC                           = 0x400
    	O_WRONLY                          = 0x1
    	PARENB                            = 0x1000
    	PARMRK                            = 0x8
    	PARODD                            = 0x2000
    	PENDIN                            = 0x20000000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 03:24:15 UTC 2023
    - 67.1K bytes
    - Viewed (0)
  6. src/syscall/zerrors_openbsd_riscv64.go

    	O_RDWR                            = 0x2
    	O_RSYNC                           = 0x80
    	O_SHLOCK                          = 0x10
    	O_SYNC                            = 0x80
    	O_TRUNC                           = 0x400
    	O_WRONLY                          = 0x1
    	PARENB                            = 0x1000
    	PARMRK                            = 0x8
    	PARODD                            = 0x2000
    	PENDIN                            = 0x20000000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 02:55:38 UTC 2023
    - 67.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go

    	O_SEARCH                      = 0x200000
    	O_SIOCGIFCONF                 = -0x3ff796ec
    	O_SIOCGLIFCONF                = -0x3fef9688
    	O_SYNC                        = 0x10
    	O_TRUNC                       = 0x200
    	O_WRONLY                      = 0x1
    	O_XATTR                       = 0x4000
    	PARENB                        = 0x100
    	PAREXT                        = 0x100000
    	PARMRK                        = 0x8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 59K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go

    	O_SEARCH                      = 0x20
    	O_SNAPSHOT                    = 0x40
    	O_SYNC                        = 0x10
    	O_TRUNC                       = 0x200
    	O_TTY_INIT                    = 0x0
    	O_WRONLY                      = 0x1
    	PARENB                        = 0x100
    	PAREXT                        = 0x100000
    	PARMRK                        = 0x8
    	PARODD                        = 0x200
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 52.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFile.java

        }
    
    
        @Override
        public SmbFileOutputStream openOutputStream ( boolean append, int sharing ) throws SmbException {
            return openOutputStream(append, append ? O_CREAT | O_WRONLY | O_APPEND : O_CREAT | O_WRONLY | O_TRUNC, 0, sharing);
        }
    
    
        @Override
        public SmbFileOutputStream openOutputStream ( boolean append, int openFlags, int access, int sharing ) throws SmbException {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (1)
  10. src/os/os_test.go

    }
    
    var openErrorTests = []openErrorTest{
    	{
    		sfdir + "/no-such-file",
    		O_RDONLY,
    		syscall.ENOENT,
    	},
    	{
    		sfdir,
    		O_WRONLY,
    		syscall.EISDIR,
    	},
    	{
    		sfdir + "/" + sfname + "/no-such-file",
    		O_WRONLY,
    		syscall.ENOTDIR,
    	},
    }
    
    func TestOpenError(t *testing.T) {
    	t.Parallel()
    
    	for _, tt := range openErrorTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
Back to top