@@ -2742,49 +2742,49 @@ public TruffleString crypt(TruffleString word, TruffleString salt) throws PosixE
27422742 @ ExportMessage
27432743 @ SuppressWarnings ("unused" )
27442744 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 );
27462746 }
27472747
27482748 @ ExportMessage
27492749 @ SuppressWarnings ("unused" )
27502750 void semClose (long handle ) throws PosixException {
2751- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2751+ throw posixException ( OSErrorEnum . EINVAL );
27522752 }
27532753
27542754 @ ExportMessage
27552755 @ SuppressWarnings ("unused" )
27562756 void semUnlink (Object name ) throws PosixException {
2757- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2757+ throw posixException ( OSErrorEnum . ENOENT );
27582758 }
27592759
27602760 @ ExportMessage
27612761 @ SuppressWarnings ("unused" )
27622762 int semGetValue (long handle ) throws PosixException {
2763- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2763+ throw posixException ( OSErrorEnum . EINVAL );
27642764 }
27652765
27662766 @ ExportMessage
27672767 @ SuppressWarnings ("unused" )
27682768 void semPost (long handle ) throws PosixException {
2769- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2769+ throw posixException ( OSErrorEnum . EINVAL );
27702770 }
27712771
27722772 @ ExportMessage
27732773 @ SuppressWarnings ("unused" )
27742774 void semWait (long handle ) throws PosixException {
2775- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2775+ throw posixException ( OSErrorEnum . EINVAL );
27762776 }
27772777
27782778 @ ExportMessage
27792779 @ SuppressWarnings ("unused" )
27802780 boolean semTryWait (long handle ) throws PosixException {
2781- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2781+ throw posixException ( OSErrorEnum . EINVAL );
27822782 }
27832783
27842784 @ ExportMessage
27852785 @ SuppressWarnings ("unused" )
27862786 boolean semTimedWait (long handle , long deadlineNs ) throws PosixException {
2787- throw new UnsupportedPosixFeatureException ( "semaphore operations not supported" );
2787+ throw posixException ( OSErrorEnum . EINVAL );
27882788 }
27892789
27902790 @ ExportMessage
0 commit comments