Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for Ioperm (0.11 sec)

  1. src/os/removeall_at.go

    	}
    
    	// EISDIR means that we have a directory, and we need to
    	// remove its contents.
    	// EPERM or EACCES means that we don't have write permission on
    	// the parent directory, but this entry might still be a directory
    	// whose contents need to be removed.
    	// Otherwise just return the error.
    	if err != syscall.EISDIR && err != syscall.EPERM && err != syscall.EACCES {
    		return &PathError{Op: "unlinkat", Path: base, Err: err}
    	}
    	uErr := err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/xattr_bsd.go

    		 *
    		 * Linux will still error if we ask for user attributes on a file that
    		 * we don't have read permissions on, so don't ignore those errors
    		 */
    		if e != nil {
    			if e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
    				continue
    			}
    			return s, e
    		}
    
    		s += stmp
    		pos = s
    		if pos > destsiz {
    			pos = destsiz
    		}
    	}
    
    	return s, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. internal/disk/directio_unsupported.go

    // https://github.com/openzfs/zfs/commit/a584ef26053065f486d46a7335bea222cb03eeea
    
    // OpenFileDirectIO wrapper around os.OpenFile nothing special
    func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) {
    	return os.OpenFile(filePath, flag, perm)
    }
    
    // DisableDirectIO is a no-op
    func DisableDirectIO(f *os.File) error {
    	return nil
    }
    
    // AlignedBlock simply returns an unaligned buffer
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/inline/interleaved/interleaved.go

    			if base.Debug.DumpInlFuncProps != "" && !fn.Wrapper() {
    				inlheur.DumpFuncProps(fn, base.Debug.DumpInlFuncProps)
    			}
    		}
    
    		bigCaller := base.Flag.LowerL != 0 && inline.IsBigFunc(fn)
    		if bigCaller && base.Flag.LowerM > 1 {
    			fmt.Printf("%v: function %v considered 'big'; reducing max cost of inlinees\n", ir.Line(fn), fn)
    		}
    
    		match := func(n ir.Node) bool {
    			switch n := n.(type) {
    			case *ir.CallExpr:
    				return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. cmd/os_other.go

    import (
    	"io"
    	"os"
    	"syscall"
    )
    
    func access(name string) error {
    	_, err := os.Lstat(name)
    	return err
    }
    
    func osMkdirAll(dirPath string, perm os.FileMode, _ string) error {
    	// baseDir is not honored in plan9 and solaris platforms.
    	return os.MkdirAll(dirPath, perm)
    }
    
    // readDirFn applies the fn() function on each entries at dirPath, doesn't recurse into
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 13 15:14:36 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/bench_test.go

    //go:noinline
    func fn(a, b int) bool {
    	c := false
    	if a > 0 {
    		if b < 0 {
    			d = d + 1
    		}
    		c = true
    	}
    	return c
    }
    
    func BenchmarkPhioptPass(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		a := rand.Perm(i/10 + 10)
    		for i := 1; i < len(a)/2; i++ {
    			fn(a[i]-a[i-1], a[i+len(a)/2-2]-a[i+len(a)/2-1])
    		}
    	}
    }
    
    type Point struct {
    	X, Y int
    }
    
    //go:noinline
    func sign(p1, p2, p3 Point) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 02:36:06 UTC 2023
    - 835 bytes
    - Viewed (0)
  7. src/syscall/syscall_js.go

    		if s != "" {
    			return s
    		}
    	}
    	return "errno " + itoa.Itoa(int(e))
    }
    
    func (e Errno) Is(target error) bool {
    	switch target {
    	case oserror.ErrPermission:
    		return e == EACCES || e == EPERM
    	case oserror.ErrExist:
    		return e == EEXIST || e == ENOTEMPTY
    	case oserror.ErrNotExist:
    		return e == ENOENT
    	case errorspkg.ErrUnsupported:
    		return e == ENOSYS || e == ENOTSUP || e == EOPNOTSUPP
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. pkg/kubelet/certificate/kubelet_test.go

    			}
    		})
    	}
    }
    
    func removeThenCreate(name string, data []byte, perm os.FileMode) error {
    	if err := os.Remove(name); err != nil {
    		if !os.IsNotExist(err) {
    			return err
    		}
    	}
    	return os.WriteFile(name, data, perm)
    }
    
    func createCertAndKeyFiles(certDir string) (string, string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:40 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/plan9/zsyscall_plan9_amd64.go

    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func create(path string, mode int, perm uint32) (fd int, err error) {
    	var _p0 *byte
    	_p0, err = BytePtrFromString(path)
    	if err != nil {
    		return
    	}
    	r0, _, e1 := Syscall(SYS_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
    	fd = int(r0)
    	if int32(r0) == -1 {
    		err = e1
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. src/syscall/syscall_wasip1.go

    		if s != "" {
    			return s
    		}
    	}
    	return "errno " + itoa.Itoa(int(e))
    }
    
    func (e Errno) Is(target error) bool {
    	switch target {
    	case oserror.ErrPermission:
    		return e == EACCES || e == EPERM
    	case oserror.ErrExist:
    		return e == EEXIST || e == ENOTEMPTY
    	case oserror.ErrNotExist:
    		return e == ENOENT
    	case errors.ErrUnsupported:
    		return e == ENOSYS
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top