Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 353 for Tperm (0.06 sec)

  1. internal/disk/directio_darwin.go

    // ODirectPlatform indicates if the platform supports O_DIRECT
    const ODirectPlatform = true
    
    // OpenFileDirectIO - bypass kernel cache.
    func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) {
    	return directio.OpenFile(filePath, flag, perm)
    }
    
    // DisableDirectIO - disables directio mode.
    func DisableDirectIO(f *os.File) error {
    	fd := f.Fd()
    	_, err := unix.FcntlInt(fd, unix.F_NOCACHE, 0)
    	return err
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 17 14:31:36 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. src/os/exec/lp_unix.go

    		return syscall.EISDIR
    	}
    	err = unix.Eaccess(file, unix.X_OK)
    	// ENOSYS means Eaccess is not available or not implemented.
    	// EPERM can be returned by Linux containers employing seccomp.
    	// In both cases, fall back to checking the permission bits.
    	if err == nil || (err != syscall.ENOSYS && err != syscall.EPERM) {
    		return err
    	}
    	if m&0111 != 0 {
    		return nil
    	}
    	return fs.ErrPermission
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

        auto output_type = mlir::cast<ShapedType>(op.getOutput().getType());
    
        SmallVector<int32_t, 4> perm;
        SmallVector<int64_t, 4> output_shape;
        for (int i = 0; i < num_dimensions; ++i) {
          perm.push_back(perm_tensor.getValues<IntegerAttr>()[i].getInt());
          output_shape.push_back(input_shape[perm[i]]);
    
          // Check that the derived output shape matches the static shape.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. pkg/volume/util/subpath/subpath_linux.go

    		// Everything was created. mkdirat(..., perm) above was affected by current
    		// umask and we must apply the right permissions to the all created directory.
    		// (that's the one that will be available to the container as subpath)
    		// so user can read/write it.
    		// parentFD is the last created directory.
    
    		// Translate perm (os.FileMode) to uint32 that fchmod() expects
    		kernelPerm := uint32(perm & os.ModePerm)
    		if perm&os.ModeSetgid > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 12 14:09:11 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/work/shell.go

    			return sh.CopyFile(dst, src, perm, force)
    		}
    	}
    
    	// The perm argument is meant to be adjusted according to umask,
    	// but we don't know what the umask is.
    	// Create a dummy file to find out.
    	// This avoids build tags and works even on systems like Plan 9
    	// where the file mask computation incorporates other information.
    	mode := perm
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  6. internal/disk/directio_unix.go

    // ODirectPlatform indicates if the platform supports O_DIRECT
    const ODirectPlatform = true
    
    // OpenFileDirectIO - bypass kernel cache.
    func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) {
    	return directio.OpenFile(filePath, flag, perm)
    }
    
    // DisableDirectIO - disables directio mode.
    func DisableDirectIO(f *os.File) error {
    	fd := f.Fd()
    	flag, err := unix.FcntlInt(fd, unix.F_GETFL, 0)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 17 14:31:36 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. src/io/ioutil/ioutil.go

    // If the file does not exist, WriteFile creates it with permissions perm
    // (before umask); otherwise WriteFile truncates it before writing, without changing permissions.
    //
    // Deprecated: As of Go 1.16, this function simply calls [os.WriteFile].
    func WriteFile(filename string, data []byte, perm fs.FileMode) error {
    	return os.WriteFile(filename, data, perm)
    }
    
    // ReadDir reads the directory named by dirname and returns
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. pkg/apis/core/v1/defaults.go

    func SetDefaults_SecretVolumeSource(obj *v1.SecretVolumeSource) {
    	if obj.DefaultMode == nil {
    		perm := int32(v1.SecretVolumeSourceDefaultMode)
    		obj.DefaultMode = &perm
    	}
    }
    func SetDefaults_ConfigMapVolumeSource(obj *v1.ConfigMapVolumeSource) {
    	if obj.DefaultMode == nil {
    		perm := int32(v1.ConfigMapVolumeSourceDefaultMode)
    		obj.DefaultMode = &perm
    	}
    }
    func SetDefaults_DownwardAPIVolumeSource(obj *v1.DownwardAPIVolumeSource) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:24:15 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  9. cmd/os_unix.go

    func openFileWithFD(name string, flag int, perm os.FileMode) (fd int, err error) {
    	switch flag & writeMode {
    	case writeMode:
    		defer updateOSMetrics(osMetricOpenFileWFd, name)(err)
    	default:
    		defer updateOSMetrics(osMetricOpenFileRFd, name)(err)
    	}
    	var e error
    	fd, e = syscall.Open(name, flag|syscall.O_CLOEXEC, uint32(perm))
    	if e != nil {
    		return -1, &os.PathError{Op: "open", Path: name, Err: e}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. src/crypto/sha256/sha256block_ppc64x.s

    	XXLOR	VS31, VS31, V17
    	VADDUWM	V16, V6, V6
    	VADDUWM	V17, V7, V7
    
    	CMPU	INP, END
    	BLT	loop
    
    	LVX	(TBL)(R_x000), V8
    	VPERM	V0, V1, KI, V0
    	LVX	(TBL)(R_x010), V9
    	VPERM	V4, V5, KI, V4
    	VPERM	V0, V2, V8, V0
    	VPERM	V4, V6, V8, V4
    	VPERM	V0, V3, V9, V0
    	VPERM	V4, V7, V9, V4
    	STXVD2X	V0, (CTX+R_x000)
    	STXVD2X	V4, (CTX+R_x010)
    
    end:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top