svr4_stat.h revision 43412
1/* 2 * Copyright (c) 1998 Mark Newton 3 * Copyright (c) 1994 Christos Zoulas 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 3. The name of the author may not be used to endorse or promote products 15 * derived from this software without specific prior written permission 16 * 17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#ifndef _SVR4_STAT_H_ 30#define _SVR4_STAT_H_ 31 32#include <svr4/svr4_types.h> 33#include <sys/stat.h> 34 35struct svr4_stat { 36 svr4_o_dev_t st_dev; 37 svr4_o_ino_t st_ino; 38 svr4_o_mode_t st_mode; 39 svr4_o_nlink_t st_nlink; 40 svr4_o_uid_t st_uid; 41 svr4_o_gid_t st_gid; 42 svr4_o_dev_t st_rdev; 43 svr4_off_t st_size; 44 svr4_time_t st_atim; 45 svr4_time_t st_mtim; 46 svr4_time_t st_ctim; 47}; 48 49struct svr4_xstat { 50 svr4_dev_t st_dev; 51 long st_pad1[3]; 52 svr4_ino_t st_ino; 53 svr4_mode_t st_mode; 54 svr4_nlink_t st_nlink; 55 svr4_uid_t st_uid; 56 svr4_gid_t st_gid; 57 svr4_dev_t st_rdev; 58 long st_pad2[2]; 59 svr4_off_t st_size; 60 long st_pad3; 61 svr4_timestruc_t st_atim; 62 svr4_timestruc_t st_mtim; 63 svr4_timestruc_t st_ctim; 64 long st_blksize; 65 svr4_blkcnt_t st_blocks; 66 char st_fstype[16]; 67 long st_pad4[8]; 68}; 69 70struct svr4_stat64 { 71 svr4_dev_t st_dev; 72 long st_pad1[3]; 73 svr4_ino64_t st_ino; 74 svr4_mode_t st_mode; 75 svr4_nlink_t st_nlink; 76 svr4_uid_t st_uid; 77 svr4_gid_t st_gid; 78 svr4_dev_t st_rdev; 79 long st_pad2[2]; 80 svr4_off64_t st_size; 81 svr4_timestruc_t st_atim; 82 svr4_timestruc_t st_mtim; 83 svr4_timestruc_t st_ctim; 84 long st_blksize; 85 svr4_blkcnt64_t st_blocks; 86 char st_fstype[16]; 87 long st_pad4[8]; 88}; 89 90#define SVR4_PC_LINK_MAX 1 91#define SVR4_PC_MAX_CANON 2 92#define SVR4_PC_MAX_INPUT 3 93#define SVR4_PC_NAME_MAX 4 94#define SVR4_PC_PATH_MAX 5 95#define SVR4_PC_PIPE_BUF 6 96#define SVR4_PC_NO_TRUNC 7 97#define SVR4_PC_VDISABLE 8 98#define SVR4_PC_CHOWN_RESTRICTED 9 99#define SVR4_PC_ASYNC_IO 10 100#define SVR4_PC_PRIO_IO 11 101#define SVR4_PC_SYNC_IO 12 102 103#endif /* !_SVR4_STAT_H_ */ 104