[PATCH v3.2] New functions pthread_[sg]etattr_default_np for default thread attributes

Siddhesh Poyarekar siddhesh@redhat.com
Thu Jun 13 18:32:00 GMT 2013


On Thu, Jun 13, 2013 at 02:29:38PM -0400, Carlos O'Donell wrote:
> You can only copy the minimum of the sizes?
> 
> - void *p = mempcpy (cpuset, iattr->cpuset, iattr->cpusetsize);
> + void *p = mempcpy (cpuset, iattr->cpuset, MIN(cpusetsize, iattr->cpusetsize));
> 

Yes, something like that.  I'm getting a test case together to
validate this.

Siddhesh



More information about the Libc-alpha mailing list