Statistics
| Branch: | Revision:

root / oslib-win32.c @ 26ca8c06

History | View | Annotate | Download (3.9 kB)

# Date Author Comment
9c17d615 12/19/2012 09:32 am Paolo Bonzini

softmmu: move include files to include/sysemu/

Signed-off-by: Paolo Bonzini <>

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

3bc2f570 11/18/2012 09:19 pm Paolo Bonzini

build: replace weak symbols with a static library

Weak symbols were a nice idea, but they turned out not to be a good one.
Toolchain support is just too sparse, in particular llvm-gcc is totally
broken.

This patch uses a surprisingly low-tech approach: a static library....

1f001dc7 11/02/2012 08:07 pm Paolo Bonzini

compiler: support Darwin weak references

Weakrefs only tell you if the symbol was defined elsewhere, so you
need a further check at runtime to pick the default definition
when needed.

This could be automated by the compiler, but it does not do it.

Signed-off-by: Paolo Bonzini <>...

dbb5f380 10/30/2012 10:18 am Paolo Bonzini

win32: add weak version of qemu_fd_register

Signed-off-by: Paolo Bonzini <>

d3e8f957 09/23/2012 08:09 pm Stefan Weil

w32: Add implementation of gmtime_r, localtime_r

Those functions are missing in MinGW.

Some versions of MinGW-w64 include defines for gmtime_r and localtime_r.
Older versions of these macros are buggy (they return a pointer to a
static variable), therefore we don't want them. Newer versions are...

d3385eb4 04/07/2012 11:34 am Paolo Bonzini

main-loop: interrupt wait when data arrives on a socket

Right now, the main loop is not interrupted when data arrives on a
socket. To fix this, register each socket to interrupt the main loop
with WSAEventSelect. This does not replace select, it only communicates...

cbcfa041 12/22/2011 12:53 pm Paolo Bonzini

link the main loop and its dependencies into the tools

Using the main loop code from QEMU enables tools to operate fully
asynchronously. Advantages include better Windows portability (for some
definition of portability) over glib's.

Signed-off-by: Paolo Bonzini <>

154b9a0c 10/21/2011 06:34 pm Paolo Bonzini

add socket_set_block

Cc: MORITA Kazutaka <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

57a8821b 02/20/2011 10:18 pm Stefan Weil

w32: Remove implementation of function ffs

This implementation is no longer needed.

ffs is either a built-in function (for compilations with optimisation)
or taken from libiberty.a (which was added by the previous patch).

Cc: Anthony Liguori <>...

b152aa84 10/30/2010 11:02 am Jes Sorensen

Consolidate oom_check() functions

This consolidates the duplicated oom_check() functions, as well as
splitting them into OS dependant versions to avoid the #ifdef
grossness that was present in the old osdep.c version.

Signed-off-by: Jes Sorensen <>...

dc786bc9 10/30/2010 11:02 am Jes Sorensen

Move qemu_gettimeofday() to OS specific files

Signed-off-by: Jes Sorensen <>
Signed-off-by: Blue Swirl <>

c1b0b93b 10/30/2010 11:02 am Jes Sorensen

Move QEMU OS dependant library functions to OS specific files

This moves library functions used by both QEMU and the QEMU tools,
such as qemu-img, qemu-nbd etc. from osdep.c to oslib-{posix,win32}.c

In addition it introduces oslib-obj.y to the Makefile set to be...

9549e764 10/30/2010 11:02 am Jes Sorensen

Move osdep socket code to oslib-{posix,win32}.c

Signed-off-by: Jes Sorensen <>
Signed-off-by: Blue Swirl <>