git: pthread: Fix return value for pthread_attr_setschedpolicy()

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Mon Sep 26 00:33:01 PDT 2016


commit f049c502fb14765d959b6ee76794ae9c2a41e634
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Fri Sep 16 12:26:04 2016 +0300

    pthread: Fix return value for pthread_attr_setschedpolicy()
    
    There are to possible interpretations of ENOTSUP in POSIX specs.
    After some research and trial and error testing for now stick to:
    on unsupported [known] attribute ENOTSUP should be returned.
    Check sched parameters explictly.
    
    While there, rename too generic local variable 'local' and
    move up the <sys/syscall.h> include.

Summary of changes:
 lib/libthread_xu/thread/thr_attr.c        | 8 ++++----
 lib/libthread_xu/thread/thr_concurrency.c | 7 ++++---
 lib/libthread_xu/thread/thr_fork.c        | 3 +--
 3 files changed, 9 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f049c502fb14765d959b6ee76794ae9c2a41e634


-- 
DragonFly BSD source repository



More information about the Commits mailing list