Home | History | Annotate | Line # | Download | only in aoutm68k
      1  1.8    mhitch /*	$NetBSD: aoutm68k_stat.h,v 1.8 2009/01/11 22:54:16 mhitch Exp $	*/
      2  1.1       scw 
      3  1.1       scw /*-
      4  1.1       scw  * Copyright (c) 2000 The NetBSD Foundation, Inc.
      5  1.1       scw  * All rights reserved.
      6  1.1       scw  *
      7  1.1       scw  * This code is derived from software contributed to The NetBSD Foundation
      8  1.1       scw  * by Steve C. Woodford.
      9  1.1       scw  *
     10  1.1       scw  * Redistribution and use in source and binary forms, with or without
     11  1.1       scw  * modification, are permitted provided that the following conditions
     12  1.1       scw  * are met:
     13  1.1       scw  * 1. Redistributions of source code must retain the above copyright
     14  1.1       scw  *    notice, this list of conditions and the following disclaimer.
     15  1.1       scw  * 2. Redistributions in binary form must reproduce the above copyright
     16  1.1       scw  *    notice, this list of conditions and the following disclaimer in the
     17  1.1       scw  *    documentation and/or other materials provided with the distribution.
     18  1.1       scw  *
     19  1.1       scw  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     20  1.1       scw  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     21  1.1       scw  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     22  1.1       scw  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     23  1.1       scw  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     24  1.1       scw  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     25  1.1       scw  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     26  1.1       scw  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     27  1.1       scw  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     28  1.1       scw  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     29  1.1       scw  * POSSIBILITY OF SUCH DAMAGE.
     30  1.1       scw  */
     31  1.1       scw 
     32  1.1       scw #ifndef _AOUTM68K_STAT_H
     33  1.1       scw #define _AOUTM68K_STAT_H
     34  1.2    martin 
     35  1.3    martin #ifdef _KERNEL_OPT
     36  1.2    martin #include "opt_compat_43.h"
     37  1.3    martin #endif
     38  1.1       scw 
     39  1.1       scw #pragma pack(2)
     40  1.1       scw 
     41  1.1       scw #ifdef COMPAT_43
     42  1.1       scw struct aoutm68k_stat43 {
     43  1.1       scw 	u_int16_t st_dev;		/* inode's device */
     44  1.4  christos 	u_int32_t st_ino;		/* inode's number */
     45  1.1       scw 	u_int16_t st_mode;		/* inode protection mode */
     46  1.1       scw 	u_int16_t st_nlink;		/* number of hard links */
     47  1.1       scw 	u_int16_t st_uid;		/* user ID of the file's owner */
     48  1.1       scw 	u_int16_t st_gid;		/* group ID of the file's group */
     49  1.1       scw 	u_int16_t st_rdev;		/* device type */
     50  1.1       scw 	int32_t	  st_size;		/* file size, in bytes */
     51  1.7   tsutsui 	struct	  timespec50 st_atimespec;/* time of last access */
     52  1.7   tsutsui 	struct	  timespec50 st_mtimespec;/* time of last data modification */
     53  1.7   tsutsui 	struct	  timespec50 st_ctimespec;/* time of last file status change */
     54  1.1       scw 	int32_t	  st_blksize;		/* optimal blocksize for I/O */
     55  1.1       scw 	int32_t	  st_blocks;		/* blocks allocated for file */
     56  1.1       scw 	u_int32_t st_flags;		/* user defined flags for file */
     57  1.1       scw 	u_int32_t st_gen;		/* file generation number */
     58  1.1       scw };
     59  1.1       scw #endif
     60  1.1       scw 
     61  1.1       scw #ifdef COMPAT_12
     62  1.1       scw struct aoutm68k_stat12 {
     63  1.8    mhitch 	u_int32_t st_dev;		/* inode's device */
     64  1.4  christos 	u_int32_t st_ino;		/* inode's number */
     65  1.1       scw 	u_int16_t st_mode;		/* inode protection mode */
     66  1.1       scw 	u_int16_t st_nlink;		/* number of hard links */
     67  1.1       scw 	uid_t	  st_uid;		/* user ID of the file's owner */
     68  1.1       scw 	gid_t	  st_gid;		/* group ID of the file's group */
     69  1.8    mhitch 	u_int32_t st_rdev;		/* device type */
     70  1.7   tsutsui 	struct	  timespec50 st_atimespec;/* time of last access */
     71  1.7   tsutsui 	struct	  timespec50 st_mtimespec;/* time of last data modification */
     72  1.7   tsutsui 	struct	  timespec50 st_ctimespec;/* time of last file status change */
     73  1.1       scw 	off_t	  st_size;		/* file size, in bytes */
     74  1.1       scw 	int64_t	  st_blocks;		/* blocks allocated for file */
     75  1.1       scw 	u_int32_t st_blksize;		/* optimal blocksize for I/O */
     76  1.1       scw 	u_int32_t st_flags;		/* user defined flags for file */
     77  1.1       scw 	u_int32_t st_gen;		/* file generation number */
     78  1.1       scw 	int32_t	  st_lspare;
     79  1.1       scw 	int64_t	  st_qspare[2];
     80  1.1       scw };
     81  1.1       scw #endif
     82  1.1       scw 
     83  1.1       scw struct aoutm68k_stat {
     84  1.8    mhitch 	u_int32_t st_dev;		/* inode's device */
     85  1.4  christos 	u_int32_t st_ino;		/* inode's number */
     86  1.1       scw 	mode_t	  st_mode;		/* inode protection mode */
     87  1.1       scw 	nlink_t	  st_nlink;		/* number of hard links */
     88  1.1       scw 	uid_t	  st_uid;		/* user ID of the file's owner */
     89  1.1       scw 	gid_t	  st_gid;		/* group ID of the file's group */
     90  1.8    mhitch 	u_int32_t st_rdev;		/* device type */
     91  1.7   tsutsui 	struct	  timespec50 st_atimespec;/* time of last access */
     92  1.7   tsutsui 	struct	  timespec50 st_mtimespec;/* time of last data modification */
     93  1.7   tsutsui 	struct	  timespec50 st_ctimespec;/* time of last file status change */
     94  1.1       scw 	off_t	  st_size;		/* file size, in bytes */
     95  1.1       scw 	blkcnt_t  st_blocks;		/* blocks allocated for file */
     96  1.1       scw 	blksize_t st_blksize;		/* optimal blocksize for I/O */
     97  1.1       scw 	u_int32_t st_flags;		/* user defined flags for file */
     98  1.1       scw 	u_int32_t st_gen;		/* file generation number */
     99  1.1       scw 	int64_t	  st_qspare[2];
    100  1.1       scw };
    101  1.1       scw 
    102  1.1       scw #pragma pack()
    103  1.1       scw 
    104  1.1       scw #endif /* _AOUTM68K_STAT_H */
    105