Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 180 for Tperm (0.04 sec)

  1. 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)
  2. src/os/file_plan9.go

    func syscallMode(i FileMode) (o uint32) {
    	o |= uint32(i.Perm())
    	if i&ModeAppend != 0 {
    		o |= syscall.DMAPPEND
    	}
    	if i&ModeExclusive != 0 {
    		o |= syscall.DMEXCL
    	}
    	if i&ModeTemporary != 0 {
    		o |= syscall.DMTMP
    	}
    	return
    }
    
    // openFileNolog is the Plan 9 implementation of OpenFile.
    func openFileNolog(name string, flag int, perm FileMode) (*File, error) {
    	var (
    		fd     int
    		e      error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:35:30 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. src/syscall/syscall_plan9.go

    		defer runtime.UnlockOSThread()
    	}
    	return open(path, mode)
    }
    
    //sys	create(path string, mode int, perm uint32) (fd int, err error)
    
    func Create(path string, mode int, perm uint32) (fd int, err error) {
    	if fixwd(path) {
    		defer runtime.UnlockOSThread()
    	}
    	return create(path, mode, perm)
    }
    
    //sys	remove(path string) (err error)
    
    func Remove(path string) error {
    	if fixwd(path) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/cmd/go/internal/script/cmds.go

    		CmdUsage{
    			Summary: "change file mode bits",
    			Args:    "perm paths...",
    			Detail: []string{
    				"Changes the permissions of the named files or directories to be equal to perm.",
    				"Only numerical permissions are supported.",
    			},
    		},
    		func(s *State, args ...string) (WaitFunc, error) {
    			if len(args) < 2 {
    				return nil, ErrUsage
    			}
    
    			perm, err := strconv.ParseUint(args[0], 0, 32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  5. src/math/rand/v2/rand_test.go

    			tests := [...]struct {
    				name string
    				fn   func() int
    			}{
    				{name: "Int32N", fn: func() int { return int(r.Int32N(int32(nfact))) }},
    				{name: "Perm", fn: func() int { return encodePerm(r.Perm(n)) }},
    				{name: "Shuffle", fn: func() int {
    					// Generate permutation using Shuffle.
    					for i := range p {
    						p[i] = i
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go

    }
    
    type SysvShmDesc struct {
    	Perm   SysvIpcPerm
    	_      [4]byte
    	Lpid   int32
    	Cpid   int32
    	Nattch uint32
    	_      [4]byte
    	_      [4]byte
    	_      [4]byte
    	_      int32
    	_      uint8
    	_      uint8
    	_      uint16
    	_      *byte
    	Segsz  uint64
    	Atime  Time_t
    	Dtime  Time_t
    	Ctime  Time_t
    }
    
    type SysvShmDesc64 struct {
    	Perm   SysvIpcPerm
    	_      [4]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Collections2.java

       * <pre>{@code
       * for (List<String> perm : orderedPermutations(asList("b", "c", "a"))) {
       *   println(perm);
       * }
       * // -> ["a", "b", "c"]
       * // -> ["a", "c", "b"]
       * // -> ["b", "a", "c"]
       * // -> ["b", "c", "a"]
       * // -> ["c", "a", "b"]
       * // -> ["c", "b", "a"]
       *
       * for (List<Integer> perm : orderedPermutations(asList(1, 2, 2, 1))) {
       *   println(perm);
       * }
       * // -> [1, 1, 2, 2]
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

                    SmallVector<int32_t, 4> perm, RankedTensorType original_type,
                    mlir::Location location) {
      // Create a constant op for transpose permutation.
      auto perm_op = CreateI32DenseConst(builder, perm, location);
    
      // Create tensor type for the transpose result.
      auto transpose_type = original_type;
      auto transpose_shape =
          llvm::to_vector<8>(llvm::map_range(perm, [transpose_type](int32_t dim) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  9. src/runtime/os_openbsd_syscall2.go

    // It returns a non-negative number of bytes written or a negative errno value.
    //
    //go:noescape
    func write1(fd uintptr, p unsafe.Pointer, n int32) int32
    
    //go:noescape
    func open(name *byte, mode, perm int32) int32
    
    // return value is only set on linux to be used in osinit().
    func madvise(addr unsafe.Pointer, n uintptr, flags int32) int32
    
    // exitThread terminates the current thread, writing *wait = freeMStack when
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. src/io/fs/fs.go

    // IsRegular reports whether m describes a regular file.
    // That is, it tests that no mode type bits are set.
    func (m FileMode) IsRegular() bool {
    	return m&ModeType == 0
    }
    
    // Perm returns the Unix permission bits in m (m & [ModePerm]).
    func (m FileMode) Perm() FileMode {
    	return m & ModePerm
    }
    
    // Type returns type bits in m (m & [ModeType]).
    func (m FileMode) Type() FileMode {
    	return m & ModeType
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 15 21:21:41 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top