Skip to contentSkip to conversation

open() forces O_LARGEFILE for o32 on 64bit kernels

PATCH New Thiemo Seufer 1 participant 1 message May 28, 2006 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 open() forces O_LARGEFILE for o32 on 64bit kernels

Hello All,

open() always sets the O_LARGEFILE flag for the o32 ABI implementation of a 64bit kernel. The appended patch fixes it.

Thiemo

arch/mips/kernel/scall64-o32.S +1 -1
@@ -209,7 +209,7 @@ sys_call_table:
 	PTR	sys_fork
 	PTR	sys_read
 	PTR	sys_write
-	PTR	sys_open			/* 4005 */
+	PTR	compat_sys_open			/* 4005 */
 	PTR	sys_close
 	PTR	sys_waitpid
 	PTR	sys_creat