From owner-svn-src-head@freebsd.org Thu Feb 23 23:02:55 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5234CEB8FE; Thu, 23 Feb 2017 23:02:55 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-qt0-x22c.google.com (mail-qt0-x22c.google.com [IPv6:2607:f8b0:400d:c0d::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6122E102B; Thu, 23 Feb 2017 23:02:55 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-qt0-x22c.google.com with SMTP id n21so5023548qta.1; Thu, 23 Feb 2017 15:02:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hEtMnmocj7nkOEv90H6PNdJXO/+VlikYvp6TwtpyjYw=; b=CevUGOiIG7fSCDXfi7q7SZ6/+A97OS6+/utk8iRV7Ga92kbhf4r8iJOTVPyE//sZ1n 1ofuzwZsfEXKAVl9+Rb00TgpY17tqOCE1Yx4HKGsvfers7vrwRVWzGFAaJmbGDsLj38k hcUYpdmhcBFx19roEH0YVe8GucStL54iFkyTVRzlD8nkh1j5sD/CW0MefnHr5uoJpliQ RgZRPBFxSbFr6mrTlA6z1P8Q2tifQaJcgTJYkklizGxc9RvW4/ewlwHdFuD28JdwJGJR 0siM4YZiFTbVfMlkjIIUkjXvP8AEnhHwSX7L8T8VH71fiErJpu4d7MQjCPw/7L9PwMBx lO6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hEtMnmocj7nkOEv90H6PNdJXO/+VlikYvp6TwtpyjYw=; b=R4hZISGyaSGfJWoiyCv0s49MGVLJRuxighMHuNOixMKjthYgi30ZWPsFUvDvzOgU3E uKkEpsM4Ivs8NC9h5aYnwY9hbgX37+ibMIuJQbMbgzUF2JQKpMVuc5MXVNvA2lGiqWIO aZ7SxWImrxVnCF1zcLigv3pysdn5iSSeQ9qZGNQ6GpgdO1r8zFcMNnWUqW2bEtotQZM9 EBXhZB5r9DNrgU2bQ07zQXBqhOvz+bSzNSESEj89r4iE6gNl6oSHvx2GTr+pCwJ9/6O6 hemSHTWnR9FQaMQO9wvM/HMy9AYNXeefwrmQegtFQCBbCpghsWIMyMwuJwjrp+QQC2Wk 4SVg== X-Gm-Message-State: AMke39ktP0VF0jlZHZrXcIRn3/QQRbz6pfRsvwqbGh5AgHPIFrDF9XWPJz7ROscITRfgJH98xrsDePYLP/q0MQ== X-Received: by 10.237.48.105 with SMTP id 96mr15362828qte.246.1487890974297; Thu, 23 Feb 2017 15:02:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.84.230 with HTTP; Thu, 23 Feb 2017 15:02:53 -0800 (PST) In-Reply-To: <201702231936.v1NJadRa029404@repo.freebsd.org> References: <201702231936.v1NJadRa029404@repo.freebsd.org> From: Ngie Cooper Date: Thu, 23 Feb 2017 15:02:53 -0800 Message-ID: Subject: Re: svn commit: r314179 - in head: contrib/netbsd-tests/lib/librt include lib/libc/gen lib/libc/include share/man/man3 sys/kern To: Eric van Gyzen Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2017 23:02:55 -0000 On Thu, Feb 23, 2017 at 11:36 AM, Eric van Gyzen wrote: > Author: vangyzen > Date: Thu Feb 23 19:36:38 2017 > New Revision: 314179 > URL: https://svnweb.freebsd.org/changeset/base/314179 > > Log: > Add sem_clockwait_np() > > This function allows the caller to specify the reference clock > and choose between absolute and relative mode. In relative mode, > the remaining time can be returned. > > The API is similar to clock_nanosleep(3). Thanks to Ed Schouten > for that suggestion. > > While I'm here, reduce the sleep time in the semaphore "child" > test to greatly reduce its runtime. Also add a reasonable timeout. > > Reviewed by: ed (userland) > MFC after: 2 weeks > Relnotes: yes > Sponsored by: Dell EMC > Differential Revision: https://reviews.freebsd.org/D9656 > > Modified: > head/contrib/netbsd-tests/lib/librt/t_sem.c > head/include/semaphore.h > head/lib/libc/gen/Makefile.inc > head/lib/libc/gen/Symbol.map > head/lib/libc/gen/sem_new.c > head/lib/libc/gen/sem_timedwait.3 > head/lib/libc/include/namespace.h > head/lib/libc/include/un-namespace.h > head/share/man/man3/pthread_testcancel.3 > head/sys/kern/kern_umtx.c > > Modified: head/contrib/netbsd-tests/lib/librt/t_sem.c ... *sigh* I really wish people would read MAINTAINERS and include me on CRs to contrib/netbsd-tests/ (especially since I spent a few weekends cleaning this up to diff reduce and contribute back changes to NetBSD). Thanks, -Ngie