Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for unixAbs (0.11 sec)

  1. src/path/filepath/path_plan9.go

    }
    
    func splitList(path string) []string {
    	if path == "" {
    		return []string{}
    	}
    	return strings.Split(path, string(ListSeparator))
    }
    
    func abs(path string) (string, error) {
    	return unixAbs(path)
    }
    
    func join(elem []string) string {
    	// If there's a bug here, fix the logic in ./path_unix.go too.
    	for i, e := range elem {
    		if e != "" {
    			return Clean(strings.Join(elem[i:], string(Separator)))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 926 bytes
    - Viewed (0)
  2. src/path/filepath/path_unix.go

    }
    
    func splitList(path string) []string {
    	if path == "" {
    		return []string{}
    	}
    	return strings.Split(path, string(ListSeparator))
    }
    
    func abs(path string) (string, error) {
    	return unixAbs(path)
    }
    
    func join(elem []string) string {
    	// If there's a bug here, fix the logic in ./path_plan9.go too.
    	for i, e := range elem {
    		if e != "" {
    			return Clean(strings.Join(elem[i:], string(Separator)))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 970 bytes
    - Viewed (0)
  3. src/path/filepath/path.go

    // path name for a given file is not guaranteed to be unique.
    // Abs calls [Clean] on the result.
    func Abs(path string) (string, error) {
    	return abs(path)
    }
    
    func unixAbs(path string) (string, error) {
    	if IsAbs(path) {
    		return Clean(path), nil
    	}
    	wd, err := os.Getwd()
    	if err != nil {
    		return "", err
    	}
    	return Join(wd, path), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. src/cmd/dist/build.go

    func packagefile(pkg string) string {
    	return pathf("%s/pkg/obj/go-bootstrap/%s_%s/%s.a", goroot, goos, goarch, pkg)
    }
    
    // unixOS is the set of GOOS values matched by the "unix" build tag.
    // This is the same list as in go/build/syslist.go and
    // cmd/go/internal/imports/build.go.
    var unixOS = map[string]bool{
    	"aix":       true,
    	"android":   true,
    	"darwin":    true,
    	"dragonfly": true,
    	"freebsd":   true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  5. src/go/build/build.go

    		return true
    	}
    	if ctxt.GOOS == "illumos" && name == "solaris" {
    		return true
    	}
    	if ctxt.GOOS == "ios" && name == "darwin" {
    		return true
    	}
    	if name == "unix" && unixOS[ctxt.GOOS] {
    		return true
    	}
    	if name == "boringcrypto" {
    		name = "goexperiment.boringcrypto" // boringcrypto is an old name for goexperiment.boringcrypto
    	}
    
    	// other tags
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  6. src/os/os_test.go

    				// content.  Similarly, atime is set whenever
    				// the contents are accessed; also, it is set
    				// whenever mtime is set.
    			case "windows":
    				t.Error(errormsg)
    			default: // unix's
    				if got, want := at0, tt.wantATime; !got.Equal(want) {
    					mounts, err := ReadFile("/bin/mounts")
    					if err != nil {
    						mounts, err = ReadFile("/etc/mtab")
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
Back to top