@@ -27,21 +27,21 @@ public static partial class PythonNT {
2727#if FEATURE_NATIVE
2828
2929 [ SupportedOSPlatform ( "linux" ) ]
30- [ SupportedOSPlatform ( "osx " ) ]
30+ [ SupportedOSPlatform ( "macos " ) ]
3131 internal static Exception GetLastUnixError ( string ? filename = null , string ? filename2 = null )
3232 // On POSIX, GetLastWin32Error returns the errno value, same as GetLastPInvokeError
3333 => GetOsError ( Marshal . GetLastWin32Error ( ) , filename , filename2 ) ;
3434
3535
3636 [ SupportedOSPlatform ( "linux" ) ]
37- [ SupportedOSPlatform ( "osx " ) ]
37+ [ SupportedOSPlatform ( "macos " ) ]
3838 private static int strerror_r ( int code , StringBuilder buffer )
3939 => Syscall . strerror_r ( NativeConvert . ToErrno ( code ) , buffer ) ;
4040
4141
4242#if FEATURE_PIPES
4343 [ SupportedOSPlatform ( "linux" ) ]
44- [ SupportedOSPlatform ( "osx " ) ]
44+ [ SupportedOSPlatform ( "macos " ) ]
4545 private static Tuple < int , Stream , int , Stream > CreatePipeStreamsUnix ( ) {
4646 UnixPipes pipes = UnixPipes . CreatePipes ( ) ;
4747 return Tuple . Create < int , Stream , int , Stream > ( pipes . Reading . Handle , pipes . Reading , pipes . Writing . Handle , pipes . Writing ) ;
@@ -50,7 +50,7 @@ private static Tuple<int, Stream, int, Stream> CreatePipeStreamsUnix() {
5050
5151
5252 [ SupportedOSPlatform ( "linux" ) ]
53- [ SupportedOSPlatform ( "osx " ) ]
53+ [ SupportedOSPlatform ( "macos " ) ]
5454 private static int DuplicateStreamDescriptorUnix ( int fd , int targetfd , out Stream ? stream ) {
5555 int res = targetfd < 0 ? Syscall . dup ( fd ) : Syscall . dup2 ( fd , targetfd ) ;
5656 if ( res < 0 ) throw GetLastUnixError ( ) ;
@@ -87,7 +87,7 @@ private static int DuplicateStreamDescriptorUnix(int fd, int targetfd, out Strea
8787
8888
8989 [ SupportedOSPlatform ( "linux" ) ]
90- [ SupportedOSPlatform ( "osx " ) ]
90+ [ SupportedOSPlatform ( "macos " ) ]
9191 internal static int dupUnix ( int fd , bool closeOnExec ) {
9292 int fd2 = Syscall . dup ( fd ) ;
9393 if ( fd2 == - 1 ) throw GetLastUnixError ( ) ;
@@ -113,39 +113,39 @@ internal static int dupUnix(int fd, bool closeOnExec) {
113113
114114
115115 [ SupportedOSPlatform ( "linux" ) ]
116- [ SupportedOSPlatform ( "osx " ) ]
116+ [ SupportedOSPlatform ( "macos " ) ]
117117 private static void chmodUnix ( string path , int mode ) {
118118 if ( Syscall . chmod ( path , NativeConvert . ToFilePermissions ( ( uint ) mode ) ) == 0 ) return ;
119119 throw GetLastUnixError ( path ) ;
120120 }
121121
122122
123123 [ SupportedOSPlatform ( "linux" ) ]
124- [ SupportedOSPlatform ( "osx " ) ]
124+ [ SupportedOSPlatform ( "macos " ) ]
125125 private static void linkUnix ( string src , string dst ) {
126126 if ( Syscall . link ( src , dst ) == 0 ) return ;
127127 throw GetLastUnixError ( src , dst ) ;
128128 }
129129
130130
131131 [ SupportedOSPlatform ( "linux" ) ]
132- [ SupportedOSPlatform ( "osx " ) ]
132+ [ SupportedOSPlatform ( "macos " ) ]
133133 private static void symlinkUnix ( string src , string dst ) {
134134 if ( Syscall . symlink ( src , dst ) == 0 ) return ;
135135 throw GetLastUnixError ( src , dst ) ;
136136 }
137137
138138
139139 [ SupportedOSPlatform ( "linux" ) ]
140- [ SupportedOSPlatform ( "osx " ) ]
140+ [ SupportedOSPlatform ( "macos " ) ]
141141 private static void renameUnix ( string src , string dst ) {
142142 if ( Syscall . rename ( src , dst ) == 0 ) return ;
143143 throw GetLastUnixError ( src , dst ) ;
144144 }
145145
146146
147147 [ SupportedOSPlatform ( "linux" ) ]
148- [ SupportedOSPlatform ( "osx " ) ]
148+ [ SupportedOSPlatform ( "macos " ) ]
149149 private static object statUnix ( string path ) {
150150 if ( Syscall . stat ( path , out Stat buf ) == 0 ) {
151151 return new stat_result ( buf ) ;
@@ -155,7 +155,7 @@ private static object statUnix(string path) {
155155
156156
157157 [ SupportedOSPlatform ( "linux" ) ]
158- [ SupportedOSPlatform ( "osx " ) ]
158+ [ SupportedOSPlatform ( "macos " ) ]
159159 private static object fstatUnix ( int fd ) {
160160 if ( Syscall . fstat ( fd , out Stat buf ) == 0 ) {
161161 return new stat_result ( buf ) ;
@@ -165,7 +165,7 @@ private static object fstatUnix(int fd) {
165165
166166
167167 [ SupportedOSPlatform ( "linux" ) ]
168- [ SupportedOSPlatform ( "osx " ) ]
168+ [ SupportedOSPlatform ( "macos " ) ]
169169 internal static void ftruncateUnix ( int fd , long length ) {
170170 int result ;
171171 Errno errno ;
@@ -179,7 +179,7 @@ internal static void ftruncateUnix(int fd, long length) {
179179
180180
181181 [ SupportedOSPlatform ( "linux" ) ]
182- [ SupportedOSPlatform ( "osx " ) ]
182+ [ SupportedOSPlatform ( "macos " ) ]
183183 private static void utimeUnix ( string path , long atime_ns , long utime_ns ) {
184184 var atime = new Timespec ( ) ;
185185 atime . tv_sec = atime_ns / 1_000_000_000 ;
@@ -194,7 +194,7 @@ private static void utimeUnix(string path, long atime_ns, long utime_ns) {
194194
195195
196196 [ SupportedOSPlatform ( "linux" ) ]
197- [ SupportedOSPlatform ( "osx " ) ]
197+ [ SupportedOSPlatform ( "macos " ) ]
198198 private static void killUnix ( int pid , int sig ) {
199199 if ( Syscall . kill ( pid , NativeConvert . ToSignum ( sig ) ) == 0 ) return ;
200200 throw GetLastUnixError ( ) ;
0 commit comments