Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for O_SYNC (0.12 sec)

  1. src/cmd/vendor/golang.org/x/sys/plan9/errors_plan9.go

    package plan9
    
    import "syscall"
    
    // Constants
    const (
    	// Invented values to support what package os expects.
    	O_CREAT    = 0x02000
    	O_APPEND   = 0x00400
    	O_NOCTTY   = 0x00000
    	O_NONBLOCK = 0x00000
    	O_SYNC     = 0x00000
    	O_ASYNC    = 0x00000
    
    	S_IFMT   = 0x1f000
    	S_IFIFO  = 0x1000
    	S_IFCHR  = 0x2000
    	S_IFDIR  = 0x4000
    	S_IFBLK  = 0x6000
    	S_IFREG  = 0x8000
    	S_IFLNK  = 0xa000
    	S_IFSOCK = 0xc000
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  2. src/syscall/errors_plan9.go

    package syscall
    
    // Constants
    const (
    	// Invented values to support what package os expects.
    	O_CREAT    = 0x02000
    	O_APPEND   = 0x00400
    	O_NOCTTY   = 0x00000
    	O_NONBLOCK = 0x00000
    	O_SYNC     = 0x00000
    	O_ASYNC    = 0x00000
    
    	S_IFMT   = 0x1f000
    	S_IFIFO  = 0x1000
    	S_IFCHR  = 0x2000
    	S_IFDIR  = 0x4000
    	S_IFBLK  = 0x6000
    	S_IFREG  = 0x8000
    	S_IFLNK  = 0xa000
    	S_IFSOCK = 0xc000
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 22 13:31:24 UTC 2017
    - 1.6K bytes
    - Viewed (0)
  3. internal/ioutil/append-file_nix.go

    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)
    	if err != nil {
    		return err
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  4. cmd/xl-storage_noatime_notsupported.go

    package cmd
    
    import (
    	"os"
    )
    
    var (
    	// No special option for reads on windows
    	readMode = os.O_RDONLY
    
    	// Write with sync no buffering only used only for `xl.meta` writes
    	writeMode = os.O_SYNC
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1K bytes
    - Viewed (0)
  5. internal/lock/lock_nix.go

    		lockType |= syscall.LOCK_EX
    	default:
    		return nil, &os.PathError{
    			Op:   "open",
    			Path: path,
    			Err:  syscall.EINVAL,
    		}
    	}
    
    	f, err := os.OpenFile(path, flag|syscall.O_SYNC, perm)
    	if err != nil {
    		return nil, err
    	}
    
    	if err = syscall.Flock(int(f.Fd()), lockType); err != nil {
    		f.Close()
    		if err == syscall.EWOULDBLOCK {
    			err = ErrAlreadyLocked
    		}
    		return nil, err
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  6. internal/config/errors.go

    		"Environment can only accept `on` and `off` values. To disable Console access, set this value to `off`",
    	)
    
    	ErrInvalidFSOSyncValue = newErrFn(
    		"Invalid O_SYNC value",
    		"Please check the passed value",
    		"Can only accept `on` and `off` values. To enable O_SYNC for fs backend, set this value to `on`",
    	)
    
    	ErrOverlappingDomainValue = newErrFn(
    		"Overlapping domain values",
    		"Please check the passed value",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 18 22:25:32 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. cmd/erasure-healing-common_test.go

    					// 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)
  8. src/syscall/fs_js.go

    	}
    	if openmode&O_TRUNC != 0 {
    		flags |= nodeTRUNC
    	}
    	if openmode&O_APPEND != 0 {
    		flags |= nodeAPPEND
    	}
    	if openmode&O_EXCL != 0 {
    		flags |= nodeEXCL
    	}
    	if openmode&O_SYNC != 0 {
    		return 0, errors.New("syscall.Open: O_SYNC is not supported by js/wasm")
    	}
    
    	jsFD, err := fsCall("open", path, flags, perm)
    	if err != nil {
    		return 0, err
    	}
    	fd := jsFD.Int()
    
    	var entries []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 18:19:17 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  9. src/syscall/syscall_js.go

    	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
    	F_GETFD   = 1
    	F_SETFD   = 2
    	F_GETFL   = 3
    	F_SETFL   = 4
    	F_GETOWN  = 5
    	F_SETOWN  = 6
    	F_GETLK   = 7
    	F_SETLK   = 8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. api/except.txt

    pkg math/big, const MaxBase = 36
    pkg math/big, type Word uintptr
    pkg net, func ListenUnixgram(string, *UnixAddr) (*UDPConn, error)
    pkg os (linux-arm), const O_SYNC = 1052672
    pkg os (linux-arm), const O_SYNC = 4096
    pkg os (linux-arm-cgo), const O_SYNC = 1052672
    pkg os (linux-arm-cgo), const O_SYNC = 4096
    pkg os, const ModeAppend FileMode
    pkg os, const ModeCharDevice FileMode
    pkg os, const ModeDevice FileMode
    pkg os, const ModeDir FileMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:13:30 UTC 2023
    - 34.6K bytes
    - Viewed (0)
Back to top