This is the mail archive of the libc-alpha@sourceware.org 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: Use __syscall_ulong_t in pselect.c


Hi,

X32 uses the same pselect6 system call as x86-64.  This patch replaces
size_t with __syscall_ulong_t in pselect.c.  Tested on Linux/x32.  OK
to install?

Thanks.

H.J.
--
	* sysdeps/unix/sysv/linux/pselect.c (data): Replace size_t
	with __syscall_ulong_t.

diff --git a/sysdeps/unix/sysv/linux/pselect.c b/sysdeps/unix/sysv/linux/pselect.c
index 8864d78..8fb0a53 100644
--- a/sysdeps/unix/sysv/linux/pselect.c
+++ b/sysdeps/unix/sysv/linux/pselect.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 2006-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2006.
 
@@ -53,7 +53,7 @@ __pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
   struct
   {
     const sigset_t *ss;
-    size_t ss_len;
+    __syscall_ulong_t ss_len;
   } data;
 
   data.ss = sigmask;


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