File: _generated\0\LibraryImports.g.cs
Web Access
Project: src\aspnetcore\src\Servers\Kestrel\Transport.DirectTls\src\Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.csproj (Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls)
// <auto-generated/>
internal static partial class NativeTls
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.41901")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial int epoll_create1(int flags)
    {
        unsafe
        {
            int __lastError;
            int __retVal;
            {
                global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                __retVal = __PInvoke(flags);
                __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
            }
 
            global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("libc", EntryPoint = "epoll_create1", ExactSpelling = true)]
            static extern unsafe int __PInvoke(int __flags_native);
        }
    }
}
internal static partial class NativeTls
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.41901")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial int epoll_ctl(int epfd, int op, int fd, nint ev)
    {
        unsafe
        {
            int __lastError;
            int __retVal;
            {
                global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                __retVal = __PInvoke(epfd, op, fd, ev);
                __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
            }
 
            global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("libc", EntryPoint = "epoll_ctl", ExactSpelling = true)]
            static extern unsafe int __PInvoke(int __epfd_native, int __op_native, int __fd_native, nint __ev_native);
        }
    }
}
internal static partial class NativeTls
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.41901")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial int close(int fd)
    {
        unsafe
        {
            int __lastError;
            int __retVal;
            {
                global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                __retVal = __PInvoke(fd);
                __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
            }
 
            global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("libc", EntryPoint = "close", ExactSpelling = true)]
            static extern unsafe int __PInvoke(int __fd_native);
        }
    }
}
internal static partial class NativeTls
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.41901")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial int accept4(int sockfd, nint addr, nint addrlen, int flags)
    {
        unsafe
        {
            int __lastError;
            int __retVal;
            {
                global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                __retVal = __PInvoke(sockfd, addr, addrlen, flags);
                __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
            }
 
            global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("libc", EntryPoint = "accept4", ExactSpelling = true)]
            static extern unsafe int __PInvoke(int __sockfd_native, nint __addr_native, nint __addrlen_native, int __flags_native);
        }
    }
}
internal static partial class NativeTls
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.41901")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    private static partial int epoll_ctl(int epfd, int op, int fd, ref global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventPacked ev)
    {
        unsafe
        {
            int __lastError;
            int __retVal;
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventPacked* __ev_native = &ev)
            {
                global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                __retVal = __PInvoke(epfd, op, fd, __ev_native);
                __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
            }
 
            global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("libc", EntryPoint = "epoll_ctl", ExactSpelling = true)]
            static extern unsafe int __PInvoke(int __epfd_native, int __op_native, int __fd_native, global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventPacked* __ev_native);
        }
    }
}
internal static partial class NativeTls
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.41901")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    private static partial int epoll_ctl(int epfd, int op, int fd, ref global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventAligned ev)
    {
        unsafe
        {
            int __lastError;
            int __retVal;
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventAligned* __ev_native = &ev)
            {
                global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                __retVal = __PInvoke(epfd, op, fd, __ev_native);
                __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
            }
 
            global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("libc", EntryPoint = "epoll_ctl", ExactSpelling = true)]
            static extern unsafe int __PInvoke(int __epfd_native, int __op_native, int __fd_native, global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventAligned* __ev_native);
        }
    }
}
internal static partial class NativeTls
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.41901")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    private static partial int epoll_wait(int epfd, global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventPacked[] events, int maxevents, int timeout)
    {
        unsafe
        {
            int __lastError;
            int __retVal;
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (void* __events_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventPacked, global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventPacked>.ManagedToUnmanagedIn.GetPinnableReference(events))
            {
                global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                __retVal = __PInvoke(epfd, (global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventPacked*)__events_native, maxevents, timeout);
                __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
            }
 
            global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("libc", EntryPoint = "epoll_wait", ExactSpelling = true)]
            static extern unsafe int __PInvoke(int __epfd_native, global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventPacked* __events_native, int __maxevents_native, int __timeout_native);
        }
    }
}
internal static partial class NativeTls
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.41901")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    private static partial int epoll_wait(int epfd, global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventAligned[] events, int maxevents, int timeout)
    {
        unsafe
        {
            int __lastError;
            int __retVal;
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (void* __events_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventAligned, global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventAligned>.ManagedToUnmanagedIn.GetPinnableReference(events))
            {
                global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                __retVal = __PInvoke(epfd, (global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventAligned*)__events_native, maxevents, timeout);
                __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
            }
 
            global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("libc", EntryPoint = "epoll_wait", ExactSpelling = true)]
            static extern unsafe int __PInvoke(int __epfd_native, global::Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls.Interop.EpollEventAligned* __events_native, int __maxevents_native, int __timeout_native);
        }
    }
}