All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.cli.internal.PidSubst Maven / Gradle / Ivy

The newest version!
package scala.cli.internal;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
import com.oracle.svm.core.posix.headers.Unistd;
import org.graalvm.nativeimage.Platform;
import org.graalvm.nativeimage.Platforms;

import java.nio.file.Path;

@TargetClass(className = "scala.cli.internal.Pid")
@Platforms({Platform.LINUX.class, Platform.DARWIN.class})
final class PidSubst {

    @Substitute
    Integer get() {
        return Unistd.getpid();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy