DragonFly-2.3.2.182.g5b77e master lib/libc_r/uthread uthread_fd.c uthread_open.c

Nicolas Thery nth at crater.dragonflybsd.org
Sun Jul 26 13:19:53 PDT 2009


commit 5b77e1f680812324ac459c1b6bf730ad1a638b68
Author: Nicolas Thery <nthery at gmail.com>
Date:   Sun Jul 26 20:40:46 2009 +0200

    libc_r: fix bugs in openat()
    
    The openat() wrapper was not locking its file descriptor argument.
    
    Special case the magic AT_FDCWD descriptor in the file descriptor
    locking code (_FD_LOCK() / _FD_UNLOCK()) to avoid EINVAL on locking.

Summary of changes:
 lib/libc_r/uthread/uthread_fd.c   |   32 ++++++++++++++++++++++++++++----
 lib/libc_r/uthread/uthread_open.c |    6 ++++++
 2 files changed, 34 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5b77e1f680812324ac459c1b6bf730ad1a638b68


-- 
DragonFly BSD source repository





More information about the Commits mailing list