Cosmetics in man page. Add rcsid and sort #includes.

This commit is contained in:
charnier 1997-11-26 07:31:14 +00:00
parent d61a5ed6ec
commit 0a4b753b28
2 changed files with 23 additions and 16 deletions

View File

@ -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

View File

@ -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 <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pwd.h>
#include <grp.h>
#include <errno.h>
#include <fstab.h>
#include <grp.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.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);
}