Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rusers(1)

rpc_clnt_calls(3N)

rusers(3N)

NAME

rusers, rnusers − return information about users on remote machines

SYNOPSIS

cc [ flag ... ] file ... −lrpcsvc [ library ... ]

#include <rpcsvc/rusers.h>

int rusers(char ∗host, struct utmpidlearr ∗up);

rnusers(char ∗host);

DESCRIPTION

rusers() fills the utmpidlearr structure with data about host, and returns 0 if successful.

rnusers() returns the number of users logged on to host (−1 if it cannot determine that number). 

On error, the returned value can be interpreted as an enum clnt_stat and can be displayed with clnt_perror() or clnt_sperrno().  See rpc_clnt_calls(3N). 

See the header <rpcsvc/rusers.h> for a definition of struct utmpidlearr. 

SEE ALSO

rusers(1), rpc_clnt_calls(3N)

SunOS 5.1/SPARC  —  Last change: 3 Jul 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026