/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* This file can not be automatically generated by rpcgen from
* autofs_prot.x because of the xdr routines that provide readdir
* support, and my own implementation of xdr_autofs_netbuf().
*/
#include <string.h>
#include <rpcsvc/autofs_prot.h>
#include <rpcsvc/nfs4_prot.h>
#include <stdlib.h>
#include <strings.h>
{
return (FALSE);
return (TRUE);
}
{
return (FALSE);
return (TRUE);
}
{
return (FALSE);
return (FALSE);
return (TRUE);
}
{
return (FALSE);
}
return (dummy);
}
{
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
}
{
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
}
{
return (FALSE);
case AUTOFS_MOUNT_RQ:
return (FALSE);
break;
case AUTOFS_LINK_RQ:
return (FALSE);
break;
}
return (TRUE);
}
{
while (more_data) {
return (FALSE);
return (FALSE);
if (!more_data) {
break;
}
mem_alloc(sizeof (action_list));
return (FALSE);
}
}
while (more_data) {
return (FALSE);
return (FALSE);
}
} else {
while (more_data) {
return (FALSE);
if (!first_objp)
else
first_objp = FALSE;
}
}
return (TRUE);
}
{
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
}
{
return (FALSE);
return (TRUE);
}
{
return (FALSE);
return (TRUE);
}
{
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
}
{
return (FALSE);
case AUTOFS_ACTION:
if (!xdr_pointer(xdrs,
return (FALSE);
break;
case AUTOFS_DONE:
return (FALSE);
break;
}
return (TRUE);
}
{
return (FALSE);
return (FALSE);
return (TRUE);
}
{
return (FALSE);
case AUTOFS_LINK_RQ:
return (FALSE);
break;
}
return (TRUE);
}
{
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
}
/*
* ******************************************************
* Readdir XDR support
* ******************************************************
*/
{
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
}
/*
* Directory read reply:
* union (enum autofs_res) {
* AUTOFS_OK: entlist;
* boolean eof;
* default:
* }
*
* Directory entries
* struct direct {
* off_t d_off; * offset of next entry *
* u_long d_fileno; * inode number of entry *
* u_short d_reclen; * length of this record *
* u_short d_namlen; * length of string in d_name *
* char d_name[MAXNAMLEN + 1]; * name no longer than this *
* };
* are on the wire as:
* union entlist (boolean valid) {
* TRUE: struct otw_dirent;
* u_long nxtoffset;
* union entlist;
* FALSE:
* }
* where otw_dirent is:
* struct dirent {
* u_long de_fid;
* string de_name<AUTOFS_MAXPATHLEN>;
* }
*/
#ifdef nextdp
#endif
/*
* ENCODE ONLY
*/
struct autofsrddir *rddir;
{
char *name;
int size;
int entrysz;
int tofit;
int bufsize;
size > 0;
/* LINTED pointer alignment */
return (FALSE);
}
continue;
}
break;
}
return (FALSE);
}
}
return (FALSE);
}
return (FALSE);
}
return (TRUE);
}
/*
* DECODE ONLY
*/
struct autofsrddir *rddir;
{
int size;
for (;;) {
return (FALSE);
}
if (!valid) {
break;
}
return (FALSE);
}
goto bufovflw;
}
return (FALSE);
}
/* LINTED pointer alignment */
}
return (FALSE);
}
return (TRUE);
}
{
return (FALSE);
return (TRUE);
return (xdr_autofs_putrddirres(
objp->rd_bufsize));
return (xdr_autofs_getrddirres(xdrs,
else return (FALSE);
}