cc [ flag ... ] file ... -lrpcsvc [ library ... ]
#include <rpc/rpc.h> #include <rpcsvc/rwall.h>
enum clnt_stat rwall(char *host, char *msg);
MT-Safe
rwall() executes wall(1M) on host. The rpc.rwalld process on host prints msg to all users logged on to that system. rwall() returns RPC_SUCCESS if it was successful; otherwise a enum clnt_stat is returned which can be displayed using clnt_perrno(3N) .