Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 198 for filemode (0.17 sec)

  1. src/os/dir_darwin.go

    		}
    		runtime.KeepAlive(f)
    	}
    
    	if n > 0 && len(names)+len(dirents)+len(infos) == 0 {
    		return nil, nil, nil, io.EOF
    	}
    	return names, dirents, infos, nil
    }
    
    func dtToType(typ uint8) FileMode {
    	switch typ {
    	case syscall.DT_BLK:
    		return ModeDevice
    	case syscall.DT_CHR:
    		return ModeDevice | ModeCharDevice
    	case syscall.DT_DIR:
    		return ModeDir
    	case syscall.DT_FIFO:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ArchiveTestFixture.groovy

            fileModesByRelativePath.put(relativePath, mode & 0777)
        }
    
        def assertFileMode(String relativePath, int fileMode) {
            List<Integer> modes = fileModesByRelativePath.get(relativePath)
            assert modes.size() == 1
            assertThat(modes.get(0), equalTo(fileMode))
            this
        }
    
        def assertContainsFile(String relativePath) {
            assert filesByRelativePath.keySet().contains(relativePath)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/go/doc/testdata/blank.0.golden

    	// Constants with a single type that is not propagated. 
    	const (
    		Default		= 0644
    		Useless		= 0312
    		WideOpen	= 0777
    	)
    
    	// Constants with an imported type that is propagated. 
    	const (
    		M1	os.FileMode
    		M2
    		M3
    	)
    
    	// Package constants. 
    	const (
    		I1	int
    		I2
    	)
    
    
    TYPES
    	// S has a padding field. 
    	type S struct {
    		H	uint32
    	
    		A	uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 01:12:26 UTC 2017
    - 751 bytes
    - Viewed (0)
  4. pkg/volume/util/subpath/subpath.go

    	// that's under user control. User must not be able to use symlinks to
    	// escape the volume to create directories somewhere else.
    	SafeMakeDir(subdir string, base string, perm os.FileMode) error
    }
    
    // Subpath defines the attributes of a subpath
    type Subpath struct {
    	// index of the VolumeMount for this container
    	VolumeMountIndex int
    
    	// Full path to the subpath directory on the host
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 27 02:59:53 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  5. src/os/stat_aix.go

    	"syscall"
    	"time"
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = int64(fs.sys.Size)
    	fs.modTime = stTimespecToTime(fs.sys.Mtim)
    	fs.mode = FileMode(fs.sys.Mode & 0777)
    	switch fs.sys.Mode & syscall.S_IFMT {
    	case syscall.S_IFBLK:
    		fs.mode |= ModeDevice
    	case syscall.S_IFCHR:
    		fs.mode |= ModeDevice | ModeCharDevice
    	case syscall.S_IFDIR:
    		fs.mode |= ModeDir
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  6. src/os/stat_solaris.go

    	_S_IFDOOR = 0xd000
    	_S_IFPORT = 0xe000
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = fs.sys.Size
    	fs.modTime = time.Unix(fs.sys.Mtim.Unix())
    	fs.mode = FileMode(fs.sys.Mode & 0777)
    	switch fs.sys.Mode & syscall.S_IFMT {
    	case syscall.S_IFBLK:
    		fs.mode |= ModeDevice
    	case syscall.S_IFCHR:
    		fs.mode |= ModeDevice | ModeCharDevice
    	case syscall.S_IFDIR:
    		fs.mode |= ModeDir
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. pkg/volume/volume_linux.go

    import (
    	"path/filepath"
    	"syscall"
    
    	"os"
    	"time"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/klog/v2"
    	"k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    const (
    	rwMask   = os.FileMode(0660)
    	roMask   = os.FileMode(0440)
    	execMask = os.FileMode(0110)
    )
    
    // SetVolumeOwnership modifies the given volume to be owned by
    // fsGroup, and sets SetGid so that newly created files are owned by
    // fsGroup. If fsGroup is nil nothing is done.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  8. src/os/types_windows.go

    }
    
    var winsymlink = godebug.New("winsymlink")
    
    func (fs *fileStat) Mode() FileMode {
    	m := fs.mode()
    	if winsymlink.Value() == "0" {
    		old := fs.modePreGo1_23()
    		if old != m {
    			winsymlink.IncNonDefault()
    			m = old
    		}
    	}
    	return m
    }
    
    func (fs *fileStat) mode() (m FileMode) {
    	if fs.FileAttributes&syscall.FILE_ATTRIBUTE_READONLY != 0 {
    		m |= 0444
    	} else {
    		m |= 0666
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. src/os/stat_wasip1.go

    package os
    
    import (
    	"internal/filepathlite"
    	"syscall"
    	"time"
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = int64(fs.sys.Size)
    	fs.mode = FileMode(fs.sys.Mode)
    	fs.modTime = time.Unix(0, int64(fs.sys.Mtime))
    
    	switch fs.sys.Filetype {
    	case syscall.FILETYPE_BLOCK_DEVICE:
    		fs.mode |= ModeDevice
    	case syscall.FILETYPE_CHARACTER_DEVICE:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 990 bytes
    - Viewed (0)
  10. src/cmd/go/internal/toolchain/umask_unix.go

    import (
    	"io/fs"
    	"syscall"
    )
    
    // sysWriteBits determines which bits to OR into the mode to make a directory writable.
    // It must be called when there are no other file system operations happening.
    func sysWriteBits() fs.FileMode {
    	// Read current umask. There's no way to read it without also setting it,
    	// so set it conservatively and then restore the original one.
    	m := syscall.Umask(0o777)
    	syscall.Umask(m)    // restore bits
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 15:44:08 UTC 2023
    - 896 bytes
    - Viewed (0)
Back to top