/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <errno.h>
#include <sys/pathconf.h>
#include <sys/systeminfo.h>
#include <signal.h>
#include <locale.h>
#include <unistd.h>
#include <thread.h>
#include <sharefs/sharetab.h>
#include "../lib/sharetab.h"
#include "mountd.h"
static void freeexports(struct exportnode *);
struct exportnode **);
static char *optlist[] = {
#define OPT_RO 0
};
/*
* Send current export list to a client
*/
void
{
int export_to_everyone;
return;
}
exportlist = NULL;
tail = &exportlist;
(void) rw_rdlock(&sharetab_lock);
/*
* Check for "ro" or "rw" list without argument values. This
* indicates export to everyone. Unfortunately, SunOS 4.x
* automounter uses this, and it is indicated indirectly with
* 'showmount -e'.
*
* If export_to_everyone is 1, then groups should be NULL to
* indicate export to everyone.
*/
p = opts;
export_to_everyone = 0;
while (*p) {
case OPT_RO:
case OPT_RW:
export_to_everyone = 1;
break;
}
}
if (export_to_everyone == 0) {
p = opts;
/*
* from the "ro" and "rw" lists for each flavor.
* This list is rather meaningless now, but
* that's what the protocol demands.
*/
while (*p) {
case OPT_RO:
case OPT_RW:
!= NULL) {
}
break;
}
}
}
}
(void) rw_unlock(&sharetab_lock);
errno = 0;
}
static void
{
while (ex) {
while (groups) {
}
}
}
static struct groupnode **
{
char *newname;
}
static struct exportnode **
{
char *newname;
}