Statistics
| Branch: | Revision:

root / osdep.h @ cb380f61

History | View | Annotate | Download (3 kB)

# Date Author Comment
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 <>

e78815a5 09/25/2010 02:26 pm Andreas Färber

Introduce qemu_madvise()

vl.c has a Sun-specific hack to supply a prototype for madvise(),
but the call site has apparently moved to arch_init.c.

Haiku doesn't implement madvise() in favor of posix_madvise().
OpenBSD and Solaris 10 don't implement posix_madvise() but madvise()....

0a1574bb 08/15/2010 12:45 pm Stefan Weil

win32: Add missing function setenv

Mingw32 does not provide a declaration and implementation of function
setenv (which is used in sdl.c), so this patch adds both.

Signed-off-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

5096fae3 12/03/2009 05:41 pm Mark McLoughlin

qdev: move DO_UPCAST() into osdep.h

Nothing qdev specific about this, make it available throughtout.

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

de5071c5 09/12/2009 12:58 pm Blue Swirl

Fix a Sparse warning about redefinition of offsetof()

Signed-off-by: Blue Swirl <>

f0d99ad7 08/28/2009 04:30 am Juan Quintela

move useful type definitons to osdep.h

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

636aa200 08/16/2009 12:06 pm Blue Swirl

Replace always_inline with inline

We define inline as always_inline.

Signed-off-by: Blue Swirl <>

f7b4a940 01/07/2009 07:40 pm aliguori

snapshot subcommand for qemu-img (Kevin Wolf)

Add snapshot subcommand to qemu-img which allows to list, create, apply
and delete snapshots on qcow2 images.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Anthony Liguori <>

...

80fe30ed 12/01/2008 03:53 am balrog

Fix a typo preventing GNUC builtins usage.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5842 c046a42c-6fe2-441c-8c8c-71466251a162

3dec6ecd 11/19/2008 03:31 am pbrook

Only force inlining when optimizing.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5751 c046a42c-6fe2-441c-8c8c-71466251a162

c2b48b69 11/12/2008 12:06 am aliguori

Fix -linux-user build by reverting r5701

Unfortunately, -linux-user doesn't use osdep as it replaces some of those
functions with specific ones. The code #ifdef code in exec.c needs to
remain in place so instead of introducing a qemu_getpagesize() let's just...

15ed71ba 11/11/2008 11:48 pm aliguori

Define OS-dependent qemu_getpagesize() (Hollis Blanchard)

Signed-off-by: Hollis Blanchard <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5701 c046a42c-6fe2-441c-8c8c-71466251a162

bad5b1ec 10/12/2008 07:15 pm aurel32

Define macro QEMU_GNUC_PREREQ and use it

Signed-off-by: Aurelien Jarno <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5467 c046a42c-6fe2-441c-8c8c-71466251a162

ac509d88 09/16/2008 04:36 pm balrog

Move offsetof to osdep.h, remove local defintions.

With this container_of can actually be used without causing build errors.
Reformat container_of.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5234 c046a42c-6fe2-441c-8c8c-71466251a162

62a6e3e1 08/21/2008 11:11 pm aliguori

add container_of() macro to osdep.h (Gerd Hoffmann)

From linux kernel sources, xen bits will use it, put it
into a place where others can see and use it too ;)

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>...

128ab2ff 08/15/2008 09:33 pm blueswir1

Preliminary OpenBSD host support (based on OpenBSD patches by Todd T. Fries)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5012 c046a42c-6fe2-441c-8c8c-71466251a162

cebdff77 06/06/2008 01:55 am ths

Fix always_inline definition for Darwin, by Andreas Faerber.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4674 c046a42c-6fe2-441c-8c8c-71466251a162

ca10f867 04/12/2008 12:35 am aurel32

Remove osdep.c/qemu-img code duplication

(Kevin Wolf)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4191 c046a42c-6fe2-441c-8c8c-71466251a162

0954d0d9 03/11/2008 11:01 pm blueswir1

Remove blank elements in tcg_target_reg_alloc_order[] (Stuart Brady)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4039 c046a42c-6fe2-441c-8c8c-71466251a162

d656469f 01/31/2008 11:22 am bellard

use simpler REGPARM convention - make CPUTLBEntry size a power of two

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3935 c046a42c-6fe2-441c-8c8c-71466251a162

33f00271 12/24/2007 04:33 pm balrog

Add "cache" parameter to "-drive" (Laurent Vivier).

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3848 c046a42c-6fe2-441c-8c8c-71466251a162

c6d29ad6 12/16/2007 02:55 pm balrog

Add missing ffs() declaration for Win32 hosts, by Stefan Weil.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3821 c046a42c-6fe2-441c-8c8c-71466251a162

df2542c7 11/19/2007 02:38 am j_mayer

Avoid duplicated definitions: move common definitions from exec-all.h
and qemu-common.h to osdep.h.
Include this header in translate-op.c.
Make sure it's included first in darwin-user/qemu.h.
To avoid discarded inlining bug, define inline as always_inline and...

29b3a662 06/08/2007 02:09 am pbrook

Windows build fixes.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2959 c046a42c-6fe2-441c-8c8c-71466251a162

aa26bb2d 03/26/2007 12:33 am ths

qemu_create_pidfile implementation for Win32, based on a patch by
Carlos O'Donell.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2540 c046a42c-6fe2-441c-8c8c-71466251a162

7f1a8398 08/03/2006 08:53 pm bellard

removed unused code

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2080 c046a42c-6fe2-441c-8c8c-71466251a162

d62ca2bb 08/01/2006 06:50 pm bellard

removed unused code

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2072 c046a42c-6fe2-441c-8c8c-71466251a162

755d1375 06/25/2006 09:02 pm bellard

removed warning

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2016 c046a42c-6fe2-441c-8c8c-71466251a162

49b470eb 02/10/2005 11:59 pm bellard

shared pages memory allocation

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1279 c046a42c-6fe2-441c-8c8c-71466251a162

d2bfb39a 08/04/2004 01:09 am bellard

use the kernel sigaction syscall to avoid relying on glibc one

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1044 c046a42c-6fe2-441c-8c8c-71466251a162

2571929a 07/14/2004 08:21 pm bellard

added qemu_strdup()

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1021 c046a42c-6fe2-441c-8c8c-71466251a162

0fb48229 03/14/2004 11:48 pm bellard

added qemu_mallocz()

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@665 c046a42c-6fe2-441c-8c8c-71466251a162

ea88812f 02/17/2004 12:12 am bellard

added OS dependent functions (temporary as most functions are generic in fact)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@624 c046a42c-6fe2-441c-8c8c-71466251a162