summaryrefslogtreecommitdiffstats
path: root/include/rpcsvc/rnusers.x
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1997-05-28 04:38:30 +0000
committerwpaul <wpaul@FreeBSD.org>1997-05-28 04:38:30 +0000
commitfd6d99f49e14785b3c84eaf12c9ae787ee93700d (patch)
treee1853e38f0b1243daa3c8d027f2bf1aff3adaac8 /include/rpcsvc/rnusers.x
parent4b109a080d8618ef145e3a1ac1665ac19b50d1be (diff)
downloadFreeBSD-src-fd6d99f49e14785b3c84eaf12c9ae787ee93700d.zip
FreeBSD-src-fd6d99f49e14785b3c84eaf12c9ae787ee93700d.tar.gz
Resolve conflicts.
Diffstat (limited to 'include/rpcsvc/rnusers.x')
-rw-r--r--include/rpcsvc/rnusers.x35
1 files changed, 33 insertions, 2 deletions
diff --git a/include/rpcsvc/rnusers.x b/include/rpcsvc/rnusers.x
index 72f558c..0ba5248 100644
--- a/include/rpcsvc/rnusers.x
+++ b/include/rpcsvc/rnusers.x
@@ -35,7 +35,7 @@
%#ifndef lint
%/*static char sccsid[] = "from: @(#)rnusers.x 1.2 87/09/20 Copyr 1987 Sun Micro";*/
%/*static char sccsid[] = "from: @(#)rnusers.x 2.1 88/08/01 4.0 RPCSRC";*/
-%static char rcsid[] = "$Id$";
+%static char rcsid[] = "$Id: rnusers.x,v 1.1 1994/08/04 19:01:50 wollman Exp $";
%#endif /* not lint */
#endif
@@ -59,6 +59,21 @@ typedef utmp utmparr<MAXUSERS>;
typedef utmpidle utmpidlearr<MAXUSERS>;
+const RUSERS_MAXUSERLEN = 32;
+const RUSERS_MAXLINELEN = 32;
+const RUSERS_MAXHOSTLEN = 257;
+
+struct rusers_utmp {
+ string ut_user<RUSERS_MAXUSERLEN>; /* aka ut_name */
+ string ut_line<RUSERS_MAXLINELEN>; /* device */
+ string ut_host<RUSERS_MAXHOSTLEN>; /* host user logged on from */
+ int ut_type; /* type of entry */
+ int ut_time; /* time entry was made */
+ unsigned int ut_idle; /* minutes idle */
+};
+
+typedef rusers_utmp utmp_array<>;
+
program RUSERSPROG {
/*
* Old version does not include idle information
@@ -87,5 +102,21 @@ program RUSERSPROG {
utmpidlearr
RUSERSPROC_ALLNAMES(void) = 3;
} = 2;
+
+ /*
+ * Version 3 rusers procedures (from Solaris).
+ * (Thanks a lot Sun.)
+ */
+ version RUSERSVERS_3 {
+ int
+ RUSERSPROC_NUM(void) = 1;
+
+ utmp_array
+ RUSERSPROC_NAMES(void) = 2;
+
+ utmp_array
+ RUSERSPROC_ALLNAMES(void) = 3;
+ } = 3;
+
} = 100002;
-
+
OpenPOWER on IntegriCloud