* include/sys/cygwin.h (struct per_process): Add posix_memalign. Reduce
size of unused2 accordingly. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Initialize u->posix_memalign with address of posix_memalign. * malloc_wrapper.cc (posix_memalign): Call user-provided posix_memalign rather than just returning ENOSYS. * globals.cc (__cygwin_user_data): Initialize posix_memalign member.
This commit is contained in:
@ -115,7 +115,7 @@ posix_memalign (void **memptr, size_t alignment, size_t bytes)
|
||||
|
||||
void *res;
|
||||
if (!use_internal)
|
||||
return ENOSYS;
|
||||
return user_data->posix_memalign (memptr, alignment, bytes);
|
||||
if ((alignment & (alignment - 1)) != 0)
|
||||
return EINVAL;
|
||||
__malloc_lock ();
|
||||
|
Reference in New Issue
Block a user