50 references to Interop
System.IO.FileSystem.DriveInfo (50)
LibraryImports.g.cs (15)
7internal static extern partial global::Interop.Error ConvertErrorPlatformToPal(int platformErrno); 15internal static extern partial int ConvertErrorPalToPlatform(global::Interop.Error error); 31internal static unsafe extern partial global::Interop.Error GetSocketAddressSizes(int* ipv4SocketAddressSize, int* ipv6SocketAddressSize, int* udsSocketAddressSize, int* maxSocketAddressSize); 39internal static unsafe extern partial global::Interop.Error GetAddressFamily(byte* socketAddress, int socketAddressLen, int* addressFamily); 47internal static unsafe extern partial global::Interop.Error SetAddressFamily(byte* socketAddress, int socketAddressLen, int addressFamily); 55internal static unsafe extern partial global::Interop.Error GetPort(byte* socketAddress, int socketAddressLen, ushort* port); 63internal static unsafe extern partial global::Interop.Error SetPort(byte* socketAddress, int socketAddressLen, ushort port); 71internal static unsafe extern partial global::Interop.Error GetIPv4Address(byte* socketAddress, int socketAddressLen, uint* address); 79internal static unsafe extern partial global::Interop.Error SetIPv4Address(byte* socketAddress, int socketAddressLen, uint address); 87internal static unsafe extern partial global::Interop.Error GetIPv6Address(byte* socketAddress, int socketAddressLen, byte* address, int addressLen, uint* scopeId); 95internal static unsafe extern partial global::Interop.Error SetIPv6Address(byte* socketAddress, int socketAddressLen, byte* address, int addressLen, uint scopeId); 134internal static unsafe extern partial int GetNameInfo(byte* address, uint addressLength, byte isIpv6, byte* host, uint hostLength, byte* service, uint serviceLength, global::Interop.Sys.GetNameInfoFlags flags); 142internal static unsafe partial int GetHostEntryForName(string address, global::System.Net.Sockets.AddressFamily family, global::Interop.Sys.HostEntry* entry) 167static extern unsafe int __PInvoke(byte* __address_native, global::System.Net.Sockets.AddressFamily __family_native, global::Interop.Sys.HostEntry* __entry_native); 176internal static unsafe extern partial void FreeHostEntry(global::Interop.Sys.HostEntry* entry);
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (6)
124_error = Interop.Sys.ConvertErrorPlatformToPal(errno); 141get { return _rawErrno == -1 ? (_rawErrno = Interop.Sys.ConvertErrorPalToPlatform(_error)) : _rawErrno; } 146return Interop.Sys.StrError(RawErrno); 220public static Interop.ErrorInfo Info(this Interop.Error error) 222return new Interop.ErrorInfo(error);
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
16throw Interop.GetExceptionForIoErrno(errorInfo, path, isDirError); 21if (error != Interop.Error.SUCCESS) 99Exception e = Interop.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError); 179internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (4)
44if (File.Exists(Interop.procfs.ProcMountInfoFilePath)) 48using StreamReader reader = new(Interop.procfs.ProcMountInfoFilePath); 53if (Interop.procfs.TryParseMountInfoLine(line, out Interop.procfs.ParsedMount mount))
System\IO\DriveInfo.Unix.cs (21)
18Interop.Error error = Interop.Sys.GetDriveTypeForMountPoint(Name, out type); 24case Interop.Error.SUCCESS: 27case Interop.Error.ELOOP: 28case Interop.Error.ENAMETOOLONG: 29case Interop.Error.ENOENT: 30case Interop.Error.ENOTDIR: 43CheckStatfsResultAndThrowIfNecessary(Interop.Sys.GetFileSystemTypeNameForMountPoint(Name, out format)); 52Interop.Sys.MountPointInformation mpi; 53CheckStatfsResultAndThrowIfNecessary(Interop.Sys.GetSpaceInfoForMountPoint(Name, out mpi)); 62Interop.Sys.MountPointInformation mpi; 63CheckStatfsResultAndThrowIfNecessary(Interop.Sys.GetSpaceInfoForMountPoint(Name, out mpi)); 72Interop.Sys.MountPointInformation mpi; 73CheckStatfsResultAndThrowIfNecessary(Interop.Sys.GetSpaceInfoForMountPoint(Name, out mpi)); 78private void CheckStatfsResultAndThrowIfNecessary(Interop.Error error) 80if (error != Interop.Error.SUCCESS) 90ThrowForError(Interop.Sys.GetLastError()); 94private void ThrowForError(Interop.Error error) 96if (error == Interop.Error.ENOENT) 102throw Interop.GetExceptionForIoErrno(error.Info()); 106private static string[] GetMountPoints() => Interop.Sys.GetAllMountPoints();