Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
af1a328f
Commit
af1a328f
authored
Aug 25, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use syscalls for the Wine version functions.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
482b64ef
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
43 deletions
+13
-43
misc.c
dlls/ntdll/misc.c
+0
-24
ntdll.spec
dlls/ntdll/ntdll.spec
+3
-3
loader.c
dlls/ntdll/unix/loader.c
+7
-10
unixlib.h
dlls/ntdll/unixlib.h
+1
-4
library.h
include/wine/library.h
+0
-2
main.c
loader/main.c
+2
-0
No files found.
dlls/ntdll/misc.c
View file @
af1a328f
...
...
@@ -39,30 +39,6 @@ LPCSTR debugstr_us( const UNICODE_STRING *us )
}
/*********************************************************************
* wine_get_version (NTDLL.@)
*/
const
char
*
CDECL
wine_get_version
(
void
)
{
return
unix_funcs
->
get_version
();
}
/*********************************************************************
* wine_get_build_id (NTDLL.@)
*/
const
char
*
CDECL
wine_get_build_id
(
void
)
{
return
unix_funcs
->
get_build_id
();
}
/*********************************************************************
* wine_get_host_version (NTDLL.@)
*/
void
CDECL
wine_get_host_version
(
const
char
**
sysname
,
const
char
**
release
)
{
return
unix_funcs
->
get_host_version
(
sysname
,
release
);
}
/*********************************************************************
* abs (NTDLL.@)
*/
int
CDECL
abs
(
int
i
)
...
...
dlls/ntdll/ntdll.spec
View file @
af1a328f
...
...
@@ -1601,9 +1601,9 @@
@ cdecl __wine_locked_recvmsg(long ptr long)
# Version
@ cdecl wine_get_version()
@ cdecl wine_get_build_id()
@ cdecl wine_get_host_version(ptr ptr)
@ cdecl
-syscall
wine_get_version()
@ cdecl
-syscall
wine_get_build_id()
@ cdecl
-syscall
wine_get_host_version(ptr ptr)
# Codepages
@ cdecl __wine_get_unix_codepage()
...
...
dlls/ntdll/unix/loader.c
View file @
af1a328f
...
...
@@ -354,18 +354,18 @@ static void init_paths( int argc, char *argv[], char *envp[] )
/*********************************************************************
* get_version
*
wine_
get_version
*/
const
char
*
CDECL
get_version
(
void
)
const
char
*
CDECL
wine_
get_version
(
void
)
{
return
PACKAGE_VERSION
;
}
/*********************************************************************
* get_build_id
*
wine_
get_build_id
*/
const
char
*
CDECL
get_build_id
(
void
)
const
char
*
CDECL
wine_
get_build_id
(
void
)
{
extern
const
char
wine_build
[];
return
wine_build
;
...
...
@@ -373,9 +373,9 @@ const char * CDECL get_build_id(void)
/*********************************************************************
* get_host_version
*
wine_
get_host_version
*/
void
CDECL
get_host_version
(
const
char
**
sysname
,
const
char
**
release
)
void
CDECL
wine_
get_host_version
(
const
char
**
sysname
,
const
char
**
release
)
{
#ifdef HAVE_SYS_UTSNAME_H
static
struct
utsname
buf
;
...
...
@@ -1346,9 +1346,6 @@ static struct unix_funcs unix_funcs =
get_initial_directory
,
get_unix_codepage_data
,
get_locales
,
get_version
,
get_build_id
,
get_host_version
,
virtual_map_section
,
virtual_locked_recvmsg
,
virtual_release_address_space
,
...
...
@@ -1604,7 +1601,7 @@ static void check_command_line( int argc, char *argv[] )
}
if
(
!
strcmp
(
argv
[
1
],
"--version"
))
{
printf
(
"%s
\n
"
,
get_build_id
()
);
printf
(
"%s
\n
"
,
wine_
get_build_id
()
);
exit
(
0
);
}
}
...
...
dlls/ntdll/unixlib.h
View file @
af1a328f
...
...
@@ -28,7 +28,7 @@ struct msghdr;
struct
_DISPATCHER_CONTEXT
;
/* increment this when you change the function table */
#define NTDLL_UNIXLIB_VERSION 9
6
#define NTDLL_UNIXLIB_VERSION 9
7
struct
unix_funcs
{
...
...
@@ -78,9 +78,6 @@ struct unix_funcs
void
(
CDECL
*
get_initial_directory
)(
UNICODE_STRING
*
dir
);
USHORT
*
(
CDECL
*
get_unix_codepage_data
)(
void
);
void
(
CDECL
*
get_locales
)(
WCHAR
*
sys
,
WCHAR
*
user
);
const
char
*
(
CDECL
*
get_version
)(
void
);
const
char
*
(
CDECL
*
get_build_id
)(
void
);
void
(
CDECL
*
get_host_version
)(
const
char
**
sysname
,
const
char
**
release
);
/* virtual memory functions */
NTSTATUS
(
CDECL
*
virtual_map_section
)(
HANDLE
handle
,
PVOID
*
addr_ptr
,
unsigned
short
zero_bits_64
,
SIZE_T
commit_size
,
...
...
include/wine/library.h
View file @
af1a328f
...
...
@@ -41,8 +41,6 @@ extern "C" {
/* configuration */
extern
const
char
*
wine_get_version
(
void
);
extern
const
char
*
wine_get_build_id
(
void
);
extern
void
wine_init_argv0_path
(
const
char
*
argv0
);
extern
void
wine_exec_wine_binary
(
const
char
*
name
,
char
**
argv
,
const
char
*
env_var
);
...
...
loader/main.c
View file @
af1a328f
...
...
@@ -42,6 +42,8 @@
extern
char
**
environ
;
extern
const
char
*
wine_get_build_id
(
void
);
/* the preloader will set this variable */
const
struct
wine_preload_info
*
wine_main_preload_info
=
NULL
;
...
...
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