pthread_setaffinity (Linux variant): Rewrite to use VLA instead of alloca
commit98734cc50153c80047f4ed9c6772bc7e1e68c9f7
authorFlorian Weimer <fweimer@redhat.com>
Mon, 23 Mar 2015 15:34:48 +0000 (23 16:34 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 23 Mar 2015 15:34:48 +0000 (23 16:34 +0100)
treee208493e21d45365648a93fa2103d5775b855b91
parent2b028564f14d20cdda0c00d8ba100695b40501f5
pthread_setaffinity (Linux variant): Rewrite to use VLA instead of alloca

extend_alloca was used to emulate VLA deallocation.  The new version
also handles the res == 0 corner case more explicitly, by returning 0
instead of the (potentially undefined, but usually zero) system call
error.
ChangeLog
sysdeps/unix/sysv/linux/pthread_setaffinity.c