/*
* 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 2008 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, its own implementation of xdr_autofs_netbuf(). rpcgen will
* also generate xdr routines with recursion which should not be used
* in the kernel.
*/
#include <sys/pathname.h>
#include <sys/ticotsord.h>
#include <sys/sysmacros.h>
{
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
else
return (FALSE);
}
return (TRUE);
}
{
}
{
return (FALSE);
return (TRUE);
}
{
return (FALSE);
return (TRUE);
}
{
return (FALSE);
return (FALSE);
return (TRUE);
}
{
return (FALSE);
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;
default:
break;
}
return (TRUE);
}
{
p = objp;
while (p != NULL) {
"action_list_entry free failed %p\n",
(void *)&p->action);
last = p;
p = p->next;
}
return (status);
}
while (more_data) {
break;
}
break;
}
if (more_data) {
p = p->next;
if (p == NULL) {
break;
}
} else
}
return (status);
}
{
return (FALSE);
return (dummy);
}
{
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
/*
* The length is the original user-land length, not the
* length of the native kernel autofs_args structure provided
* after we decode the xdr buffer. So passing the user's idea of
* the length is wrong and we need to stuff the length field with
* the length of the native structure.
*/
return (FALSE);
return (FALSE);
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;
default:
break;
}
return (TRUE);
}
{
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
}
{
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 *
* ushort_t d_reclen; * length of this record *
* ushort_t 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;
* uint_t nxtoffset;
* union entlist;
* FALSE:
* }
* where otw_dirent is:
* struct dirent {
* uint_t de_fid;
* string de_name<AUTOFS_MAXPATHLEN>;
* }
*/
#ifdef nextdp
#endif
/*
* ENCODE ONLY
*/
{
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
*/
{
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(xdrs,
return (xdr_autofs_getrddirres(xdrs,
return (FALSE);
}