Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Fixwd (0.04 sec)

  1. src/cmd/vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build go1.5
    
    package plan9
    
    import "syscall"
    
    func fixwd() {
    	syscall.Fixwd()
    }
    
    func Getwd() (wd string, err error) {
    	return syscall.Getwd()
    }
    
    func Chdir(path string) error {
    	return syscall.Chdir(path)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 373 bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/plan9/syscall_plan9.go

    func Open(path string, mode int) (fd int, err error) {
    	fixwd()
    	return open(path, mode)
    }
    
    //sys	create(path string, mode int, perm uint32) (fd int, err error)
    
    func Create(path string, mode int, perm uint32) (fd int, err error) {
    	fixwd()
    	return create(path, mode, perm)
    }
    
    //sys	remove(path string) (err error)
    
    func Remove(path string) error {
    	fixwd()
    	return remove(path)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 7K bytes
    - Viewed (0)
  3. src/syscall/pwd_plan9.go

    func Fixwd() {
    	wdmu.Lock()
    	defer wdmu.Unlock()
    	fixwdLocked()
    }
    
    func fixwdLocked() {
    	if !wdSet {
    		return
    	}
    	// always call chdir when getwd returns an error
    	wd, _ := getwd()
    	if wd == wdStr {
    		return
    	}
    	if err := chdir(wdStr); err != nil {
    		return
    	}
    }
    
    // If any of the paths is relative, call Fixwd and return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. src/syscall/syscall_plan9.go

    func Open(path string, mode int) (fd int, err error) {
    	if fixwd(path) {
    		defer runtime.UnlockOSThread()
    	}
    	return open(path, mode)
    }
    
    //sys	create(path string, mode int, perm uint32) (fd int, err error)
    
    func Create(path string, mode int, perm uint32) (fd int, err error) {
    	if fixwd(path) {
    		defer runtime.UnlockOSThread()
    	}
    	return create(path, mode, perm)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/plan9/pwd_plan9.go

    // Copyright 2015 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.
    
    //go:build !go1.5
    
    package plan9
    
    func fixwd() {
    }
    
    func Getwd() (wd string, err error) {
    	fd, err := open(".", O_RDONLY)
    	if err != nil {
    		return "", err
    	}
    	defer Close(fd)
    	return Fd2path(fd)
    }
    
    func Chdir(path string) error {
    	return chdir(path)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 413 bytes
    - Viewed (0)
Back to top