2020-05-14 13:17:06 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2020-05-17 09:07:02 +00:00
|
|
|
#include "wine/debug.h"
|
|
|
|
|
2020-06-25 08:32:47 +00:00
|
|
|
struct _DISPATCHER_CONTEXT;
|
2020-06-01 10:52:05 +00:00
|
|
|
|
2020-05-14 13:17:06 +00:00
|
|
|
/* increment this when you change the function table */
|
2021-12-09 09:43:56 +00:00
|
|
|
#define NTDLL_UNIXLIB_VERSION 134
|
2020-05-14 13:17:06 +00:00
|
|
|
|
|
|
|
struct unix_funcs
|
|
|
|
{
|
2020-06-23 17:39:12 +00:00
|
|
|
/* loader functions */
|
|
|
|
NTSTATUS (CDECL *load_so_dll)( UNICODE_STRING *nt_name, void **module );
|
2021-09-10 18:09:38 +00:00
|
|
|
void (CDECL *init_builtin_dll)( void *module );
|
2020-06-25 08:32:47 +00:00
|
|
|
NTSTATUS (CDECL *unwind_builtin_dll)( ULONG type, struct _DISPATCHER_CONTEXT *dispatch,
|
|
|
|
CONTEXT *context );
|
2021-12-02 08:59:40 +00:00
|
|
|
/* other Win32 API functions */
|
|
|
|
LONGLONG (WINAPI *RtlGetSystemTimePrecise)(void);
|
|
|
|
#ifdef __aarch64__
|
|
|
|
TEB * (WINAPI *NtCurrentTeb)(void);
|
|
|
|
#endif
|
2020-05-14 13:17:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __NTDLL_UNIXLIB_H */
|