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
88003524
Commit
88003524
authored
Feb 05, 2006
by
Robert Millan
Committed by
Alexandre Julliard
Feb 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable for GNU/kFreeBSD the same kernel-specific interface/parameter
that is used with FreeBSD.
parent
58b308db
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
17 additions
and
17 deletions
+17
-17
configure
configure
+1
-1
configure.ac
configure.ac
+1
-1
heap.c
dlls/kernel/heap.c
+2
-2
directory.c
dlls/ntdll/directory.c
+2
-2
file.c
dlls/ntdll/file.c
+1
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+4
-4
socket.c
dlls/winsock/socket.c
+1
-1
ldt.c
libs/wine/ldt.c
+2
-2
mmap.c
libs/wine/mmap.c
+2
-2
context_i386.c
server/context_i386.c
+1
-1
No files found.
configure
View file @
88003524
...
...
@@ -13019,7 +13019,7 @@ case $host_os in
esac
case
$host_os
in
linux
*
)
linux
*
|
k
*
bsd
*
-gnu
)
case
$host_cpu
in
*
i[3456789]86
*
)
WINE_BINARIES
=
"wine-glibc wine-kthread wine-pthread wine-preloader"
;;
...
...
configure.ac
View file @
88003524
...
...
@@ -1091,7 +1091,7 @@ case $host_os in
esac
case $host_os in
linux*)
linux*
| k*bsd*-gnu
)
case $host_cpu in
*i[[3456789]]86*) AC_SUBST(WINE_BINARIES,"wine-glibc wine-kthread wine-pthread wine-preloader") ;;
*) AC_SUBST(WINE_BINARIES,"wine-glibc wine-kthread wine-pthread") ;;
...
...
dlls/kernel/heap.c
View file @
88003524
...
...
@@ -1138,7 +1138,7 @@ BOOL WINAPI GlobalMemoryStatusEx( LPMEMORYSTATUSEX lpmemex )
#ifdef linux
FILE
*
f
;
#endif
#if defined(__FreeBSD__) || defined(__NetBSD__)
#if defined(__FreeBSD__) || defined(__
FreeBSD_kernel__) || defined(__
NetBSD__)
int
*
tmp
;
int
size_sys
;
int
mib
[
2
]
=
{
CTL_HW
};
...
...
@@ -1209,7 +1209,7 @@ BOOL WINAPI GlobalMemoryStatusEx( LPMEMORYSTATUSEX lpmemex )
/
(
TotalPhysical
/
100
);
}
}
#elif defined(__FreeBSD__) || defined(__NetBSD__)
#elif defined(__FreeBSD__) || defined(__
FreeBSD_kernel__) || defined(__
NetBSD__)
mib
[
1
]
=
HW_PHYSMEM
;
sysctl
(
mib
,
2
,
NULL
,
&
size_sys
,
NULL
,
0
);
tmp
=
malloc
(
size_sys
*
sizeof
(
int
));
...
...
dlls/ntdll/directory.c
View file @
88003524
...
...
@@ -288,7 +288,7 @@ static char *parse_mount_entries( FILE *f, dev_t dev, ino_t ino )
}
#endif
#if
def __FreeBSD__
#if
defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#include <fstab.h>
static
char
*
parse_mount_entries
(
FILE
*
f
,
dev_t
dev
,
ino_t
ino
)
{
...
...
@@ -391,7 +391,7 @@ static char *get_default_drive_device( const char *root )
}
RtlLeaveCriticalSection
(
&
dir_section
);
#elif defined(
__FreeBSD
__ )
#elif defined(
__FreeBSD__) || defined(__FreeBSD_kernel
__ )
char
*
device
=
NULL
;
int
fd
,
res
=
-
1
;
struct
stat
st
;
...
...
dlls/ntdll/file.c
View file @
88003524
...
...
@@ -1594,7 +1594,7 @@ NTSTATUS FILE_GetDeviceInfo( int fd, FILE_FS_DEVICE_INFORMATION *info )
info
->
DeviceType
=
FILE_DEVICE_DISK_FILE_SYSTEM
;
break
;
}
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__)
|| defined(__FreeBSD_kernel__)
struct
statfs
stfs
;
/* The proper way to do this in FreeBSD seems to be with the
...
...
dlls/ntdll/signal_i386.c
View file @
88003524
...
...
@@ -204,7 +204,7 @@ typedef struct trapframe SIGCONTEXT;
#endif
/* bsdi */
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__
FreeBSD_kernel__) || defined(__
OpenBSD__)
typedef
struct
sigcontext
SIGCONTEXT
;
...
...
@@ -328,7 +328,7 @@ typedef ucontext_t SIGCONTEXT;
#endif
/* __APPLE__ */
#if defined(linux) || defined(__NetBSD__) || defined(__FreeBSD__) ||\
#if defined(linux) || defined(__NetBSD__) || defined(__FreeBSD__) ||
defined(__FreeBSD_kernel__) ||
\
defined(__OpenBSD__) || defined(__EMX__) || defined(__CYGWIN__)
#define EAX_sig(context) ((context)->sc_eax)
...
...
@@ -358,7 +358,7 @@ typedef ucontext_t SIGCONTEXT;
#define FAULT_ADDRESS ((void *)HANDLER_CONTEXT->cr2)
#endif
#if
def __FreeBSD__
#if
defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#define EFL_sig(context) ((context)->sc_efl)
/* FreeBSD, see i386/i386/traps.c::trap_pfault va->err kludge */
#define FAULT_ADDRESS ((void *)HANDLER_CONTEXT->sc_err)
...
...
@@ -1366,7 +1366,7 @@ static int set_handler( int sig, int have_sigaltstack, void (*func)() )
sigaddset
(
&
sig_act
.
sa_mask
,
SIGUSR1
);
sigaddset
(
&
sig_act
.
sa_mask
,
SIGUSR2
);
#if defined(linux) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#if defined(linux) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__
FreeBSD_kernel__) || defined(__
OpenBSD__)
sig_act
.
sa_flags
=
SA_RESTART
;
#elif defined (__svr4__) || defined(_SCO_DS) || defined(__APPLE__)
sig_act
.
sa_flags
=
SA_SIGINFO
|
SA_RESTART
;
...
...
dlls/winsock/socket.c
View file @
88003524
...
...
@@ -144,7 +144,7 @@
#endif
#if
def __FreeBSD__
#if
defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
# define sipx_network sipx_addr.x_net
# define sipx_node sipx_addr.x_host.c_host
#endif
/* __FreeBSD__ */
...
...
libs/wine/ldt.c
View file @
88003524
...
...
@@ -109,7 +109,7 @@ static inline int set_thread_area( struct modify_ldt_s *ptr )
#endif
#endif
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__
FreeBSD_kernel__) || defined(__
OpenBSD__)
#include <machine/segments.h>
extern
int
i386_get_ldt
(
int
,
union
descriptor
*
,
int
);
...
...
@@ -203,7 +203,7 @@ static int internal_set_entry( unsigned short sel, const LDT_ENTRY *entry )
if
((
ret
=
modify_ldt
(
0x11
,
&
ldt_info
,
sizeof
(
ldt_info
)))
<
0
)
perror
(
"modify_ldt"
);
}
#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__
FreeBSD_kernel__) || defined(__
OpenBSD__)
{
LDT_ENTRY
entry_copy
=
*
entry
;
/* The kernel will only let us set LDTs with user priority level */
...
...
libs/wine/mmap.c
View file @
88003524
...
...
@@ -199,7 +199,7 @@ void *wine_anon_mmap( void *start, size_t size, int prot, int flags )
if
(
!
(
flags
&
MAP_FIXED
))
{
#if
def __FreeBSD__
#if
defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
/* Even FreeBSD 5.3 does not properly support NULL here. */
if
(
start
==
NULL
)
start
=
(
void
*
)
0x110000
;
#endif
...
...
@@ -283,7 +283,7 @@ void mmap_init(void)
{
struct
reserved_area
*
area
;
struct
list
*
ptr
;
#if defined(__i386__) && !defined(__FreeBSD__)
/* commented out until FreeBSD gets fixed */
#if defined(__i386__) && !defined(__FreeBSD__)
&& !defined(__FreeBSD_kernel__)
/* commented out until FreeBSD gets fixed */
char
stack
;
char
*
const
stack_ptr
=
&
stack
;
char
*
user_space_limit
=
(
char
*
)
0x80000000
;
...
...
server/context_i386.c
View file @
88003524
...
...
@@ -340,7 +340,7 @@ static void set_thread_context_ptrace( struct thread *thread, unsigned int flags
file_set_error
();
}
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
#elif defined(__FreeBSD__) || defined(__
FreeBSD_kernel__) || defined(__
OpenBSD__) || defined(__NetBSD__)
#include <machine/reg.h>
/* retrieve a thread context */
...
...
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