This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: 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
- Date: Fri, 13 Jun 2003 17:45:34 +0200
- Subject: Re: PATCH: return signed result of syscall for cris
- References: <3EE9E9A8.10508@pulsar.homelinux.net>
Well, here's the patch in unified format, as requested.
* 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 -u -r1.4 sysdep.h
--- sysdep.h 12 Jun 2003 16:18:11 -0000 1.4
+++ sysdep.h 13 Jun 2003 15:42:58 -0000
@@ -170,7 +170,7 @@
__set_errno (- __sys_res); \
__sys_res = (unsigned long) -1; \
} \
- __sys_res; \
+ (long) __sys_res; \
})
#define LOAD_ARGS_c_0()