Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for unixAbs (0.27 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/go/internal/modindex/syslist.go

    	"openbsd":   true,
    	"plan9":     true,
    	"solaris":   true,
    	"wasip1":    true,
    	"windows":   true,
    	"zos":       true,
    }
    
    // unixOS is the set of GOOS values matched by the "unix" build tag.
    // This is not used for filename matching.
    // This list also appears in cmd/dist/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: Tue Apr 04 01:45:58 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/go/build/syslist.go

    	"plan9":     true,
    	"solaris":   true,
    	"wasip1":    true,
    	"windows":   true,
    	"zos":       true,
    }
    
    // unixOS is the set of GOOS values matched by the "unix" build tag.
    // This is not used for filename matching.
    // This list also appears in cmd/dist/build.go and
    // cmd/go/internal/imports/build.go.
    var unixOS = map[string]bool{
    	"aix":       true,
    	"android":   true,
    	"darwin":    true,
    	"dragonfly": true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 30 18:50:57 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. src/runtime/fds_unix.go

    		// another program, we don't want to mess around with the file
    		// descriptors.
    		return
    	}
    
    	const (
    		// F_GETFD, EBADF, O_RDWR are standard across all unixes we support, so
    		// we define them here rather than in each of the OS specific files.
    		F_GETFD = 0x01
    		EBADF   = 0x09
    		O_RDWR  = 0x02
    	)
    
    	devNull := []byte("/dev/null\x00")
    	for i := 0; i < 3; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:20:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. src/cmd/go/internal/imports/build.go

    	"plan9":     true,
    	"solaris":   true,
    	"wasip1":    true,
    	"windows":   true,
    	"zos":       true,
    }
    
    // unixOS is the set of GOOS values matched by the "unix" build tag.
    // This is not used for filename matching.
    // This is the same list as in go/build/syslist.go and cmd/dist/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: Thu Mar 30 18:50:57 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  8. src/syscall/asm_unix_amd64.s

    // license that can be found in the LICENSE file.
    
    //go:build dragonfly || freebsd || netbsd
    
    #include "textflag.h"
    #include "funcdata.h"
    
    //
    // System call support for AMD64 unixes
    //
    
    // func Syscall(trap int64, a1, a2, a3 int64) (r1, r2, err int64)
    // func Syscall6(trap int64, a1, a2, a3, a4, a5, a6 int64) (r1, r2, err int64)
    // Trap # in AX, args in DI SI DX, return in AX DX
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:40:39 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  9. src/syscall/asm_unix_386.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build freebsd || netbsd
    
    #include "textflag.h"
    #include "funcdata.h"
    
    //
    // System call support for some 386 unixes
    //
    
    // func Syscall(trap int32, a1, a2, a3 int32) (r1, r2, err int32);
    // func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32);
    // Trap # in AX, args on stack above caller pc.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  10. src/runtime/debug_test.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // TODO: This test could be implemented on all (most?) UNIXes if we
    // added syscall.Tgkill more widely.
    
    // We skip all of these tests under race mode because our test thread
    // spends all of its time in the race runtime, which isn't a safe
    // point.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 15:08:04 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top