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
66eb4bd3
Commit
66eb4bd3
authored
Dec 09, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add a function to export the host OS type and version.
parent
baaaa58b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
0 deletions
+32
-0
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
misc.c
dlls/ntdll/misc.c
+25
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-0
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
66eb4bd3
...
...
@@ -7437,6 +7437,7 @@ done
for
ac_header
in
\
AudioUnit/AudioUnit.h
\
Carbon/Carbon.h
\
...
...
@@ -7543,6 +7544,7 @@ for ac_header in \
sys/times.h
\
sys/uio.h
\
sys/un.h
\
sys/utsname.h
\
sys/vm86.h
\
sys/wait.h
\
syscall.h
\
...
...
configure.ac
View file @
66eb4bd3
...
...
@@ -344,6 +344,7 @@ AC_CHECK_HEADERS(\
sys/times.h \
sys/uio.h \
sys/un.h \
sys/utsname.h \
sys/vm86.h \
sys/wait.h \
syscall.h \
...
...
dlls/ntdll/misc.c
View file @
66eb4bd3
...
...
@@ -22,6 +22,9 @@
#include <time.h>
#include <math.h>
#ifdef HAVE_SYS_UTSNAME_H
#include <sys/utsname.h>
#endif
#include "wine/library.h"
#include "wine/debug.h"
...
...
@@ -156,6 +159,28 @@ const char * CDECL NTDLL_wine_get_build_id(void)
}
/*********************************************************************
* wine_get_host_version (NTDLL.@)
*/
void
CDECL
NTDLL_wine_get_host_version
(
const
char
**
sysname
,
const
char
**
release
)
{
#ifdef HAVE_SYS_UTSNAME_H
static
struct
utsname
buf
;
static
int
init_done
;
if
(
!
init_done
)
{
uname
(
&
buf
);
init_done
=
1
;
}
if
(
sysname
)
*
sysname
=
buf
.
sysname
;
if
(
release
)
*
release
=
buf
.
release
;
#else
if
(
sysname
)
*
sysname
=
""
;
if
(
release
)
*
release
=
""
;
#endif
}
/*********************************************************************
* abs (NTDLL.@)
*/
int
CDECL
NTDLL_abs
(
int
i
)
...
...
dlls/ntdll/ntdll.spec
View file @
66eb4bd3
...
...
@@ -1384,6 +1384,7 @@
# Version
@ cdecl wine_get_version() NTDLL_wine_get_version
@ cdecl wine_get_build_id() NTDLL_wine_get_build_id
@ cdecl wine_get_host_version(ptr ptr) NTDLL_wine_get_host_version
# Codepages
@ cdecl __wine_init_codepages(ptr ptr ptr)
...
...
include/config.h.in
View file @
66eb4bd3
...
...
@@ -897,6 +897,9 @@
/* Define to 1 if you have the <sys/user.h> header file. */
#undef HAVE_SYS_USER_H
/* Define to 1 if you have the <sys/utsname.h> header file. */
#undef HAVE_SYS_UTSNAME_H
/* Define to 1 if you have the <sys/vfs.h> header file. */
#undef HAVE_SYS_VFS_H
...
...
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