/*
* 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 1997 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_PATHCONF_H
#define _SYS_PATHCONF_H
/* pathconf.h 1.9 89/06/26 SMI */
#ifdef __cplusplus
extern "C" {
#endif
/*
* POSIX pathconf information
*
* static pathconf kludge notes:
* For NFSv2 servers, we've added a vop (vop_cntl) to dig out pathconf
* information. The mount program asked for the information from
* a remote mountd daemon. If it gets it, it passes the info
* down in a new args field. The info is passed in the struct below
* in nfsargs.pathconf. There's a new NFS mount flag so that you know
* this is happening. NFS stores the information locally; when a
* pathconf request is made, the request is intercepted at the client
* and the information is retrieved from the struct passed down by
* mount. It's a kludge that will go away as soon
* as we can ask the nfs protocol these sorts of questions (NFSr3).
* All code is noted by "static pathconf kludge" comments and is
* restricted to nfs code in the kernel.
*/
#define _PC_ERROR 0
struct pathcnf {
/*
* pathconf() information
*/
#ifdef _KERNEL
#endif
};
#ifdef _SYSCALL32
struct pathcnf32 {
/*
* pathconf() information
*/
#ifdef _KERNEL
#endif
};
#endif /* _SYSCALL32 */
/*
* pc_mask is used to encode either
* a) boolean values (for chown_restricted and no_trunc)
* The _PC_XXX values are defined in unistd.h; they start at 1 and go up
* sequentially.
* _PC_ERROR is used as the first bit to indicate total failure
* (all info invalid).
* To check for an error something like
* _PC_ISSET(_PC_PATHMAX, foo.pc_mask) != 0
* is used.
*/
/*
* The size of the non-kernel part of the struct.
*/
#ifdef _KERNEL
#endif
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PATHCONF_H */