Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for LSTAT (0.06 sec)

  1. src/os/os_test.go

    					t.Error("present twice:", m)
    				}
    				found = true
    				lstat, err := Lstat(dir + "/" + m)
    				if err != nil {
    					t.Fatal(err)
    				}
    				if n.IsDir() != lstat.IsDir() {
    					t.Errorf("%s: IsDir=%v, want %v", m, n.IsDir(), lstat.IsDir())
    				}
    				if n.Type() != lstat.Mode().Type() {
    					t.Errorf("%s: IsDir=%v, want %v", m, n.Type(), lstat.Mode().Type())
    				}
    				info, err := n.Info()
    				if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    	// Stat a volume entry.
    	var st os.FileInfo
    	st, err = Lstat(volumeDir)
    	if err != nil {
    		switch {
    		case osIsNotExist(err):
    			return VolInfo{}, errVolumeNotFound
    		case osIsPermission(err):
    			return VolInfo{}, errDiskAccessDenied
    		case isSysErrIO(err):
    			return VolInfo{}, errFaultyDisk
    		default:
    			return VolInfo{}, err
    		}
    	}
    	// As os.Lstat() doesn't carry other than ModTime(), use ModTime()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    //sys	Linkat(oldDirFd int, oldPath string, newDirFd int, newPath string, flags int) (err error) = SYS___LINKAT_A
    //sys	Listen(s int, n int) (err error)
    //sys	lstat(path string, stat *Stat_LE_t) (err error) = SYS___LSTAT_A
    
    func Lstat(path string, stat *Stat_t) (err error) {
    	var statLE Stat_LE_t
    	err = lstat(path, &statLE)
    	copyStat(stat, &statLE)
    	return
    }
    
    // for checking symlinks begins with $VERSION/ $SYSNAME/ $SYSSYMR/ $SYSSYMA/
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  4. src/cmd/dist/test.go

    	// golang.org/issue/26403
    	if goos == "netbsd" {
    		return false
    	}
    	return true
    }
    
    func isAlpineLinux() bool {
    	if runtime.GOOS != "linux" {
    		return false
    	}
    	fi, err := os.Lstat("/etc/alpine-release")
    	return err == nil && fi.Mode().IsRegular()
    }
    
    func (t *tester) registerRaceTests() {
    	hdr := "Testing race detector"
    	t.registerTest(hdr,
    		&goTest{
    			variant:  "race",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  5. src/cmd/go/internal/test/test.go

    func hashStat(name string) cache.ActionID {
    	h := cache.NewHash("stat")
    	if info, err := os.Stat(name); err != nil {
    		fmt.Fprintf(h, "err %v\n", err)
    	} else {
    		hashWriteStat(h, info)
    	}
    	if info, err := os.Lstat(name); err != nil {
    		fmt.Fprintf(h, "err %v\n", err)
    	} else {
    		hashWriteStat(h, info)
    	}
    	return h.Sum()
    }
    
    func hashWriteStat(h io.Writer, info fs.FileInfo) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go

    	runtime.ExitSyscall()
    	if int64(r0) == -1 {
    		err = errnoErr2(e1, e2)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func lstat(path string, stat *Stat_LE_t) (err error) {
    	var _p0 *byte
    	_p0, err = BytePtrFromString(path)
    	if err != nil {
    		return
    	}
    	runtime.EnterSyscall()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 88.2K bytes
    - Viewed (0)
  7. src/cmd/go/go_test.go

    		}
    
    		removeAll(topTmpdir)
    	}
    
    	os.Exit(r)
    }
    
    func isAlpineLinux() bool {
    	if runtime.GOOS != "linux" {
    		return false
    	}
    	fi, err := os.Lstat("/etc/alpine-release")
    	return err == nil && fi.Mode().IsRegular()
    }
    
    // The length of an mtime tick on this system. This is an estimate of
    // how long we need to sleep to ensure that the mtime of two files is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/lib.go

     * On Windows 7, remove() can force a subsequent create() to fail.
     * S_ISREG() does not exist on Plan 9.
     */
    func mayberemoveoutfile() {
    	if fi, err := os.Lstat(*flagOutfile); err == nil && !fi.Mode().IsRegular() {
    		return
    	}
    	os.Remove(*flagOutfile)
    }
    
    func libinit(ctxt *Link) {
    	Funcalign = thearch.Funcalign
    
    	// add goroot to the end of the libdir list.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
Back to top