From owner-svn-src-all@freebsd.org Sun Dec 20 16:33:57 2015 Return-Path: Delivered-To: svn-src-all@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 7FF30A4DA6A; Sun, 20 Dec 2015 16:33:57 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F8561ACE; Sun, 20 Dec 2015 16:33:57 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tBKGXu72094274; Sun, 20 Dec 2015 16:33:56 GMT (envelope-from jilles@FreeBSD.org) Received: (from jilles@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tBKGXuR9094272; Sun, 20 Dec 2015 16:33:56 GMT (envelope-from jilles@FreeBSD.org) Message-Id: <201512201633.tBKGXuR9094272@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jilles set sender to jilles@FreeBSD.org using -f From: Jilles Tjoelker Date: Sun, 20 Dec 2015 16:33:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292516 - head/lib/libthr/thread X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2015 16:33:57 -0000 Author: jilles Date: Sun Dec 20 16:33:56 2015 New Revision: 292516 URL: https://svnweb.freebsd.org/changeset/base/292516 Log: libthr: Don't use both __sys_open() and __sys_openat(). Modified: head/lib/libthr/thread/thr_init.c head/lib/libthr/thread/thr_private.h Modified: head/lib/libthr/thread/thr_init.c ============================================================================== --- head/lib/libthr/thread/thr_init.c Sun Dec 20 16:07:09 2015 (r292515) +++ head/lib/libthr/thread/thr_init.c Sun Dec 20 16:33:56 2015 (r292516) @@ -332,7 +332,7 @@ _libpthread_init(struct pthread *curthre PANIC("Can't set session ID"); if (revoke(_PATH_CONSOLE) != 0) PANIC("Can't revoke console"); - if ((fd = __sys_open(_PATH_CONSOLE, O_RDWR)) < 0) + if ((fd = __sys_openat(AT_FDCWD, _PATH_CONSOLE, O_RDWR)) < 0) PANIC("Can't open console"); if (setlogin("root") == -1) PANIC("Can't set login to root"); Modified: head/lib/libthr/thread/thr_private.h ============================================================================== --- head/lib/libthr/thread/thr_private.h Sun Dec 20 16:07:09 2015 (r292515) +++ head/lib/libthr/thread/thr_private.h Sun Dec 20 16:33:56 2015 (r292516) @@ -803,7 +803,6 @@ void _pthread_cancel_leave(int maycance /* #include */ #ifdef _SYS_FCNTL_H_ int __sys_fcntl(int, int, ...); -int __sys_open(const char *, int, ...); int __sys_openat(int, const char *, int, ...); #endif