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@
This commit is contained in:
Ian Lepore 2018-07-27 19:47:42 +00:00
parent c680645566
commit 757e8bdbea
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -6,6 +6,8 @@ SHLIBDIR?= /lib
.include <src.opts.mk>
.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 fparseln.c gr_util.c \
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