Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ModeIrregular (0.17 sec)

  1. doc/next/6-stdlib/99-minor/os/61893.md

    On Windows, the mode bits reported by [Lstat] and [Stat] for
    reparse points changed. Mount points no longer have [ModeSymlink] set,
    and reparse points that are not symlinks, Unix sockets, or dedup files
    now always have [ModeIrregular] set.
    This behavior is controlled by the `winsymlink` setting.
    For Go 1.23, it defaults to `winsymlink=1`.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 20:57:18 UTC 2024
    - 386 bytes
    - Viewed (0)
  2. src/os/types.go

    	ModeSetgid     = fs.ModeSetgid     // g: setgid
    	ModeCharDevice = fs.ModeCharDevice // c: Unix character device, when ModeDevice is set
    	ModeSticky     = fs.ModeSticky     // t: sticky
    	ModeIrregular  = fs.ModeIrregular  // ?: non-regular file; nothing else is known about this file
    
    	// Mask for the type bits. For regular files, none will be set.
    	ModeType = fs.ModeType
    
    	ModePerm = fs.ModePerm // Unix permission bits, 0o777
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. src/os/types_windows.go

    			//
    			// Go programs may use ModeIrregular to filter out unusual files (such as
    			// raw device files on Linux, POSIX FIFO special files, and so on), so
    			// to avoid files changing unpredictably from regular to irregular we will
    			// consider DEDUP files to be close enough to regular to treat as such.
    		default:
    			m |= ModeIrregular
    		}
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. src/os/stat_solaris.go

    	case syscall.S_IFLNK:
    		fs.mode |= ModeSymlink
    	case syscall.S_IFREG:
    		// nothing to do
    	case syscall.S_IFSOCK:
    		fs.mode |= ModeSocket
    	case _S_IFNAM, _S_IFDOOR, _S_IFPORT:
    		fs.mode |= ModeIrregular
    	}
    	if fs.sys.Mode&syscall.S_ISGID != 0 {
    		fs.mode |= ModeSetgid
    	}
    	if fs.sys.Mode&syscall.S_ISUID != 0 {
    		fs.mode |= ModeSetuid
    	}
    	if fs.sys.Mode&syscall.S_ISVTX != 0 {
    		fs.mode |= ModeSticky
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. src/io/fs/format_test.go

    			isDir:   true,
    		},
    		"drwxr-xr-x 0 1970-01-01 12:00:00 home/gopher/",
    		"d home/gopher/",
    	},
    	{
    		formatTest{
    			name:    "big",
    			size:    0x7fffffffffffffff,
    			mode:    ModeIrregular | 0o644,
    			modTime: time.Date(1970, time.January, 1, 12, 0, 0, 0, time.UTC),
    			isDir:   false,
    		},
    		"?rw-r--r-- 9223372036854775807 1970-01-01 12:00:00 big",
    		"? big",
    	},
    	{
    		formatTest{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 17:59:28 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. src/io/fs/fs.go

    	ModeSticky                                     // t: sticky
    	ModeIrregular                                  // ?: non-regular file; nothing else is known about this file
    
    	// Mask for the type bits. For regular files, none will be set.
    	ModeType = ModeDir | ModeSymlink | ModeNamedPipe | ModeSocket | ModeDevice | ModeCharDevice | ModeIrregular
    
    	ModePerm FileMode = 0777 // Unix permission bits
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 15 21:21:41 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. doc/godebug.md

    As of Go 1.23 (`winsymlink=1`), mount points no longer have [`os.ModeSymlink`](/pkg/os#ModeSymlink)
    set, and reparse points that are not symlinks, Unix sockets, or dedup files now
    always have [`os.ModeIrregular`](/pkg/os#ModeIrregular) set. As a result of these changes,
    [`filepath.EvalSymlinks`](/pkg/path/filepath#EvalSymlinks) no longer evaluates
    mount points, which was a source of many inconsistencies and bugs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/fsys/fsys.go

    // for the fileInfo methods other than Name, set to the file's name, and Mode
    // set to ModeIrregular.
    type missingFile string
    
    func (f missingFile) Name() string       { return string(f) }
    func (f missingFile) Size() int64        { return 0 }
    func (f missingFile) Mode() fs.FileMode  { return fs.ModeIrregular }
    func (f missingFile) ModTime() time.Time { return time.Unix(0, 0) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  9. src/os/os_windows_test.go

    			continue
    		}
    		var wantType fs.FileMode
    		if test.isMountPoint && winsymlink.Value() != "0" {
    			// Mount points are reparse points, and we no longer treat them as symlinks.
    			wantType = fs.ModeIrregular
    		} else {
    			// This is either a real symlink, or a mount point treated as a symlink.
    			wantType = fs.ModeSymlink
    		}
    		if tp := fi2.Mode().Type(); tp != wantType {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  10. api/except.txt

    pkg os, const ModeAppend FileMode
    pkg os, const ModeCharDevice FileMode
    pkg os, const ModeDevice FileMode
    pkg os, const ModeDir FileMode
    pkg os, const ModeExclusive FileMode
    pkg os, const ModeIrregular FileMode
    pkg os, const ModeNamedPipe FileMode
    pkg os, const ModePerm FileMode
    pkg os, const ModeSetgid FileMode
    pkg os, const ModeSetuid FileMode
    pkg os, const ModeSocket FileMode
    pkg os, const ModeSticky 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