Date: Sun, 20 Dec 2015 16:33:56 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292516 - head/lib/libthr/thread Message-ID: <201512201633.tBKGXuR9094272@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <fcntl.h> */ #ifdef _SYS_FCNTL_H_ int __sys_fcntl(int, int, ...); -int __sys_open(const char *, int, ...); int __sys_openat(int, const char *, int, ...); #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512201633.tBKGXuR9094272>