diff options
author | charnier <charnier@FreeBSD.org> | 1997-11-26 07:31:14 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-11-26 07:31:14 +0000 |
commit | 0a4b753b280853b41f27d7b886c691c71ede39b2 (patch) | |
tree | 6ef599c7f16c334b1b9c4186de2532ee04af1a93 | |
parent | d61a5ed6ec4eb9415ad5282fbe01ebd444314594 (diff) | |
download | FreeBSD-src-0a4b753b280853b41f27d7b886c691c71ede39b2.zip FreeBSD-src-0a4b753b280853b41f27d7b886c691c71ede39b2.tar.gz |
Cosmetics in man page. Add rcsid and sort #includes.
-rw-r--r-- | libexec/rpc.rquotad/rpc.rquotad.8 | 16 | ||||
-rw-r--r-- | libexec/rpc.rquotad/rquotad.c | 21 |
2 files changed, 22 insertions, 15 deletions
diff --git a/libexec/rpc.rquotad/rpc.rquotad.8 b/libexec/rpc.rquotad/rpc.rquotad.8 index dd8f3aa..4a2aa30 100644 --- a/libexec/rpc.rquotad/rpc.rquotad.8 +++ b/libexec/rpc.rquotad/rpc.rquotad.8 @@ -27,7 +27,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $Id: rpc.rquotad.8,v 1.3 1997/02/22 14:22:10 peter Exp $ +.\" $Id: rpc.rquotad.8,v 1.4 1997/03/14 06:09:04 mpp Exp $ .\" .Dd June 22, 1994 .Dt RPC.RQUOTAD 8 @@ -38,24 +38,26 @@ .Sh SYNOPSIS .Nm /usr/libexec/rpc.rquotad .Sh DESCRIPTION -.Nm rpc.rquotad +.Nm Rpc.rquotad is a .Xr rpc 3 server which returns quotas for a user of a local filesystem which is NFS-mounted onto a remote machine. -.Xr quota 1 +.Xr Quota 1 uses the results to display user quotas for remote filesystems. -.Nm rpc.rquotad +.Nm Rpc.rquotad is normally invoked by .Xr inetd 8 . .Pp -.Nm rpc.rquotad -uses an RPC protocol defined in +.Nm Rpc.rquotad +uses an +.Tn RPC +protocol defined in .Pa /usr/include/rpcsvc/rquota.x . .Sh BUGS .Bx 4.4 and -.Tn FreeBSD +.Bx Free support group quotas but the rquota protocol does not. .Sh SEE ALSO .Xr quota 1 diff --git a/libexec/rpc.rquotad/rquotad.c b/libexec/rpc.rquotad/rquotad.c index 33fa420..926d300 100644 --- a/libexec/rpc.rquotad/rquotad.c +++ b/libexec/rpc.rquotad/rquotad.c @@ -4,6 +4,11 @@ * There is no copyright, you can use it as you want. */ +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ + #include <sys/param.h> #include <sys/types.h> #include <sys/mount.h> @@ -12,15 +17,15 @@ #include <sys/socket.h> #include <signal.h> -#include <stdio.h> -#include <fstab.h> #include <ctype.h> +#include <errno.h> +#include <fstab.h> +#include <grp.h> +#include <pwd.h> +#include <stdio.h> #include <stdlib.h> -#include <unistd.h> #include <string.h> -#include <pwd.h> -#include <grp.h> -#include <errno.h> +#include <unistd.h> #include <syslog.h> #include <varargs.h> @@ -92,11 +97,11 @@ main(argc, argv) /* create and register the service */ transp = svcudp_create(sock); if (transp == NULL) { - syslog(LOG_ERR, "couldn't create udp service."); + syslog(LOG_ERR, "couldn't create udp service"); exit(1); } if (!svc_register(transp, RQUOTAPROG, RQUOTAVERS, rquota_service, proto)) { - syslog(LOG_ERR, "unable to register (RQUOTAPROG, RQUOTAVERS, %s).", proto?"udp":"(inetd)"); + syslog(LOG_ERR, "unable to register (RQUOTAPROG, RQUOTAVERS, %s)", proto?"udp":"(inetd)"); exit(1); } |