mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-02 16:01:20 +03:00
Update.
* sysdeps/unix/sysv/linux/powerpc/pread.c: Do not use the i386 version. Instead call the system call wrapper function using an 64bit argument. * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
This commit is contained in:
@@ -340,11 +340,12 @@ int __pthread_create_2_0(pthread_t *thread, const pthread_attr_t *attr,
|
||||
{
|
||||
size_t ps = __getpagesize ();
|
||||
|
||||
memcpy (&new_attr, attr, (size_t) &(((pthread_attr_t*)NULL)->guardsize));
|
||||
new_attr.guardsize = ps;
|
||||
new_attr.stackaddr_set = 0;
|
||||
new_attr.stackaddr = NULL;
|
||||
new_attr.stacksize = STACK_SIZE - ps;
|
||||
memcpy (&new_attr, attr,
|
||||
(size_t) &(((pthread_attr_t*)NULL)->__guardsize));
|
||||
new_attr.__guardsize = ps;
|
||||
new_attr.__stackaddr_set = 0;
|
||||
new_attr.__stackaddr = NULL;
|
||||
new_attr.__stacksize = STACK_SIZE - ps;
|
||||
attr = &new_attr;
|
||||
}
|
||||
return __pthread_create_2_1 (thread, attr, start_routine, arg);
|
||||
|
Reference in New Issue
Block a user