@@ -774,23 +774,6 @@ public override string __repr__(CodeContext context) {
774774 }
775775 }
776776
777- [ PythonHidden ( PlatformsAttribute . PlatformFamily . Windows ) ]
778- public static uname_result uname ( ) {
779- Mono . Unix . Native . Utsname info ;
780- Mono . Unix . Native . Syscall . uname ( out info ) ;
781- return new uname_result ( info . sysname , info . nodename , info . release , info . version , info . machine ) ;
782- }
783-
784- [ PythonHidden ( PlatformsAttribute . PlatformFamily . Windows ) ]
785- public static BigInteger getuid ( ) {
786- return Mono . Unix . Native . Syscall . getuid ( ) ;
787- }
788-
789- [ PythonHidden ( PlatformsAttribute . PlatformFamily . Windows ) ]
790- public static BigInteger geteuid ( ) {
791- return Mono . Unix . Native . Syscall . geteuid ( ) ;
792- }
793-
794777#endif
795778
796779#if FEATURE_FILESYSTEM
@@ -1286,12 +1269,15 @@ public sealed class stat_result : PythonTuple {
12861269
12871270 internal stat_result ( int mode ) : this ( new object [ 10 ] { mode , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , null ) { }
12881271
1272+ [ SupportedOSPlatform ( "linux" ) ]
1273+ [ SupportedOSPlatform ( "macos" ) ]
12891274 internal stat_result ( Mono . Unix . Native . Stat stat )
12901275 : this ( new object [ 16 ] { Mono . Unix . Native . NativeConvert . FromFilePermissions ( stat . st_mode ) , ToInt ( stat . st_ino ) , ToInt ( stat . st_dev ) , ToInt ( stat . st_nlink ) , ToInt ( stat . st_uid ) , ToInt ( stat . st_gid ) , ToInt ( stat . st_size ) ,
12911276 ToInt ( stat . st_atime ) , ToInt ( stat . st_mtime ) , ToInt ( stat . st_ctime ) ,
12921277 stat . st_atime + stat . st_atime_nsec / ( double ) nanosecondsPerSeconds , stat . st_mtime + stat . st_mtime_nsec / ( double ) nanosecondsPerSeconds , stat . st_ctime + stat . st_ctime_nsec / ( double ) nanosecondsPerSeconds ,
12931278 ToInt ( stat . st_atime * nanosecondsPerSeconds + stat . st_atime_nsec ) , ToInt ( stat . st_mtime * nanosecondsPerSeconds + stat . st_mtime_nsec ) , ToInt ( stat . st_ctime * nanosecondsPerSeconds + stat . st_ctime_nsec ) } , null ) { }
12941279
1280+ [ SupportedOSPlatform ( "windows" ) ]
12951281 internal stat_result ( int mode , ulong fileidx , long size , long st_atime_ns , long st_mtime_ns , long st_ctime_ns )
12961282 : this ( new object [ 16 ] { mode , ToInt ( fileidx ) , 0 , 0 , 0 , 0 , ToInt ( size ) ,
12971283 ToInt ( st_atime_ns / nanosecondsPerSeconds ) , ToInt ( st_mtime_ns / nanosecondsPerSeconds ) , ToInt ( st_ctime_ns / nanosecondsPerSeconds ) ,
0 commit comments