2010-06-10 11:42:16 +02:00
|
|
|
/*
|
|
|
|
* win32 specific declarations
|
|
|
|
*
|
|
|
|
* Copyright (c) 2003-2008 Fabrice Bellard
|
|
|
|
* Copyright (c) 2010 Jes Sorensen <Jes.Sorensen@redhat.com>
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QEMU_OS_WIN32_H
|
|
|
|
#define QEMU_OS_WIN32_H
|
|
|
|
|
2011-03-27 11:04:57 +02:00
|
|
|
#include <windows.h>
|
|
|
|
#include <winsock2.h>
|
2011-09-12 16:44:30 +02:00
|
|
|
#include "main-loop.h"
|
2011-03-27 11:04:57 +02:00
|
|
|
|
2011-05-15 09:51:59 +02:00
|
|
|
/* Declaration of ffs() is missing in MinGW's strings.h. */
|
|
|
|
int ffs(int i);
|
|
|
|
|
2010-06-10 11:42:22 +02:00
|
|
|
static inline void os_setup_signal_handling(void) {}
|
2010-06-10 11:42:28 +02:00
|
|
|
static inline void os_daemonize(void) {}
|
|
|
|
static inline void os_setup_post(void) {}
|
2010-10-07 18:55:48 +02:00
|
|
|
void os_set_line_buffering(void);
|
2010-06-10 11:42:31 +02:00
|
|
|
static inline void os_set_proc_name(const char *dummy) {}
|
2010-06-10 11:42:22 +02:00
|
|
|
|
2010-06-24 22:41:33 +02:00
|
|
|
#if !defined(EPROTONOSUPPORT)
|
|
|
|
# define EPROTONOSUPPORT EINVAL
|
|
|
|
#endif
|
|
|
|
|
2010-10-26 10:39:23 +02:00
|
|
|
int setenv(const char *name, const char *value, int overwrite);
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
long tv_sec;
|
|
|
|
long tv_usec;
|
|
|
|
} qemu_timeval;
|
|
|
|
int qemu_gettimeofday(qemu_timeval *tp);
|
|
|
|
|
2010-06-10 11:42:16 +02:00
|
|
|
#endif
|