Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 113 for fstat (0.96 sec)

  1. src/cmd/compile/internal/walk/complit.go

    		// n can be directly represented in the read-only data section.
    		// Make direct reference to the static data. See issue 12841.
    		vstat := readonlystaticname(n.Type())
    		fixedlit(inInitFunction, initKindStatic, n, vstat, init)
    		return typecheck.Expr(vstat)
    	}
    	var_ := typecheck.TempAt(base.Pos, ir.CurFunc, n.Type())
    	anylit(n, var_, init)
    	return var_
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/mod/zip/zip.go

    type File interface {
    	// Path returns a clean slash-separated relative path from the module root
    	// directory to the file.
    	Path() string
    
    	// Lstat returns information about the file. If the file is a symbolic link,
    	// Lstat returns information about the link itself, not the file it points to.
    	Lstat() (os.FileInfo, error)
    
    	// Open provides access to the data within a regular file. Open may return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 31K bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/shell.go

    // When running as a user with sufficient privileges, we may delete
    // even device files, for example, which is not intended.
    func mayberemovefile(s string) {
    	if fi, err := os.Lstat(s); err == nil && !fi.Mode().IsRegular() {
    		return
    	}
    	os.Remove(s)
    }
    
    // writeFile writes the text to file.
    func (sh *Shell) writeFile(file string, text []byte) error {
    	if cfg.BuildN || cfg.BuildX {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modfetch/codehost/shell.go

    				fmt.Fprintf(os.Stderr, "?%s\n", err)
    				continue
    			}
    			for _, tag := range tags {
    				fmt.Printf("%s\n", tag)
    			}
    
    		case "stat":
    			if len(f) != 2 {
    				fmt.Fprintf(os.Stderr, "?usage: stat rev\n")
    				continue
    			}
    			info, err := repo.Stat(f[1])
    			if err != nil {
    				fmt.Fprintf(os.Stderr, "?%s\n", err)
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/imports/scan.go

    		return nil, nil, err
    	}
    	var files []string
    	for _, info := range infos {
    		name := info.Name()
    
    		// If the directory entry is a symlink, stat it to obtain the info for the
    		// link target instead of the link itself.
    		if info.Mode()&fs.ModeSymlink != 0 {
    			info, err = fsys.Stat(filepath.Join(dir, name))
    			if err != nil {
    				continue // Ignore broken symlinks.
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 23 19:36:38 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  6. src/cmd/go/internal/lockedfile/lockedfile_plan9.go

    		}
    	}
    
    	return false
    }
    
    func openFile(name string, flag int, perm fs.FileMode) (*os.File, error) {
    	// Plan 9 uses a mode bit instead of explicit lock/unlock syscalls.
    	//
    	// Per http://man.cat-v.org/plan_9/5/stat: “Exclusive use files may be open
    	// for I/O by only one fid at a time across all clients of the server. If a
    	// second open is attempted, it draws an error.”
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/mmap/mmap_unix.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package mmap
    
    import (
    	"fmt"
    	"io/fs"
    	"os"
    	"syscall"
    )
    
    func mmapFile(f *os.File) (Data, error) {
    	st, err := f.Stat()
    	if err != nil {
    		return Data{}, err
    	}
    	size := st.Size()
    	pagesize := int64(os.Getpagesize())
    	if int64(int(size+(pagesize-1))) != size+(pagesize-1) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 886 bytes
    - Viewed (0)
  8. src/cmd/go/internal/vcweb/fossil.go

    	if err := os.WriteFile(cgiPath, []byte(cgiScript), 0755); err != nil {
    		return nil, err
    	}
    
    	handler := http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		if _, err := os.Stat(db); err != nil {
    			http.Error(w, err.Error(), http.StatusInternalServerError)
    			return
    		}
    		ch := &cgi.Handler{
    			Env:    env,
    			Logger: logger,
    			Path:   h.fossilPath,
    			Args:   []string{cgiPath},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 17:47:26 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modfetch/codehost/vcs.go

    func (r *vcsRepo) Latest(ctx context.Context) (*RevInfo, error) {
    	return r.Stat(ctx, "latest")
    }
    
    func (r *vcsRepo) ReadFile(ctx context.Context, rev, file string, maxSize int64) ([]byte, error) {
    	if rev == "latest" {
    		rev = r.cmd.latest
    	}
    	_, err := r.Stat(ctx, rev) // download rev into local repo
    	if err != nil {
    		return nil, err
    	}
    
    	// r.Stat acquires r.mu, so lock after that.
    	unlock, err := r.mu.Lock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/version/version.go

    		if gover.TestVersion != "" {
    			v = gover.TestVersion + " (TESTGO_VERSION)"
    		}
    		fmt.Printf("go version %s %s/%s\n", v, runtime.GOOS, runtime.GOARCH)
    		return
    	}
    
    	for _, arg := range args {
    		info, err := os.Stat(arg)
    		if err != nil {
    			fmt.Fprintf(os.Stderr, "%v\n", err)
    			base.SetExitStatus(1)
    			continue
    		}
    		if info.IsDir() {
    			scanDir(arg)
    		} else {
    			scanFile(arg, info, true)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 19:27:00 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top