]> sourceware.org Git - glibc.git/commitdiff
Use __syscall_ulong_t in pselect.c
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 18 May 2012 00:27:13 +0000 (17:27 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 18 May 2012 00:27:13 +0000 (17:27 -0700)
ChangeLog
sysdeps/unix/sysv/linux/pselect.c

index 3459871579958a82e2e02f2846c46911527d6dc0..8a89c2dc9baecd6dd5fa4666d165bbb2ff223e8a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
 
+       * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
+       on both fields and cast pointer to __syscall_ulong_t.
+
        * bits/types.h (__fsword_t): New type.
        * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
        sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
index 8864d7806c075cdc820dbe76e2b879a6447ebb0a..11aa7d1b03c614e15b7528217a84336bee86bfb8 100644 (file)
@@ -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.
 
@@ -52,11 +52,11 @@ __pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
      be created.  */
   struct
   {
-    const sigset_t *ss;
-    size_t ss_len;
+    __syscall_ulong_t ss;
+    __syscall_ulong_t ss_len;
   } data;
 
-  data.ss = sigmask;
+  data.ss = (__syscall_ulong_t) (uintptr_t) sigmask;
   data.ss_len = _NSIG / 8;
 
   int result;
This page took 0.113371 seconds and 5 git commands to generate.