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