summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>2000-01-18 01:27:47 +0000
committerbillf <billf@FreeBSD.org>2000-01-18 01:27:47 +0000
commit1fb52e454373e03ecf8f2a6fe03fd95b26b41084 (patch)
tree91a5684f92c702736a5fc7fff05bac1fa073a791 /lib/libutil
parent688f4a7de6d15bc9893dd81b5b135d9e22ab7ad9 (diff)
downloadFreeBSD-src-1fb52e454373e03ecf8f2a6fe03fd95b26b41084.zip
FreeBSD-src-1fb52e454373e03ecf8f2a6fe03fd95b26b41084.tar.gz
Add the "use -lutil" line to all functions that require it so people like
Dan Papsian <bugg@bugg.strangled.net> don't anger wpaul and myself with silly linking errors. Reviewed by: chris
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/_secure_path.35
-rw-r--r--lib/libutil/fparseln.36
-rw-r--r--lib/libutil/login_auth.36
-rw-r--r--lib/libutil/login_cap.35
-rw-r--r--lib/libutil/login_class.35
-rw-r--r--lib/libutil/login_ok.36
-rw-r--r--lib/libutil/login_times.36
7 files changed, 39 insertions, 0 deletions
diff --git a/lib/libutil/_secure_path.3 b/lib/libutil/_secure_path.3
index e962669..5e762a1 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 04d94f1..9ba671c 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 e521275..29986cc 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 7377d19..4ab9282 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 edbaa89..53633f4 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 a19362d..01d61c9 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 f80bd83..1d8bd9f 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
OpenPOWER on IntegriCloud