/*-
* Copyright (c) 1982, 1986, 1989, 1993
* The Regents of the University of California. All rights reserved.
* (c) UNIX System Laboratories, Inc.
* All or some portions of this file are derived from material licensed
* to the University of California by American Telephone and Telegraph
* Co. or Unix System Laboratories, Inc. and are reproduced herein with
* the permission of UNIX System Laboratories, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)stat.h 8.12 (Berkeley) 6/16/95
* $FreeBSD$
*/
#ifndef _SYS_STAT_H_
#define _SYS_STAT_H_
#ifndef _BLKSIZE_T_DECLARED
#define _BLKSIZE_T_DECLARED
#endif
#ifndef _BLKCNT_T_DECLARED
#define _BLKCNT_T_DECLARED
#endif
#ifndef _DEV_T_DECLARED
#define _DEV_T_DECLARED
#endif
#ifndef _FFLAGS_T_DECLARED
#define _FFLAGS_T_DECLARED
#endif
#ifndef _GID_T_DECLARED
#define _GID_T_DECLARED
#endif
#ifndef _INO_T_DECLARED
#define _INO_T_DECLARED
#endif
#ifndef _MODE_T_DECLARED
#define _MODE_T_DECLARED
#endif
#ifndef _NLINK_T_DECLARED
#define _NLINK_T_DECLARED
#endif
#ifndef _OFF_T_DECLARED
#define _OFF_T_DECLARED
#endif
#ifndef _UID_T_DECLARED
#define _UID_T_DECLARED
#endif
#if !defined(_KERNEL) && __BSD_VISIBLE
/*
* XXX We get miscellaneous namespace pollution with this.
*/
#endif
#ifdef _KERNEL
struct ostat {
};
#endif
struct stat {
/*
* Explicitly pad st_birthtim to 16 bytes so that the size of
* struct stat is backwards compatible. We use bitfields instead
* of an array of chars so that this doesn't require a C99 compiler
* to compile if the size of the padding is 0. We use 2 bitfields
* to cover up to 64 bits on 32-bit machines. We assume that
* CHAR_BIT is 8...
*/
};
#ifdef _KERNEL
struct nstat {
/*
* See above about the following padding.
*/
};
#endif
#ifndef _KERNEL
#if __BSD_VISIBLE
#endif
/* For compatibility. */
#if __BSD_VISIBLE
#endif
#endif /* !_KERNEL */
#if __BSD_VISIBLE
#endif
#if __BSD_VISIBLE
#endif
#if __XSI_VISIBLE
#endif
#if __BSD_VISIBLE
#endif
#if __POSIX_VISIBLE >= 200112
#endif
#if __BSD_VISIBLE
#endif
#if __BSD_VISIBLE
/* 7777 */
/* 0666 */
/*
* Definitions of flags stored in file flags word.
*
* Super-user and owner changeable flags.
*/
/*
* These two bits are defined in MacOS X. They are not currently used in
* FreeBSD.
*/
#if 0
#endif
/* This is the same as the MacOS X definition of UF_HIDDEN. */
/*
* Super-user changeable flags.
*/
#ifdef _KERNEL
/*
* Shorthand abbreviations of above.
*/
#endif
#endif /* __BSD_VISIBLE */
#if __POSIX_VISIBLE >= 200809
#endif
#ifndef _KERNEL
#if __BSD_VISIBLE
int chflags(const char *, unsigned long);
int chflagsat(int, const char *, unsigned long, int);
#endif
#if __BSD_VISIBLE
int fchflags(int, unsigned long);
#endif
#if __POSIX_VISIBLE >= 200112
#endif
#if __POSIX_VISIBLE >= 200809
int flag);
#endif
#if __BSD_VISIBLE
int lchflags(const char *, unsigned long);
#endif
#if __POSIX_VISIBLE >= 200112
#endif
#if !defined(_MKNOD_DECLARED) && __XSI_VISIBLE
#define _MKNOD_DECLARED
#endif
#if __POSIX_VISIBLE >= 200809
#endif
#if __XSI_VISIBLE >= 700
#endif
#endif /* !_KERNEL */
#endif /* !_SYS_STAT_H_ */