/* * Ntdll Unix interface * * Copyright (C) 2020 Alexandre Julliard * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef __NTDLL_UNIXLIB_H #define __NTDLL_UNIXLIB_H #include "wine/debug.h" struct _DISPATCHER_CONTEXT; /* increment this when you change the function table */ #define NTDLL_UNIXLIB_VERSION 133 struct unix_funcs { /* loader functions */ NTSTATUS (CDECL *load_so_dll)( UNICODE_STRING *nt_name, void **module ); void (CDECL *init_builtin_dll)( void *module ); NTSTATUS (CDECL *init_unix_lib)( void *module, DWORD reason, const void *ptr_in, void *ptr_out ); NTSTATUS (CDECL *unwind_builtin_dll)( ULONG type, struct _DISPATCHER_CONTEXT *dispatch, CONTEXT *context ); /* other Win32 API functions */ LONGLONG (WINAPI *RtlGetSystemTimePrecise)(void); #ifdef __aarch64__ TEB * (WINAPI *NtCurrentTeb)(void); #endif }; #endif /* __NTDLL_UNIXLIB_H */