From: Ulrich Drepper Date: Tue, 1 Nov 2011 14:38:00 +0000 (-0400) Subject: unsigned long it better for the size arguments X-Git-Tag: glibc-2.15~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e35f65ea8dbd8f3d011bc93af56f7a3161172b26;p=platform%2Fupstream%2Fglibc.git unsigned long it better for the size arguments The new syscalls should use unsigned long not size_t. The parameters are not a direct measure of memory size. --- diff --git a/sysdeps/unix/sysv/linux/bits/uio.h b/sysdeps/unix/sysv/linux/bits/uio.h index ea850c8..b2d7719 100644 --- a/sysdeps/unix/sysv/linux/bits/uio.h +++ b/sysdeps/unix/sysv/linux/bits/uio.h @@ -56,16 +56,18 @@ __BEGIN_DECLS /* Read from another process' address space. */ extern ssize_t process_vm_readv (pid_t __pid, __const struct iovec *__lvec, - size_t __liovcnt, + unsigned long int __liovcnt, __const struct iovec *__rvec, - size_t __riovcnt, unsigned long int __flags) + unsigned long int __riovcnt, + unsigned long int __flags) __THROW; /* Write to another process' address space. */ extern ssize_t process_vm_writev (pid_t __pid, __const struct iovec *__lvec, - size_t __liovcnt, + unsigned long int __liovcnt, __const struct iovec *__rvec, - size_t __riovcnt, unsigned long int __flags) + unsigned long int __riovcnt, + unsigned long int __flags) __THROW; __END_DECLS