Skip to contentSkip to conversation

fix SIOCATMARK

PATCH In review Lauro Ramos Venancio 2 participants 2 messages Oct 15, 2008 – Oct 28, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix SIOCATMARK

The SIOCATMARK ioctl receives one parameter.

Signature · 2 lines
Lauro Ramos Venancio
INdT - Instituto Nokia de Tecnologia
ioctls.h +1 -1
Index: linux-user/ioctls.h
===================================================================
@@ -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))
#1 lore raw
Quoted 1 line · Lauro Ramos Venancio

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