Statistics
| Branch: | Revision:

root / os-posix.c @ 8af7a3ab

History | View | Annotate | Download (8.5 kB)

# Date Author Comment
bc4a957c 10/30/2010 11:02 am Jes Sorensen

Separate qemu_pidfile() into OS specific versions

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

949d31e6 10/30/2010 11:02 am Jes Sorensen

We only support eventfd under POSIX, move qemu_eventfd() to os-posix.c

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

66fe09ee 08/21/2010 12:03 am Blue Swirl

Use ARRAY_SIZE macro

Replace array size calculations with ARRAY_SIZE macro.

Implemented with this Coccinelle semantic patch, adapted from
Linux kernel:
@
type T;
T[] E;
@

- (sizeof(E)/sizeof(*E))
+ ARRAY_SIZE(E)

@
type T;
T[] E;
@

- (sizeof(E)/sizeof(E[...]))...

69e8b162 07/06/2010 04:53 pm Jes Sorensen

Include sys/mman.h before qemu-options.h

The result of parsing qemu-options.def depends on whehter or not
MAP_POPULATE is defined, so make sure to include sys/mman.h before
including qemu-options.h.

Reported by Frank Arnold.

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

59a5264b 06/12/2010 08:49 am Jes Sorensen

Introduce OS specific cmdline argument handling and move SMB arg to os-posix.c

Introduce OS specific cmdline argument handling by calling
os_parse_cmd_args() at the end of switch() statement. Move option
enum to qemu-options.h and have it included from os-posix.c and...

8847cfe8 06/12/2010 08:49 am Jes Sorensen

Move runas handling from vl.c to OS specific files.

Move code to handle runas, ie. change of user id of QEMU process
to OS specific files and provide dummy stub for Win32.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>...

0766379d 06/12/2010 08:49 am Jes Sorensen

Move chroot handling to OS specific files.

Move chroot handling to OS specific files.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

eb505be1 06/12/2010 08:49 am Jes Sorensen

Move daemonize handling to OS specific files

Move daemonize handling from vl.c to OS specific files. Provide dummy
stubs for Win32.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>...

e06eb601 06/12/2010 08:49 am Jes Sorensen

Make os_change_process_uid and os_change_root os-posix.c local

os_change_process_uid() and os_change_root() are now only called
from os-posix.c, so no need to keep win32 stubs for them.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>...

9156d763 06/12/2010 08:49 am Jes Sorensen

Move line-buffering setup to OS specific files.

Move line-buffering setup to OS specific files.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

ce798cf2 06/12/2010 08:49 am Jes Sorensen

Move set_proc_name() to OS specific files.

Move handling to change process name to POSIX specific files
plus add a better error message to cover the case where the
feature isn't supported.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>...

86b645e7 06/12/2010 08:49 am Jes Sorensen

Introduce os-posix.c and create os_setup_signal_handling()

Introcuce os-posix.c and move posix specific signal handling
there.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>...

fe98ac14 06/12/2010 08:49 am Jes Sorensen

Rename os_setup_signal_handling() to os_setup_early_signal_handling()

Rename os_setup_signal_handling() to os_setup_early_signal_handling()

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>...

8d963e6a 06/12/2010 08:49 am Jes Sorensen

Move main signal handler setup to os specificfiles.

Move main signal handler setup to os specific files.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

6170540b 06/12/2010 08:49 am Jes Sorensen

Move find_datadir to OS specific files.

This moves the win32 and POSIX versions of find_datadir() to OS
specific files, and removes some #ifdef clutter from vl.c

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>...