Search in sources :

Example 1 with FILE

use of com.oracle.svm.core.posix.headers.Stdio.FILE in project graal by oracle.

the class PosixCEntryPointSnippets method failFatally.

@Uninterruptible(reason = "Unknown thread state.")
@SubstrateForeignCallTarget
private static void failFatally(int code, CCharPointer message) {
    FILE stderr = fdopen(2, FAIL_FATALLY_FDOPEN_MODE.get());
    fprintfSD(stderr, FAIL_FATALLY_MESSAGE_FORMAT.get(), message, code);
    LibC.exit(code);
}
Also used : FILE(com.oracle.svm.core.posix.headers.Stdio.FILE) SubstrateForeignCallTarget(com.oracle.svm.core.snippets.SubstrateForeignCallTarget) Uninterruptible(com.oracle.svm.core.annotate.Uninterruptible)

Aggregations

Uninterruptible (com.oracle.svm.core.annotate.Uninterruptible)1 FILE (com.oracle.svm.core.posix.headers.Stdio.FILE)1 SubstrateForeignCallTarget (com.oracle.svm.core.snippets.SubstrateForeignCallTarget)1