From 4aee48edccd1ec89a29a44be2a509c807b23c324 Mon Sep 17 00:00:00 2001 From: Bill Fumerola Date: Tue, 18 Jan 2000 01:27:47 +0000 Subject: [PATCH] Add the "use -lutil" line to all functions that require it so people like Dan Papsian don't anger wpaul and myself with silly linking errors. Reviewed by: chris --- lib/libutil/_secure_path.3 | 5 +++++ lib/libutil/fparseln.3 | 6 ++++++ lib/libutil/login_auth.3 | 6 ++++++ lib/libutil/login_cap.3 | 5 +++++ lib/libutil/login_class.3 | 5 +++++ lib/libutil/login_ok.3 | 6 ++++++ lib/libutil/login_times.3 | 6 ++++++ 7 files changed, 39 insertions(+) diff --git a/lib/libutil/_secure_path.3 b/lib/libutil/_secure_path.3 index e962669ceb68..5e762a160661 100644 --- a/lib/libutil/_secure_path.3 +++ b/lib/libutil/_secure_path.3 @@ -31,6 +31,11 @@ .Ft int .Fn _secure_path "const char *path" "uid_t uid" "gid_t gid" .Pp +Link with +.Va -lutil +on the +.Xr cc 1 +command line. .Sh DESCRIPTION This function does some basic security checking on a given path. It is intended to be used by processes running with root privileges diff --git a/lib/libutil/fparseln.3 b/lib/libutil/fparseln.3 index 04d94f127f64..9ba671c053bd 100644 --- a/lib/libutil/fparseln.3 +++ b/lib/libutil/fparseln.3 @@ -44,6 +44,12 @@ .Fa "FILE *stream" "size_t *len" "size_t *lineno" .Fa "const char delim[3]" "int flags" .Fc +.Pp +Link with +.Va -lutil +on the +.Xr cc 1 +command line. .Sh DESCRIPTION The .Fn fparseln diff --git a/lib/libutil/login_auth.3 b/lib/libutil/login_auth.3 index e521275a2db2..29986cce5b1e 100644 --- a/lib/libutil/login_auth.3 +++ b/lib/libutil/login_auth.3 @@ -57,6 +57,12 @@ .\" .Fn auth_hostok "login_cap_t *lc" "const char *hostname" "char const *ip" .\" .Ft int .\" .Fn auth_timesok "login_cap_t *lc" "time_t now" +.Pp +Link with +.Va -lutil +on the +.Xr cc 1 +command line. .Sh DESCRIPTION This set of functions support the login class authorisation style interface provided by diff --git a/lib/libutil/login_cap.3 b/lib/libutil/login_cap.3 index 7377d19ce197..4ab9282441f8 100644 --- a/lib/libutil/login_cap.3 +++ b/lib/libutil/login_cap.3 @@ -66,6 +66,11 @@ .Ft char * .Fn login_getstyle "login_cap_t *lc" "char *style" "const char *auth" .Pp +Link with +.Va -lutil +on the +.Xr cc 1 +command line. .Sh DESCRIPTION These functions represent a programming interface to the login classes database provided in diff --git a/lib/libutil/login_class.3 b/lib/libutil/login_class.3 index edbaa8931753..53633f4e3543 100644 --- a/lib/libutil/login_class.3 +++ b/lib/libutil/login_class.3 @@ -40,6 +40,11 @@ .Ft void .Fn setclassenvironment "login_cap_t *lc" "const struct passwd *pwd" "int paths" .Pp +Link with +.Va -lutil +on the +.Xr cc 1 +command line. .Sh DESCRIPTION These functions provide a higher level interface to the login class database than those documented in diff --git a/lib/libutil/login_ok.3 b/lib/libutil/login_ok.3 index a19362d4dd24..01d61c907168 100644 --- a/lib/libutil/login_ok.3 +++ b/lib/libutil/login_ok.3 @@ -37,6 +37,12 @@ .Fn auth_hostok "login_cap_t *lc" "const char *host" "char const *ip" .Ft int .Fn auth_timeok "login_cap_t *lc" "time_t t" +.Pp +Link with +.Va -lutil +on the +.Xr cc 1 +command line. .Sh DESCRIPTION This set of functions checks to see if login is allowed based on login class capability entries in the login database, diff --git a/lib/libutil/login_times.3 b/lib/libutil/login_times.3 index f80bd83e291b..1d8bd9f56a37 100644 --- a/lib/libutil/login_times.3 +++ b/lib/libutil/login_times.3 @@ -37,6 +37,12 @@ .Fn in_ltm "const login_time_t *lt" "struct tm *t" "time_t *ends" .Ft int .Fn in_ltms "const login_time_t *lt" "struct tm *t" "time_t *ends" +.Pp +Link with +.Va -lutil +on the +.Xr cc 1 +command line. .Sh DESCRIPTION This set of functions may be used for parsing and checking login and session times against a predefined list of allowed login times as