@@ -2742,49 +2742,49 @@ public TruffleString crypt(TruffleString word, TruffleString salt) throws PosixE
2742
2742
@ ExportMessage
2743
2743
@ SuppressWarnings ("unused" )
2744
2744
long semOpen (Object name , int openFlags , int mode , int value ) throws PosixException {
2745
- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2745
+ throw posixException ( OSErrorEnum . EINVAL );
2746
2746
}
2747
2747
2748
2748
@ ExportMessage
2749
2749
@ SuppressWarnings ("unused" )
2750
2750
void semClose (long handle ) throws PosixException {
2751
- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2751
+ throw posixException ( OSErrorEnum . EINVAL );
2752
2752
}
2753
2753
2754
2754
@ ExportMessage
2755
2755
@ SuppressWarnings ("unused" )
2756
2756
void semUnlink (Object name ) throws PosixException {
2757
- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2757
+ throw posixException ( OSErrorEnum . ENOENT );
2758
2758
}
2759
2759
2760
2760
@ ExportMessage
2761
2761
@ SuppressWarnings ("unused" )
2762
2762
int semGetValue (long handle ) throws PosixException {
2763
- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2763
+ throw posixException ( OSErrorEnum . EINVAL );
2764
2764
}
2765
2765
2766
2766
@ ExportMessage
2767
2767
@ SuppressWarnings ("unused" )
2768
2768
void semPost (long handle ) throws PosixException {
2769
- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2769
+ throw posixException ( OSErrorEnum . EINVAL );
2770
2770
}
2771
2771
2772
2772
@ ExportMessage
2773
2773
@ SuppressWarnings ("unused" )
2774
2774
void semWait (long handle ) throws PosixException {
2775
- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2775
+ throw posixException ( OSErrorEnum . EINVAL );
2776
2776
}
2777
2777
2778
2778
@ ExportMessage
2779
2779
@ SuppressWarnings ("unused" )
2780
2780
boolean semTryWait (long handle ) throws PosixException {
2781
- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2781
+ throw posixException ( OSErrorEnum . EINVAL );
2782
2782
}
2783
2783
2784
2784
@ ExportMessage
2785
2785
@ SuppressWarnings ("unused" )
2786
2786
boolean semTimedWait (long handle , long deadlineNs ) throws PosixException {
2787
- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2787
+ throw posixException ( OSErrorEnum . EINVAL );
2788
2788
}
2789
2789
2790
2790
@ ExportMessage
0 commit comments