Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 663 for os (0.13 sec)

  1. maven-model-builder/src/main/java/org/apache/maven/utils/Os.java

    import java.util.stream.Stream;
    
    /**
     * OS support
     */
    public class Os {
    
        /**
         * The OS Name.
         */
        public static final String OS_NAME = System.getProperty("os.name").toLowerCase(Locale.ENGLISH);
    
        /**
         * The OA architecture.
         */
        public static final String OS_ARCH = System.getProperty("os.arch").toLowerCase(Locale.ENGLISH);
    
        /**
         * The OS version.
         */
    Java
    - Registered: 2023-12-03 03:35
    - Last Modified: 2023-09-22 06:01
    - 6.7K bytes
    - Viewed (0)
  2. .teamcity/src/main/kotlin/common/Os.kt

        AMD64("64bit", "amd64", "x86_64"),
        AARCH64("aarch64", "aarch64", "aarch64");
    
        fun asName() = name.lowercase().toCapitalized()
    }
    
    enum class Os(
        val agentRequirement: String,
        val androidHome: String,
        val jprofilerHome: String,
        val perfTestWorkingDir: String = "%teamcity.build.checkoutDir%",
        val perfTestJavaVendor: JvmVendor = JvmVendor.openjdk,
    Plain Text
    - Registered: 2024-02-28 11:36
    - Last Modified: 2023-09-24 06:56
    - 2.4K bytes
    - Viewed (0)
  3. cmd/os-reliable.go

    			return errFileAccessDenied
    		}
    		return osErrToFileErr(err)
    	}
    
    	return nil
    }
    
    // Reliably retries os.MkdirAll if for some reason os.MkdirAll returns
    // syscall.ENOENT (parent does not exist).
    func reliableMkdirAll(dirPath string, mode os.FileMode, baseDir string) (err error) {
    	i := 0
    	for {
    		// Creates all the parent directories, with mode 0777 mkdir honors system umask.
    Go
    - Registered: 2024-02-25 19:28
    - Last Modified: 2023-09-13 15:14
    - 5.4K bytes
    - Viewed (0)
  4. cmd/os_unix.go

    			return &buf
    		},
    	}
    )
    
    // unexpectedFileMode is a sentinel (and bogus) os.FileMode
    // value used to represent a syscall.DT_UNKNOWN Dirent.Type.
    const unexpectedFileMode os.FileMode = os.ModeNamedPipe | os.ModeSocket | os.ModeDevice
    
    func parseDirEnt(buf []byte) (consumed int, name []byte, typ os.FileMode, err error) {
    	// golang.org/issue/15653
    	dirent := (*syscall.Dirent)(unsafe.Pointer(&buf[0]))
    Go
    - Registered: 2024-02-25 19:28
    - Last Modified: 2024-01-18 07:03
    - 9.3K bytes
    - Viewed (0)
  5. cmd/os_other.go

    package cmd
    
    import (
    	"io"
    	"os"
    	"syscall"
    )
    
    func access(name string) error {
    	_, err := os.Lstat(name)
    	return err
    }
    
    func osMkdirAll(dirPath string, perm os.FileMode, _ string) error {
    	// baseDir is not honored in plan9 and solaris platforms.
    	return os.MkdirAll(dirPath, perm)
    }
    
    Go
    - Registered: 2024-02-25 19:28
    - Last Modified: 2023-09-13 15:14
    - 4K bytes
    - Viewed (0)
  6. cmd/os-instrumented.go

    func Stat(name string) (info os.FileInfo, err error) {
    	defer updateOSMetrics(osMetricStat, name)(err)
    	return os.Stat(name)
    }
    
    // Create captures time taken to call os.Create
    func Create(name string) (f *os.File, err error) {
    	defer updateOSMetrics(osMetricCreate, name)(err)
    	return os.Create(name)
    }
    
    // Fdatasync captures time taken to call Fdatasync
    func Fdatasync(f *os.File) (err error) {
    	fn := ""
    	if f != nil {
    Go
    - Registered: 2024-02-25 19:28
    - Last Modified: 2024-02-15 01:09
    - 6.3K bytes
    - Viewed (0)
  7. cmd/os_windows.go

    package cmd
    
    import (
    	"os"
    	"path/filepath"
    	"syscall"
    )
    
    func access(name string) error {
    	_, err := os.Lstat(name)
    	return err
    }
    
    func osMkdirAll(dirPath string, perm os.FileMode, _ string) error {
    	// baseDir is not honored in windows platform
    	return os.MkdirAll(dirPath, perm)
    }
    
    Go
    - Registered: 2024-02-25 19:28
    - Last Modified: 2023-10-18 18:08
    - 5.1K bytes
    - Viewed (0)
  8. cmd/os-rename_nolinux.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"os"
    )
    
    // RenameSys is low level call in case of non-Linux this just uses os.Rename()
    func RenameSys(src, dst string) (err error) {
    	return os.Rename(src, dst)
    Go
    - Registered: 2024-02-25 19:28
    - Last Modified: 2024-02-15 01:09
    - 985 bytes
    - Viewed (0)
  9. cmd/os-readdir_test.go

    	if runtime.GOOS == "linux" {
    		permDir := path.Join(os.TempDir(), "perm-dir")
    		if err := os.MkdirAll(permDir, os.FileMode(0o200)); err != nil {
    			t.Fatal(err)
    		}
    		defer os.RemoveAll(permDir)
    
    		// Check if permission denied.
    		if _, err := readDir(permDir); err == nil {
    			t.Fatalf("expected = an error, got: nil")
    		}
    	}
    }
    
    // Represents data type for all the test results.
    type result struct {
    Go
    - Registered: 2024-02-25 19:28
    - Last Modified: 2022-09-19 18:05
    - 7.5K bytes
    - Viewed (0)
  10. cmd/os-rename_linux.go

    Harshavardhana <******@****.***> 1707959378 -0800
    Go
    - Registered: 2024-02-25 19:28
    - Last Modified: 2024-02-15 01:09
    - 999 bytes
    - Viewed (0)
Back to top