]> git.saurik.com Git - apple/xnu.git/blame - bsd/sys/vstat.h
xnu-344.23.tar.gz
[apple/xnu.git] / bsd / sys / vstat.h
CommitLineData
1c79356b 1/*
9bccf70c 2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
1c79356b
A
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
de355530
A
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
1c79356b 11 *
de355530
A
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
1c79356b
A
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
de355530
A
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
1c79356b
A
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22/* Copyright (c) 1998 Apple Computer, Inc. All Rights Reserved */
23/*-
24 * @(#)vstat.h
25 */
1c79356b
A
26
27#ifndef _SYS_VSTAT_H_
28#define _SYS_VSTAT_H_
29
9bccf70c
A
30#include <sys/appleapiopts.h>
31
32#warning obsolete header! delete the include from your sources
33
34#ifdef __APPLE_API_OBSOLETE
35
1c79356b
A
36#include <sys/time.h>
37#include <sys/attr.h>
38
39#ifndef _POSIX_SOURCE
40
41struct vstat {
42 fsid_t vst_volid; /* volume identifier */
43 fsobj_id_t vst_nodeid; /* object's id */
9bccf70c 44 fsobj_type_t vst_vnodetype; /* vnode type (VREG, VDIR, etc.) */
1c79356b
A
45 fsobj_tag_t vst_vnodetag; /* vnode tag (HFS, UFS, etc.) */
46 mode_t vst_mode; /* inode protection mode */
47 nlink_t vst_nlink; /* number of hard links */
48 uid_t vst_uid; /* user ID of the file's owner */
49 gid_t vst_gid; /* group ID of the file's group */
50 dev_t vst_dev; /* inode's device */
51 dev_t vst_rdev; /* device type */
52#ifndef _POSIX_SOURCE
53 struct timespec vst_atimespec; /* time of last access */
54 struct timespec vst_mtimespec; /* time of last data modification */
55 struct timespec vst_ctimespec; /* time of last file status change */
56#else
57 time_t vst_atime; /* time of last access */
58 long vst_atimensec; /* nsec of last access */
59 time_t vst_mtime; /* time of last data modification */
60 long vst_mtimensec; /* nsec of last data modification */
61 time_t vst_ctime; /* time of last file status change */
62 long vst_ctimensec; /* nsec of last file status change */
63#endif
64 off_t vst_filesize; /* file size, in bytes */
65 quad_t vst_blocks; /* bytes allocated for file */
66 u_int32_t vst_blksize; /* optimal blocksize for I/O */
67 u_int32_t vst_flags; /* user defined flags for file */
68};
69
70#endif /* ! _POSIX_SOURCE */
9bccf70c 71#endif /* __APPLE_API_OBSOLETE */
1c79356b
A
72
73#endif /* !_SYS_VSTAT_H_ */