Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for S_ISREG (0.38 sec)

  1. src/cmd/link/internal/ld/lib.go

    }
    
    /*
     * Unix doesn't like it when we write to a running (or, sometimes,
     * recently run) binary, so remove the output file before writing it.
     * On Windows 7, remove() can force a subsequent create() to fail.
     * S_ISREG() does not exist on Plan 9.
     */
    func mayberemoveoutfile() {
    	if fi, err := os.Lstat(*flagOutfile); err == nil && !fi.Mode().IsRegular() {
    		return
    	}
    	os.Remove(*flagOutfile)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
Back to top