03ff3ca30f 
								
							 
						 
						
							
							
								
								Use common objects for qemu-img and qemu-nbd  
							
							... 
							
							
							
							Right now, we sprinkle #if defined(QEMU_IMG) && defined(QEMU_NBD) all over the
code.  It's ugly and causes us to have to build multiple object files for
linking against qemu and the tools.
This patch introduces a new file, qemu-tool.c which contains enough for
qemu-img, qemu-nbd, and QEMU to all share the same objects.
This also required getting qemu-nbd to be a bit more Windows friendly.  I also
changed the Windows block-raw to use normal IO instead of overlapping IO since
we don't actually do AIO yet on Windows.  I changed the various #if 0's to
 #if WIN32_AIO to make it easier for someone to eventually fix AIO on Windows.
After this patch, there are no longer any #ifdef's related to qemu-img and
qemu-nbd.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5226 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2008-09-15 15:51:35 +00:00  
				
					
						
							
							
								 
						
							
								7ccfb2eb5f 
								
							 
						 
						
							
							
								
								Fix warnings that would be caused by gcc flag -Wwrite-strings  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5206 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2008-09-14 06:45:34 +00:00  
				
					
						
							
							
								 
						
							
								363a37d520 
								
							 
						 
						
							
							
								
								Fix OpenBSD linker warnings  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5044 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2008-08-21 17:58:08 +00:00  
				
					
						
							
							
								 
						
							
								242acf3af4 
								
							 
						 
						
							
							
								
								Special-case CTL_ALIAS instead of CTL_DNS in udp loopback test.  
							
							... 
							
							
							
							At the same time remove a bogus test (tested by Jason Wessel).
Quiet some gcc4 warnings from slirp compilation.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4402 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2008-05-10 01:49:53 +00:00  
				
					
						
							
							
								 
						
							
								3f9b2b1f63 
								
							 
						 
						
							
							
								
								Revert an accidental change in previous commit.  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3634 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2007-11-13 01:56:12 +00:00  
				
					
						
							
							
								 
						
							
								2f4a40e569 
								
							 
						 
						
							
							
								
								Prevent cpsr_write/_read be put out of line in op.o (fixes a segfault on some platforms).  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3633 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2007-11-13 01:50:15 +00:00  
				
					
						
							
							
								 
						
							
								eb6a054076 
								
							 
						 
						
							
							
								
								removed warning  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3592 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2007-11-11 16:05:35 +00:00  
				
					
						
							
							
								 
						
							
								c9f103069e 
								
							 
						 
						
							
							
								
								Declare function before use, reduces compiler warning noise.  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3490 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2007-10-30 23:19:52 +00:00  
				
					
						
							
							
								 
						
							
								9634d9031c 
								
							 
						 
						
							
							
								
								Use const and static as needed, disable unused code  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3452 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2007-10-26 19:01:16 +00:00  
				
					
						
							
							
								 
						
							
								31a60e2275 
								
							 
						 
						
							
							
								
								Make Slirp statistics gathering and output conditional to LOG_ENABLED  
							
							... 
							
							
							
							Add 'info slirp' command to monitor to display statistics
Disable Slirp debugging code by default
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3451 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2007-10-26 18:42:59 +00:00  
				
					
						
							
							
								 
						
							
								3b46e62427 
								
							 
						 
						
							
							
								
								find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex.  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3177 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2007-09-17 08:09:54 +00:00  
				
					
						
							
							
								 
						
							
								5fafdf24ef 
								
							 
						 
						
							
							
								
								find -type f | xargs sed -i 's/[\t ]$//g' # on most files  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3173 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2007-09-16 21:08:06 +00:00  
				
					
						
							
							
								 
						
							
								8dbca8dd8a 
								
							 
						 
						
							
							
								
								separate alias_addr (10.0.2.2) from our_addr (Ed Swierk)  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1895 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2006-05-03 19:58:17 +00:00  
				
					
						
							
							
								 
						
							
								f4e15b4b4b 
								
							 
						 
						
							
							
								
								Fix slirp redirection on systems without a useful host IP address.  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1837 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2006-04-23 19:41:17 +00:00  
				
					
						
							
							
								 
						
							
								7b91a17212 
								
							 
						 
						
							
							
								
								slirp fix for -smb command (Initial patch by Juergen Keil)  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1172 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2004-12-12 11:45:10 +00:00  
				
					
						
							
							
								 
						
							
								f3ff649d3b 
								
							 
						 
						
							
							
								
								openpty fix  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1119 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2004-10-10 18:00:00 +00:00  
				
					
						
							
							
								 
						
							
								a3d4af03bb 
								
							 
						 
						
							
							
								
								allow inetd like program exec  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1060 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2004-09-05 23:10:26 +00:00  
				
					
						
							
							
								 
						
							
								379ff53dc9 
								
							 
						 
						
							
							
								
								win32 compile  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1016 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2004-07-12 22:33:07 +00:00  
				
					
						
							
							
								 
						
							
								f0cbd3ec9f 
								
							 
						 
						
							
							
								
								initial user mode network support  
							
							... 
							
							
							
							git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@733 c046a42c-6fe2-441c-8c8c-71466251a162 
							
						 
						
							2004-04-22 00:10:48 +00:00