svn commit: r292516 - head/lib/libthr/thread
Jilles Tjoelker
jilles at FreeBSD.org
Sun Dec 20 16:33:57 UTC 2015
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
More information about the svn-src-head
mailing list