Re: Cygwin: Implement sched_[gs]etaffinity() commit breaks RTEMS port
Corinna Vinschen <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
On Jun 27 08:28, Sebastian Huber wrote: > On 26/06/2019 15:12, Corinna Vinschen wrote: > > On Jun 26 13:05, Sebastian Huber wrote: > > > On 26/06/2019 11:37, Corinna Vinschen wrote: > > > > On Jun 26 10:24, Sebastian Huber wrote: > > > > > Hello, > > > > > > > > > > the following commit: > > > > > > > > > > commit 641ecb07533e85211b6abce334c85967f3f90209 > > > > > Author: Mark Geisert<[email protected]> > > > > > Date: Sun Jun 23 14:51:06 2019 -0700 > > > > > > > > > > Cygwin: Implement sched_[gs]etaffinity() > > > > > [...] > > > > > breaks the RTEMS port: > > > > > [...] > > > > Looks like Cygwin has to define its own sys/cpuset.h included via > > > > sys/_pthreadtypes.h. > > > > > > Yes, something like this. The RTEMS <sys/cpuset.h> is based on the FreeBSD > > > implementation and should be compatible to the Linux API. Maybe it can move > > > out of the RTEMS area into the global Newlib area. > > > > I'm not so sure, given the different names of macros and types used > > inside cpu_set_t. The new functions inside Cygwin rely on that. > > How do you implement this API in Cygwin: > > http://man7.org/linux/man-pages/man3/CPU_SET.3.html > > I think the RTEMS <sys/cpuset.h> implementation should cover it. AFAICS we don't. Mark, do you see much of a problem to rearrange your new sched_[gs]etaffinity code to use the RTEMS sys/cpuset.h file? We can define our own sys/_cpuset.h, or use the RTEMS file as well. Thanks for looking into this. Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl0Ua3cACgkQ9TYGna5E T6DG/g/8DckqgthQXLlBmXEHFJzLSKs7yPoTUptjgyXObuvTCO3W+Vup7Czn5UTH TOZUs7qqFt6028ciQKx9bccjnZKBKmo8XgWHFyZgJyfuXW8mZ4gfyA7dq1DztaIw Dn4JNqUSmNgER968KtVEURmTs7TtwBBgrtSoTNltcVNETm8tKRv4A0XYGZglz7RC kVukUwg0Q5Y7Ri7//4yX9hG9Za2vBJ3jeGG95z6YhxYbPS7H/mzs5b+DCpB+UrwS gdOpTuJ/+mDtOZYWQyKcs3o9d+hXuiB5LKraaJgq60wPvrUZLduKjFO5w1kP8X5r 0YHvZ9xIp9mutAYOp2OJAFB9HI+/RRf+o62MSRZ+//zmY+QpvfmhzKyxhYFNnM73 iTMQORe0/MA1u0DGt4zZqAjBNgrInPoXLg+GUlXFtl762aLSWsl/k1Pej0XWqcyZ 4nn+AhOJKewoMZEwwbXBQsWjfxx1G1gwGjNQEZX5TJQ4dWhzJ8yOsYqwBzIDSKxz GSwvSuK4q9WYSjXX1BIAv33nTUmSLKD4UyNi1+99fdYXPNMWT5eWftN01Nabb5O9 TOST6dZ5nzygIN4ukoD0HlZdTRjBVOzQ7uEkd4HtTOh5+1XTj7C8vdMr23RmI4sD +Xx6ov3ulbjjdBCT5lz9hZS0V8VcfoTRV1jjlskRWPRAPAyHBBQ= =VUxg -----END PGP SIGNATURE-----