/*
* 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 (c) 1988 AT&T */
/* All Rights Reserved */
#include "lint.h"
#include <mtlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <thread.h>
#include <synch.h>
#include <strings.h>
#include <libc.h>
#include "tsd.h"
return (VFS_TOOFEW);\
return (VFS_TOOFEW);\
int
{
bstat = 1;
} else
bstat = 0;
((bstat == 0 &&
(bstat == 1 &&
;
return (ret);
}
int
{
}
int
{
/* Match by straight strcmp */
DIFF(vfs_mountp) ||
DIFF(vfs_fstype) ||
DIFF(vfs_fsckpass) ||
DIFF(vfs_automnt) ||
DIFF(vfs_mntopts)))
;
/* If something other than EOF, return it */
if (ret != -1)
return (ret);
/*
* Go back to the original location in the file and try to
* match the devices by doing stat's (retains compatibility
* with original getvfsany).
*/
bstat = 1;
} else
bstat = 0;
cstat = 1;
} else
cstat = 0;
DIFF(vfs_mountp) ||
DIFF(vfs_fstype) ||
DIFF(vfs_fsckpass) ||
DIFF(vfs_automnt) ||
DIFF(vfs_mntopts)))
;
return (ret);
}
int
{
int ret;
return (0);
/* skip leading spaces and comments */
return (ret);
/* split up each field */
/* check for too many fields */
return (VFS_TOOMANY);
return (0);
}
static int
{
char *cp;
return (VFS_TOOLONG);
;
return (0);
}
return (-1);
}