This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: return signed result of syscall for cris


Hi,

this patch makes llseek() return -1LL instead of 0xffffffff when in case of an error (for sources which use -D_FILE_OFFSET_BITS=64).

This works for me. Hans-Peter, any comments?

Best regards, Uwe

P.S.: Is there an easier way to incoporate the comments into the patch than editing it manually?
	* typecast __sys_res to signed long to make typecasts to
	  long long int work

Index: sysdep.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/cris/sysdep.h,v
retrieving revision 1.4
diff -r1.4 sysdep.h
173c173
<      __sys_res;					\
---
>      (long) __sys_res;					\

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]