Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Fixwd (0.15 sec)

  1. 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)
  2. 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)
Back to top