From owner-svn-src-head@freebsd.org Fri Jul 27 19:47:43 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB1C91054DE3; Fri, 27 Jul 2018 19:47:43 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8153584CE7; Fri, 27 Jul 2018 19:47:43 +0000 (UTC) (envelope-from ian@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 63D4A1C44D; Fri, 27 Jul 2018 19:47:43 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6RJlhY7056608; Fri, 27 Jul 2018 19:47:43 GMT (envelope-from ian@FreeBSD.org) Received: (from ian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6RJlgYt056605; Fri, 27 Jul 2018 19:47:42 GMT (envelope-from ian@FreeBSD.org) Message-Id: <201807271947.w6RJlgYt056605@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ian set sender to ian@FreeBSD.org using -f From: Ian Lepore Date: Fri, 27 Jul 2018 19:47:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r336779 - in head/lib: libc/gen libutil X-SVN-Group: head X-SVN-Commit-Author: ian X-SVN-Commit-Paths: in head/lib: libc/gen libutil X-SVN-Commit-Revision: 336779 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 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: Fri, 27 Jul 2018 19:47:44 -0000 Author: ian Date: Fri Jul 27 19:47:42 2018 New Revision: 336779 URL: https://svnweb.freebsd.org/changeset/base/336779 Log: Stop exporting __pw_scan and __pw_initpwd as freebsd-private libc functions for use in libutil, and instead compile the small amount of common code directly into libutil with a .PATH reachover. Discussed with: kib@ Modified: head/lib/libc/gen/Symbol.map head/lib/libutil/Makefile Modified: head/lib/libc/gen/Symbol.map ============================================================================== --- head/lib/libc/gen/Symbol.map Fri Jul 27 19:31:58 2018 (r336778) +++ head/lib/libc/gen/Symbol.map Fri Jul 27 19:47:42 2018 (r336779) @@ -510,8 +510,6 @@ FBSDprivate_1.0 { __opendir2; __pause; _pause; - __pw_initpwd; /* Used by (at least) libutil */ - __pw_scan; /* Used by (at least) libutil */ __raise; _raise; __sleep; Modified: head/lib/libutil/Makefile ============================================================================== --- head/lib/libutil/Makefile Fri Jul 27 19:31:58 2018 (r336778) +++ head/lib/libutil/Makefile Fri Jul 27 19:47:42 2018 (r336779) @@ -6,6 +6,8 @@ SHLIBDIR?= /lib .include +.PATH: ${SRCTOP}/lib/libc/gen # for pw_scan.c + LIB= util SHLIB_MAJOR= 9 @@ -15,8 +17,8 @@ SRCS= _secure_path.c auth.c expand_number.c flopen.c f kinfo_getvmobject.c kld.c \ login_auth.c login_cap.c \ login_class.c login_crypt.c login_ok.c login_times.c login_tty.c \ - pidfile.c property.c pty.c pw_util.c quotafile.c realhostname.c \ - stub.c trimdomain.c uucplock.c + pidfile.c property.c pty.c pw_scan.c pw_util.c quotafile.c \ + realhostname.c stub.c trimdomain.c uucplock.c INCS= libutil.h login_cap.h CFLAGS+= -DNO__SCCSID