* [Qemu-devel] qemu vl.c
@ 2006-12-22 19:25 Thiemo Seufer
2006-12-22 20:29 ` [Qemu-devel][PATCH] " Stefan Weil
0 siblings, 1 reply; 3+ messages in thread
From: Thiemo Seufer @ 2006-12-22 19:25 UTC (permalink / raw)
To: qemu-devel
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Thiemo Seufer <ths> 06/12/22 19:25:31
Modified files:
. : vl.c
Log message:
Support for unidirectional pipes, by Ed Swierk.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemu&r1=1.224&r2=1.225
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel][PATCH] qemu vl.c
2006-12-22 19:25 [Qemu-devel] qemu vl.c Thiemo Seufer
@ 2006-12-22 20:29 ` Stefan Weil
2006-12-22 21:23 ` Thiemo Seufer
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Weil @ 2006-12-22 20:29 UTC (permalink / raw)
To: qemu-devel
Windows needs a patch for vl.c to compile (conditional compilation).
It does not know struct sockaddr_un.
The patch given below also fixes a debug message text and declares
some local functions to be static. This part is optional of course.
Regards and happy Christmas
Stefan Weil
Index: vl.c
===================================================================
RCS file: /sources/qemu/qemu/vl.c,v
retrieving revision 1.225
diff -u -b -B -u -r1.225 vl.c
--- vl.c 22 Dec 2006 19:25:31 -0000 1.225
+++ vl.c 22 Dec 2006 20:14:41 -0000
@@ -281,7 +281,7 @@
for(i = start; i < start + length; i += size) {
ioport_write_table[bsize][i] = func;
if (ioport_opaque[i] != NULL && ioport_opaque[i] != opaque)
- hw_error("register_ioport_read: invalid opaque");
+ hw_error("register_ioport_write: invalid opaque");
ioport_opaque[i] = opaque;
}
return 0;
@@ -1096,7 +1096,7 @@
{
}
-CharDriverState *qemu_chr_open_null(void)
+static CharDriverState *qemu_chr_open_null(void)
{
CharDriverState *chr;
@@ -1264,7 +1264,7 @@
}
/* open a character device to a unix fd */
-CharDriverState *qemu_chr_open_fd(int fd_in, int fd_out)
+static CharDriverState *qemu_chr_open_fd(int fd_in, int fd_out)
{
CharDriverState *chr;
FDCharDriver *s;
@@ -1285,7 +1285,7 @@
return chr;
}
-CharDriverState *qemu_chr_open_file_out(const char *file_out)
+static CharDriverState *qemu_chr_open_file_out(const char *file_out)
{
int fd_out;
@@ -1295,7 +1295,7 @@
return qemu_chr_open_fd(-1, fd_out);
}
-CharDriverState *qemu_chr_open_pipe(const char *filename)
+static CharDriverState *qemu_chr_open_pipe(const char *filename)
{
int fd_in, fd_out;
char filename_in[256], filename_out[256];
@@ -1520,7 +1520,7 @@
fcntl(0, F_SETFL, O_NONBLOCK);
}
-CharDriverState *qemu_chr_open_stdio(void)
+static CharDriverState *qemu_chr_open_stdio(void)
{
CharDriverState *chr;
@@ -1546,7 +1546,7 @@
}
#if defined(__linux__)
-CharDriverState *qemu_chr_open_pty(void)
+static CharDriverState *qemu_chr_open_pty(void)
{
struct termios tty;
char slave_name[1024];
@@ -1685,7 +1685,7 @@
return 0;
}
-CharDriverState *qemu_chr_open_tty(const char *filename)
+static CharDriverState *qemu_chr_open_tty(const char *filename)
{
CharDriverState *chr;
int fd;
@@ -1739,7 +1739,7 @@
return 0;
}
-CharDriverState *qemu_chr_open_pp(const char *filename)
+static CharDriverState *qemu_chr_open_pp(const char *filename)
{
CharDriverState *chr;
int fd;
@@ -1766,7 +1766,7 @@
}
#else
-CharDriverState *qemu_chr_open_pty(void)
+static CharDriverState *qemu_chr_open_pty(void)
{
return NULL;
}
@@ -1984,7 +1984,7 @@
s->win_opaque = opaque;
}
-CharDriverState *qemu_chr_open_win(const char *filename)
+static CharDriverState *qemu_chr_open_win(const char *filename)
{
CharDriverState *chr;
WinCharState *s;
@@ -2087,7 +2087,7 @@
}
-CharDriverState *qemu_chr_open_win_pipe(const char *filename)
+static CharDriverState *qemu_chr_open_win_pipe(const char *filename)
{
CharDriverState *chr;
WinCharState *s;
@@ -2113,7 +2113,7 @@
return chr;
}
-CharDriverState *qemu_chr_open_win_file(HANDLE fd_out)
+static CharDriverState *qemu_chr_open_win_file(HANDLE fd_out)
{
CharDriverState *chr;
WinCharState *s;
@@ -2133,7 +2133,7 @@
return chr;
}
-CharDriverState *qemu_chr_open_win_file_out(const char *file_out)
+static CharDriverState *qemu_chr_open_win_file_out(const char *file_out)
{
HANDLE fd_out;
@@ -2223,12 +2223,14 @@
}
int parse_host_port(struct sockaddr_in *saddr, const char *str);
-int parse_unix_path(struct sockaddr_un *uaddr, const char *str);
+#ifndef _WIN32
+static int parse_unix_path(struct sockaddr_un *uaddr, const char *str);
+#endif
int parse_host_src_port(struct sockaddr_in *haddr,
struct sockaddr_in *saddr,
const char *str);
-CharDriverState *qemu_chr_open_udp(const char *def)
+static CharDriverState *qemu_chr_open_udp(const char *def)
{
CharDriverState *chr = NULL;
NetCharDriver *s = NULL;
@@ -2818,7 +2820,8 @@
return 0;
}
-int parse_unix_path(struct sockaddr_un *uaddr, const char *str)
+#ifndef _WIN32
+static int parse_unix_path(struct sockaddr_un *uaddr, const char *str)
{
const char *p;
int len;
@@ -2835,6 +2838,7 @@
return 0;
}
+#endif
/* find or alloc a new VLAN */
VLANState *qemu_find_vlan(int id)
@@ -3691,7 +3695,7 @@
return 0;
}
-int net_client_init(const char *str)
+static int net_client_init(const char *str)
{
const char *p;
char *q;
@@ -5880,7 +5886,7 @@
*pre = re;
}
-void qemu_system_reset(void)
+static void qemu_system_reset(void)
{
QEMUResetEntry *re;
Thiemo Seufer schrieb:
> CVSROOT: /sources/qemu
> Module name: qemu
> Changes by: Thiemo Seufer <ths> 06/12/22 19:25:31
>
> Modified files:
> . : vl.c
>
> Log message:
> Support for unidirectional pipes, by Ed Swierk.
>
> CVSWeb URLs:
> http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemu&r1=1.224&r2=1.225
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel][PATCH] qemu vl.c
2006-12-22 20:29 ` [Qemu-devel][PATCH] " Stefan Weil
@ 2006-12-22 21:23 ` Thiemo Seufer
0 siblings, 0 replies; 3+ messages in thread
From: Thiemo Seufer @ 2006-12-22 21:23 UTC (permalink / raw)
To: Stefan Weil; +Cc: qemu-devel
Stefan Weil wrote:
> Windows needs a patch for vl.c to compile (conditional compilation).
> It does not know struct sockaddr_un.
>
> The patch given below also fixes a debug message text and declares
> some local functions to be static. This part is optional of course.
Thanks, committed.
Thiemo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-12-22 21:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-22 19:25 [Qemu-devel] qemu vl.c Thiemo Seufer
2006-12-22 20:29 ` [Qemu-devel][PATCH] " Stefan Weil
2006-12-22 21:23 ` Thiemo Seufer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).