Hi Mark,

On Jun 26 01:14, Mark Geisert wrote:
> Have sched_getaffinity() interface like glibc's, and provide an
> undocumented internal interface __sched_getaffinity_sys() like the Linux
> kernel's sched_getaffinity() for benefit of taskset(1).
> 
> ---
>  newlib/libc/include/sched.h            |  1 +
>  winsup/cygwin/common.din               |  1 +
>  winsup/cygwin/include/cygwin/version.h |  2 +-
>  winsup/cygwin/sched.cc                 | 29 +++++++++++++++++---------
>  4 files changed, 22 insertions(+), 11 deletions(-)
> 
> diff --git a/newlib/libc/include/sched.h b/newlib/libc/include/sched.h
> index fc44209d6..bdd57d442 100644
> --- a/newlib/libc/include/sched.h
> +++ b/newlib/libc/include/sched.h
> @@ -111,6 +111,7 @@ typedef struct
>    __cpu_mask __bits[__CPU_GROUPMAX];
>  } cpu_set_t;
>  
  #ifdef __CYGWIN__
> +int __sched_getaffinity_sys (pid_t, size_t, cpu_set_t *);
  #endif

ideally outside the #if __GNU_VISIBLE bracketing.

The rest of the patch looks good.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

Attachment: signature.asc
Description: PGP signature

Reply via email to