Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 39 for pathpkg (0.11 sec)

  1. src/go/build/build.go

    	"go/ast"
    	"go/build/constraint"
    	"go/doc"
    	"go/token"
    	"internal/buildcfg"
    	"internal/godebug"
    	"internal/goroot"
    	"internal/goversion"
    	"internal/platform"
    	"io"
    	"io/fs"
    	"os"
    	"os/exec"
    	pathpkg "path"
    	"path/filepath"
    	"runtime"
    	"slices"
    	"strconv"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    	_ "unsafe" // for linkname
    )
    
    // A Context specifies the supporting context for a build.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  2. src/syscall/fs_wasip1.go

    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	errno := path_unlink_file(dirFd, pathPtr, pathLen)
    	return errnoErr(errno)
    }
    
    func Rmdir(path string) error {
    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	errno := path_remove_directory(dirFd, pathPtr, pathLen)
    	return errnoErr(errno)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  3. src/go/internal/srcimporter/srcimporter_test.go

    	// Make sure we recognize the situation and report an error.
    
    	mathPkg := types.NewPackage("math", "math") // incomplete package
    	importer := New(&build.Default, token.NewFileSet(), map[string]*types.Package{mathPkg.Path(): mathPkg})
    	_, err := importer.ImportFrom("math", ".", 0)
    	if err == nil || !strings.HasPrefix(err.Error(), "reimport") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. src/cmd/internal/cov/readcovdata.go

    // indicate what to do if errors are detected, and 'matchpkg' is a
    // caller-provided function that can be used to select specific
    // packages by name (if nil, then all packages are included).
    func MakeCovDataReader(vis CovDataVisitor, indirs []string, verbosityLevel int, flags CovDataReaderFlags, matchpkg func(name string) bool) *CovDataReader {
    	return &CovDataReader{
    		vis:            vis,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/unveil_openbsd.go

    func Unveil(path string, flags string) error {
    	if err := supportsUnveil(); err != nil {
    		return err
    	}
    	pathPtr, err := BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    	flagsPtr, err := BytePtrFromString(flags)
    	if err != nil {
    		return err
    	}
    	return unveil(pathPtr, flagsPtr)
    }
    
    // UnveilBlock blocks future unveil calls.
    // For more information see unveil(2).
    func UnveilBlock() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  6. src/cmd/covdata/covdata.go

    var memprofileflag = flag.String("memprofile", "", "Write memory profile to specified file")
    var memprofilerateflag = flag.Int("memprofilerate", 0, "Set memprofile sampling rate to value")
    
    var matchpkg func(name string) bool
    
    var atExitFuncs []func()
    
    func atExit(f func()) {
    	atExitFuncs = append(atExitFuncs, f)
    }
    
    func Exit(code int) {
    	for i := len(atExitFuncs) - 1; i >= 0; i-- {
    		f := atExitFuncs[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. operator/pkg/util/path.go

    	if !ok {
    		return false
    	}
    
    	n, err := strconv.Atoi(pe)
    	return err == nil && n >= InsertIndex
    }
    
    // PathKV returns the key and value string parts of the entire key/value path element.
    // It returns an error if pe is not a key/value path element.
    func PathKV(pe string) (k, v string, err error) {
    	if !IsKVPathElement(pe) {
    		return "", "", fmt.Errorf("%s is not a valid key:value path element", pe)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. src/syscall/syscall_windows.go

    func Chdir(path string) (err error) {
    	pathp, err := UTF16PtrFromString(path)
    	if err != nil {
    		return err
    	}
    	return SetCurrentDirectory(pathp)
    }
    
    func Mkdir(path string, mode uint32) (err error) {
    	pathp, err := UTF16PtrFromString(path)
    	if err != nil {
    		return err
    	}
    	return CreateDirectory(pathp, nil)
    }
    
    func Rmdir(path string) (err error) {
    	pathp, err := UTF16PtrFromString(path)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go

    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    func Statfs(path string, buf *Statfs_t) (err error) {
    	pathp, err := BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    	_, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(pathp)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  10. src/syscall/syscall_linux_arm.go

    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    func Statfs(path string, buf *Statfs_t) (err error) {
    	pathp, err := BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    	_, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(pathp)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.1K bytes
    - Viewed (0)
Back to top