81 references to Interop
System.Net.Quic (81)
LibraryImports.g.cs (30)
7
internal static extern partial global::
Interop
.Error ConvertErrorPlatformToPal(int platformErrno);
15
internal static extern partial int ConvertErrorPalToPlatform(global::
Interop
.Error error);
107
internal static partial int FLock(global::Microsoft.Win32.SafeHandles.SafeFileHandle fd, global::
Interop
.Sys.LockOperations operation)
136
static extern unsafe int __PInvoke(nint __fd_native, global::
Interop
.Sys.LockOperations __operation_native);
145
internal static partial int FLock(nint fd, global::
Interop
.Sys.LockOperations operation)
159
static extern unsafe int __PInvoke(nint __fd_native, global::
Interop
.Sys.LockOperations __operation_native);
168
internal static unsafe partial void GetControlCharacters(global::
Interop
.Sys.ControlCharacterNames* controlCharacterNames, byte* controlCharacterValues, int controlCharacterLength, out byte posixDisableValue)
179
static extern unsafe void __PInvoke(global::
Interop
.Sys.ControlCharacterNames* __controlCharacterNames_native, byte* __controlCharacterValues_native, int __controlCharacterLength_native, byte* __posixDisableValue_native);
230
internal static partial global::Microsoft.Win32.SafeHandles.SafeFileHandle Open(string filename, global::
Interop
.Sys.OpenFlags flags, int mode)
274
static extern unsafe nint __PInvoke(byte* __filename_native, global::
Interop
.Sys.OpenFlags __flags_native, int __mode_native);
283
internal static unsafe extern partial global::
Interop
.Error Poll(global::
Interop
.PollEvent* pollEvents, uint eventCount, int timeout, uint* triggered);
299
internal static unsafe partial int GetPwUidR(uint uid, out global::
Interop
.Sys.Passwd pwd, byte* buf, int bufLen)
304
fixed (global::
Interop
.Sys.Passwd* __pwd_native = &pwd)
312
static extern unsafe int __PInvoke(uint __uid_native, global::
Interop
.Sys.Passwd* __pwd_native, byte* __buf_native, int __bufLen_native);
321
internal static unsafe partial int GetPwNamR(string name, out global::
Interop
.Sys.Passwd pwd, byte* buf, int bufLen)
333
fixed (global::
Interop
.Sys.Passwd* __pwd_native = &pwd)
349
static extern unsafe int __PInvoke(byte* __name_native, global::
Interop
.Sys.Passwd* __pwd_native, byte* __buf_native, int __bufLen_native);
463
internal static partial int FStat(global::System.Runtime.InteropServices.SafeHandle fd, out global::
Interop
.Sys.FileStatus output)
476
fixed (global::
Interop
.Sys.FileStatus* __output_native = &output)
495
static extern unsafe int __PInvoke(nint __fd_native, global::
Interop
.Sys.FileStatus* __output_native);
504
internal static partial int Stat(string path, out global::
Interop
.Sys.FileStatus output)
517
fixed (global::
Interop
.Sys.FileStatus* __output_native = &output)
536
static extern unsafe int __PInvoke(byte* __path_native, global::
Interop
.Sys.FileStatus* __output_native);
545
internal static partial int LStat(string path, out global::
Interop
.Sys.FileStatus output)
558
fixed (global::
Interop
.Sys.FileStatus* __output_native = &output)
577
static extern unsafe int __PInvoke(byte* __path_native, global::
Interop
.Sys.FileStatus* __output_native);
685
internal static partial int GetWindowSize(global::Microsoft.Win32.SafeHandles.SafeFileHandle terminalHandle, out global::
Interop
.Sys.WinSize winSize)
698
fixed (global::
Interop
.Sys.WinSize* __winSize_native = &winSize)
717
static extern unsafe int __PInvoke(nint __terminalHandle_native, global::
Interop
.Sys.WinSize* __winSize_native);
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (6)
124
_error =
Interop
.Sys.ConvertErrorPlatformToPal(errno);
141
get { return _rawErrno == -1 ? (_rawErrno =
Interop
.Sys.ConvertErrorPalToPlatform(_error)) : _rawErrno; }
146
return
Interop
.Sys.StrError(RawErrno);
220
public static
Interop
.ErrorInfo Info(this
Interop
.Error error)
222
return new
Interop
.ErrorInfo(error);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (5)
171
throw
Interop
.Crypto.CreateOpenSslCryptographicException();
181
throw
Interop
.Crypto.CreateOpenSslCryptographicException();
190
throw
Interop
.Crypto.CreateOpenSslCryptographicException();
209
throw
Interop
.Crypto.CreateOpenSslCryptographicException();
218
throw
Interop
.Crypto.CreateOpenSslCryptographicException();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs (1)
73
Interop
.Crypto.RecursiveFreeX509Stack(handle);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (1)
86
Interop
.Crypto.X509StoreCtxDestroy(handle);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs (2)
18
Interop
.Crypto.Asn1ObjectFree(handle);
38
Interop
.Crypto.Asn1OctetStringFree(handle);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs (1)
34
return
Interop
.Crypto.BioDestroy(h);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (3)
37
Interop
.Crypto.X509Destroy(handle);
57
Interop
.Crypto.X509CrlDestroy(handle);
77
Interop
.Crypto.X509StoreDestroy(handle);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs (1)
19
Interop
.Crypto.X509ExtensionDestroy(handle);
src\libraries\Common\src\System\Net\Security\CertificateValidation.Unix.cs (4)
37
using (SafeX509Handle certHandle =
Interop
.Crypto.X509UpRef(remoteCertificate.Handle))
43
hostNameMatch =
Interop
.Crypto.CheckX509IpAddress(certHandle, addressBytes, addressBytes.Length, hostName, hostName.Length);
51
hostNameMatch =
Interop
.Crypto.CheckX509Hostname(certHandle, matchName, matchName.Length);
55
throw
Interop
.Crypto.CreateOpenSslCryptographicException();
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (23)
26
Interop
.Error err =
Interop
.Sys.GetSocketAddressSizes(&ipv4, &ipv6, &uds, &max);
27
Debug.Assert(err ==
Interop
.Error.SUCCESS, $"Unexpected err: {err}");
39
private static void ThrowOnFailure(
Interop
.Error err)
43
case
Interop
.Error.SUCCESS:
46
case
Interop
.Error.EFAULT:
50
case
Interop
.Error.EAFNOSUPPORT:
63
Interop
.Error err;
66
err =
Interop
.Sys.GetAddressFamily(rawAddress, buffer.Length, (int*)&family);
75
Interop
.Error err;
81
err =
Interop
.Sys.SetAddressFamily(rawAddress, buffer.Length, (int)family);
91
Interop
.Error err;
94
err =
Interop
.Sys.GetPort(rawAddress, buffer.Length, &port);
103
Interop
.Error err;
106
err =
Interop
.Sys.SetPort(rawAddress, buffer.Length, port);
115
Interop
.Error err;
118
err =
Interop
.Sys.GetIPv4Address(rawAddress, buffer.Length, &ipAddress);
128
Interop
.Error err;
132
err =
Interop
.Sys.GetIPv6Address(rawAddress, buffer.Length, ipAddress, address.Length, &localScope);
141
Interop
.Error err;
144
err =
Interop
.Sys.SetIPv4Address(rawAddress, buffer.Length, address);
167
Interop
.Error err;
170
err =
Interop
.Sys.SetIPv6Address(rawAddress, buffer.Length, address, addressLength, scope);
System\Net\Quic\Internal\MsQuicApi.cs (4)
103
path = System.IO.Path.Combine(path,
Interop
.Libraries.MsQuic);
115
loaded = NativeLibrary.TryLoad($"{
Interop
.Libraries.MsQuic}.{s_minMsQuicVersion.Major}", typeof(MsQuicApi).Assembly, null, out msQuicHandle) ||
116
NativeLibrary.TryLoad(
Interop
.Libraries.MsQuic, typeof(MsQuicApi).Assembly, null, out msQuicHandle);
176
MsQuicLibraryVersion = $"{
Interop
.Libraries.MsQuic} {Version} ({gitHash})";