Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e309bad9
Commit
e309bad9
authored
Aug 12, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add a private header for Unix libraries definitions.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
99992731
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
6 deletions
+36
-6
unix_private.h
dlls/ntdll/unix/unix_private.h
+1
-2
unixlib.h
dlls/winepulse.drv/unixlib.h
+1
-0
syscall.c
dlls/wow64/syscall.c
+1
-0
unixlib.h
include/wine/unixlib.h
+33
-0
winternl.h
include/winternl.h
+0
-4
No files found.
dlls/ntdll/unix/unix_private.h
View file @
e309bad9
...
...
@@ -24,6 +24,7 @@
#include <pthread.h>
#include <signal.h>
#include "unixlib.h"
#include "wine/unixlib.h"
#include "wine/server.h"
#include "wine/list.h"
...
...
@@ -151,8 +152,6 @@ extern void init_environment( int argc, char *argv[], char *envp[] ) DECLSPEC_HI
extern
void
init_startup_info
(
void
)
DECLSPEC_HIDDEN
;
extern
void
*
create_startup_info
(
const
UNICODE_STRING
*
nt_image
,
const
RTL_USER_PROCESS_PARAMETERS
*
params
,
DWORD
*
info_size
)
DECLSPEC_HIDDEN
;
extern
DWORD
ntdll_umbstowcs
(
const
char
*
src
,
DWORD
srclen
,
WCHAR
*
dst
,
DWORD
dstlen
)
DECLSPEC_HIDDEN
;
extern
int
ntdll_wcstoumbs
(
const
WCHAR
*
src
,
DWORD
srclen
,
char
*
dst
,
DWORD
dstlen
,
BOOL
strict
)
DECLSPEC_HIDDEN
;
extern
char
**
build_envp
(
const
WCHAR
*
envW
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
exec_wineloader
(
char
**
argv
,
int
socketfd
,
const
pe_image_info_t
*
pe_info
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
load_builtin
(
const
pe_image_info_t
*
image_info
,
WCHAR
*
filename
,
...
...
dlls/winepulse.drv/unixlib.h
View file @
e309bad9
...
...
@@ -17,6 +17,7 @@
*/
#include "wine/list.h"
#include "wine/unixlib.h"
struct
pulse_stream
;
...
...
dlls/wow64/syscall.c
View file @
e309bad9
...
...
@@ -27,6 +27,7 @@
#include "winnt.h"
#include "winternl.h"
#include "wine/exception.h"
#include "wine/unixlib.h"
#include "wow64_private.h"
#include "wine/debug.h"
...
...
include/wine/unixlib.h
0 → 100644
View file @
e309bad9
/*
* Definitions for Unix libraries
*
* Copyright (C) 2021 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 __WINE_WINE_UNIXLIB_H
#define __WINE_WINE_UNIXLIB_H
typedef
NTSTATUS
(
*
unixlib_entry_t
)(
void
*
args
);
typedef
UINT64
unixlib_handle_t
;
extern
NTSTATUS
WINAPI
__wine_unix_call
(
unixlib_handle_t
handle
,
unsigned
int
code
,
void
*
args
);
/* some useful helpers from ntdll */
extern
DWORD
ntdll_umbstowcs
(
const
char
*
src
,
DWORD
srclen
,
WCHAR
*
dst
,
DWORD
dstlen
);
extern
int
ntdll_wcstoumbs
(
const
WCHAR
*
src
,
DWORD
srclen
,
char
*
dst
,
DWORD
dstlen
,
BOOL
strict
);
#endif
/* __WINE_WINE_UNIXLIB_H */
include/winternl.h
View file @
e309bad9
...
...
@@ -4612,12 +4612,8 @@ static inline PLIST_ENTRY RemoveTailList(PLIST_ENTRY le)
#ifdef __WINESRC__
typedef
NTSTATUS
(
*
unixlib_entry_t
)(
void
*
args
);
typedef
UINT64
unixlib_handle_t
;
/* Wine internal functions */
extern
NTSTATUS
CDECL
__wine_init_unix_lib
(
HMODULE
module
,
DWORD
reason
,
const
void
*
ptr_in
,
void
*
ptr_out
);
extern
NTSTATUS
WINAPI
__wine_unix_call
(
unixlib_handle_t
handle
,
unsigned
int
code
,
void
*
args
);
/* The thread information for 16-bit threads */
/* NtCurrentTeb()->SubSystemTib points to this */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment