git: libpthread: Add sem_timedwait().

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Dec 25 11:39:59 PST 2012


commit 775923a8d67ea35ff5fb2fc616d36ae4acd5e4ff
Author: Sascha Wildner <saw at online.de>
Date:   Tue Dec 25 20:37:29 2012 +0100

    libpthread: Add sem_timedwait().
    
    It was commented out and I'm not sure why.
    
    It needed a bit of adjustment to properly check the nanoseconds field but
    with that, it passes all eleven tests of the Open POSIX Test Suite. Other
    people (thesjg, vsrinivas) have tested and used it too in the past.
    
    While here, also add a manual page (taken from FreeBSD).
    
    In-discussion-with: vsrinivas

Summary of changes:
 lib/libc/gen/_pthread_stubs.c                      |    1 +
 lib/libpthread/Makefile                            |    1 +
 .../sem_timedwait.3}                               |  119 +++++++++++---------
 lib/libthread_xu/thread/thr_sem.c                  |    7 +-
 sys/sys/semaphore.h                                |    3 +-
 5 files changed, 73 insertions(+), 58 deletions(-)
 copy lib/{libc/gen/posix_spawn_file_actions_init.3 => libpthread/sem_timedwait.3} (52%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/775923a8d67ea35ff5fb2fc616d36ae4acd5e4ff


-- 
DragonFly BSD source repository



More information about the Commits mailing list