/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 1990 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <ctype.h>
#include <mntent.h>
#include <malloc.h>
struct mntent *
_mnt(void)
{
if (mntp == 0)
return (mntp);
}
static char *
mntstr(char **p)
{
unsigned char *cp = (unsigned char *) *p;
unsigned char *retstr;
cp++;
cp++;
if (*cp) {
*cp = '\0';
cp++;
}
*p = (char *) cp;
return ((char *)retstr);
}
static int
mntdigit(char **p)
{
int value = 0;
unsigned char *cp = (unsigned char *) *p;
cp++;
value *= 10;
}
cp++;
if (*cp) {
*cp = '\0';
cp++;
}
*p = (char *) cp;
return (value);
}
static int
{
char *cp;
do {
return (EOF);
}
} while (*cp == '#');
if (*cp == '\0')
return (1);
if (*cp == '\0')
return (2);
if (*cp == '\0')
return (3);
if (*cp == '\0')
return (4);
if (*cp == '\0')
return (5);
return (6);
}
FILE *
{
return (NULL);
}
return (NULL);
}
break;
}
}
return (mnttabp);
}
int
{
if (mnttabp) {
}
return (1);
}
struct mntent *
{
int nfields;
if (mnttabp == 0)
return ((struct mntent *)0);
if (_mnt() == 0)
return ((struct mntent *)0);
return ((struct mntent *)0);
return (mntp);
}
int
{
return (1);
return (1);
return (1);
return (0);
}
static char *
mntopt(char **p)
{
unsigned char *cp = (unsigned char *) *p;
unsigned char *retstr;
cp++;
cp++;
if (*cp) {
*cp = '\0';
cp++;
}
*p = (char *) cp;
return ((char *)retstr);
}
char *
{
char *f, *opts;
static char *tmpopts;
if (tmpopts == 0) {
if (tmpopts == 0)
return (0);
}
}
return (NULL);
}
static int
{
mnt->mnt_passno);
return (0);
}