Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for umask (0.87 sec)

  1. cmd/xl-storage_unix_test.go

    	"path"
    	"syscall"
    	"testing"
    )
    
    // Based on `man getumask` a vaporware GNU extension to glibc.
    // returns file mode creation mask.
    func getUmask() int {
    	mask := syscall.Umask(0)
    	syscall.Umask(mask)
    	return mask
    }
    
    // Tests if the directory and file creations happen with proper umask.
    func TestIsValidUmaskVol(t *testing.T) {
    	tmpPath := t.TempDir()
    	testCases := []struct {
    		volName       string
    		expectedUmask int
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. cmd/os-reliable.go

    // syscall.ENOENT (parent does not exist).
    func reliableMkdirAll(dirPath string, mode os.FileMode, baseDir string) (err error) {
    	i := 0
    	for {
    		// Creates all the parent directories, with mode 0777 mkdir honors system umask.
    		if err = osMkdirAll(dirPath, mode, baseDir); err != nil {
    			// Retry only for the first retryable error.
    			if osIsNotExist(err) && i == 0 {
    				i++
    				// Determine if os.NotExist error is because of
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Apr 22 17:49:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. cmd/os_unix.go

    // Forked from Golang but chooses to avoid performing lookup
    //
    // osMkdirAll creates a directory named path,
    // along with any necessary parents, and returns nil,
    // or else returns an error.
    // The permission bits perm (before umask) are used for all
    // directories that MkdirAll creates.
    // If path is already a directory, MkdirAll does nothing
    // and returns nil.
    func osMkdirAll(dirPath string, perm os.FileMode, baseDir string) error {
    	if baseDir != "" {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. cmd/xl-storage.go

    	uuid := mustGetUUID()
    	filePath := pathJoin(s.drivePath, minioMetaTmpDeletedBucket, ".writable-check-"+uuid+".tmp")
    
    	// Create top level directories if they don't exist.
    	// with mode 0o777 mkdir honors system umask.
    	mkdirAll(pathutil.Dir(filePath), 0o777, s.drivePath) // don't need to fail here
    
    	w, err := s.openFileDirect(filePath, os.O_CREATE|os.O_WRONLY|os.O_EXCL)
    	if err != nil {
    		return err
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 91.7K bytes
    - Viewed (0)
  5. lib/wasm/wasm_exec.js

    		globalThis.process = {
    			getuid() { return -1; },
    			getgid() { return -1; },
    			geteuid() { return -1; },
    			getegid() { return -1; },
    			getgroups() { throw enosys(); },
    			pid: -1,
    			ppid: -1,
    			umask() { throw enosys(); },
    			cwd() { throw enosys(); },
    			chdir() { throw enosys(); },
    		}
    	}
    
    	if (!globalThis.path) {
    		globalThis.path = {
    			resolve(...pathSegments) {
    				return pathSegments.join("/");
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Sun Dec 08 15:34:47 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. internal/pubsub/mask.go

    	"math"
    	"math/bits"
    )
    
    // Mask allows filtering by a bitset mask.
    type Mask uint64
    
    const (
    	// MaskAll is the mask for all entries.
    	MaskAll Mask = math.MaxUint64
    )
    
    // MaskFromMaskable extracts mask from an interface.
    func MaskFromMaskable(m Maskable) Mask {
    	return Mask(m.Mask())
    }
    
    // Contains returns whether *all* flags in other is present in t.
    func (t Mask) Contains(other Mask) bool {
    	return t&other == other
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Jul 05 21:45:49 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  7. api/go1.2.txt

    pkg syscall (freebsd-386-cgo), func TimevalToNsec(Timeval) int64
    pkg syscall (freebsd-386-cgo), func Truncate(string, int64) error
    pkg syscall (freebsd-386-cgo), func Umask(int) int
    pkg syscall (freebsd-386-cgo), func Undelete(string) error
    pkg syscall (freebsd-386-cgo), func UnixRights(...int) []uint8
    pkg syscall (freebsd-386-cgo), func Unmount(string, int) error
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Oct 18 04:36:59 UTC 2013
    - 1.9M bytes
    - Viewed (1)
  8. api/go1.txt

    pkg syscall (darwin-386), func TimespecToNsec(Timespec) int64
    pkg syscall (darwin-386), func TimevalToNsec(Timeval) int64
    pkg syscall (darwin-386), func Truncate(string, int64) error
    pkg syscall (darwin-386), func Umask(int) int
    pkg syscall (darwin-386), func Undelete(string) error
    pkg syscall (darwin-386), func UnixRights(...int) []uint8
    pkg syscall (darwin-386), func Unmount(string, int) error
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/riscv64error.s

    	VADDVX		X10, V2, V1, V3			// ERROR "invalid vector mask register"
    	VADDVI		$15, V4, V1, V2			// ERROR "invalid vector mask register"
    	VSUBVV		V1, V2, V4, V3			// ERROR "invalid vector mask register"
    	VSUBVX		X10, V2, V1, V3			// ERROR "invalid vector mask register"
    	VRSUBVX		X10, V2, V1, V3			// ERROR "invalid vector mask register"
    	VRSUBVI		$15, V4, V1, V2			// ERROR "invalid vector mask register"
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Wed Sep 24 13:21:53 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  10. internal/pubsub/pubsub.go

    	sub := &Sub[T]{ch: subCh, types: Mask(mask.Mask()), filter: filter}
    	ps.subs = append(ps.subs, sub)
    
    	// We hold a lock, so we are safe to update
    	combined := Mask(atomic.LoadUint64(&ps.types))
    	combined.Merge(Mask(mask.Mask()))
    	atomic.StoreUint64(&ps.types, uint64(combined))
    
    	go func() {
    		<-doneCh
    
    		ps.Lock()
    		defer ps.Unlock()
    		var remainTypes Mask
    		for i, s := range ps.subs {
    			if s == sub {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 06 16:57:30 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top