This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: return signed result of syscall for cris
- From: Uwe Reimann <libc-alpha at pulsar dot homelinux dot net>
- To: libc-alpha at sources dot redhat dot com
- Cc: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Date: Fri, 13 Jun 2003 17:11:36 +0200
- Subject: 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; \