[BACK]Return to svr4_stat.h CVS log [TXT][DIR] Up to [local] / sys / compat / svr4

Annotation of sys/compat/svr4/svr4_stat.h, Revision 1.1

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

CVSweb