qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] fix SIOCATMARK
@ 2008-10-15 22:28 Lauro Ramos Venancio
  2008-10-28 10:36 ` andrzej zaborowski
  0 siblings, 1 reply; 3+ messages in thread
From: Lauro Ramos Venancio @ 2008-10-15 22:28 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 113 bytes --]

The SIOCATMARK ioctl receives one parameter.

-- 
Lauro Ramos Venancio
INdT - Instituto Nokia de Tecnologia

[-- Attachment #1.2: fix_siocatmark.patch --]
[-- Type: text/x-patch, Size: 512 bytes --]

Index: linux-user/ioctls.h
===================================================================
--- linux-user/ioctls.h	(revision 5391)
+++ linux-user/ioctls.h	(working copy)
@@ -74,7 +74,7 @@
      IOCTL(FIGETBSZ, IOC_R, MK_PTR(TYPE_LONG))
 #endif
 
-  IOCTL(SIOCATMARK, 0, TYPE_NULL)
+  IOCTL(SIOCATMARK, 0, MK_PTR(TYPE_INT))
   IOCTL(SIOCADDRT, IOC_W, MK_PTR(MK_STRUCT(STRUCT_rtentry)))
   IOCTL(SIOCDELRT, IOC_W, MK_PTR(MK_STRUCT(STRUCT_rtentry)))
   IOCTL(SIOCGIFNAME, IOC_RW, MK_PTR(TYPE_INT))

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] [PATCH] fix SIOCATMARK
@ 2008-10-15 22:57 Lauro Ramos Venancio
  0 siblings, 0 replies; 3+ messages in thread
From: Lauro Ramos Venancio @ 2008-10-15 22:57 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 113 bytes --]

The SIOCATMARK ioctl receives one parameter.

-- 
Lauro Ramos Venancio
INdT - Instituto Nokia de Tecnologia

[-- Attachment #1.2: fix_siocatmark.patch --]
[-- Type: text/x-patch, Size: 512 bytes --]

Index: linux-user/ioctls.h
===================================================================
--- linux-user/ioctls.h	(revision 5391)
+++ linux-user/ioctls.h	(working copy)
@@ -74,7 +74,7 @@
      IOCTL(FIGETBSZ, IOC_R, MK_PTR(TYPE_LONG))
 #endif
 
-  IOCTL(SIOCATMARK, 0, TYPE_NULL)
+  IOCTL(SIOCATMARK, 0, MK_PTR(TYPE_INT))
   IOCTL(SIOCADDRT, IOC_W, MK_PTR(MK_STRUCT(STRUCT_rtentry)))
   IOCTL(SIOCDELRT, IOC_W, MK_PTR(MK_STRUCT(STRUCT_rtentry)))
   IOCTL(SIOCGIFNAME, IOC_RW, MK_PTR(TYPE_INT))

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] fix SIOCATMARK
  2008-10-15 22:28 Lauro Ramos Venancio
@ 2008-10-28 10:36 ` andrzej zaborowski
  0 siblings, 0 replies; 3+ messages in thread
From: andrzej zaborowski @ 2008-10-28 10:36 UTC (permalink / raw)
  To: qemu-devel

On 15/10/2008, Lauro Ramos Venancio <lauro.venancio@openbossa.org> wrote:
> The SIOCATMARK ioctl receives one parameter.

The argument is a pointer and a value is returned through it so
shouldn't the IOC_* access flags be set?

Cheers

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-28 10:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-15 22:57 [Qemu-devel] [PATCH] fix SIOCATMARK Lauro Ramos Venancio
  -- strict thread matches above, loose matches on Subject: below --
2008-10-15 22:28 Lauro Ramos Venancio
2008-10-28 10:36 ` andrzej zaborowski

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).