Home | History | Annotate | Line # | Download | only in common
linux_olduname.h revision 1.4
      1  1.4  mycroft /*	$NetBSD: linux_olduname.h,v 1.4 1995/08/21 03:42:11 mycroft Exp $	*/
      2  1.1     fvdl 
      3  1.1     fvdl /*
      4  1.1     fvdl  * Copyright (c) 1995 Frank van der Linden
      5  1.1     fvdl  * All rights reserved.
      6  1.1     fvdl  *
      7  1.1     fvdl  * Redistribution and use in source and binary forms, with or without
      8  1.1     fvdl  * modification, are permitted provided that the following conditions
      9  1.1     fvdl  * are met:
     10  1.1     fvdl  * 1. Redistributions of source code must retain the above copyright
     11  1.1     fvdl  *    notice, this list of conditions and the following disclaimer.
     12  1.1     fvdl  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.1     fvdl  *    notice, this list of conditions and the following disclaimer in the
     14  1.1     fvdl  *    documentation and/or other materials provided with the distribution.
     15  1.1     fvdl  * 3. All advertising materials mentioning features or use of this software
     16  1.1     fvdl  *    must display the following acknowledgement:
     17  1.1     fvdl  *      This product includes software developed for the NetBSD Project
     18  1.1     fvdl  *      by Frank van der Linden
     19  1.1     fvdl  * 4. The name of the author may not be used to endorse or promote products
     20  1.1     fvdl  *    derived from this software without specific prior written permission
     21  1.1     fvdl  *
     22  1.1     fvdl  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     23  1.1     fvdl  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     24  1.1     fvdl  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     25  1.1     fvdl  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     26  1.1     fvdl  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     27  1.1     fvdl  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     28  1.1     fvdl  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     29  1.1     fvdl  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     30  1.1     fvdl  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     31  1.1     fvdl  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     32  1.1     fvdl  */
     33  1.1     fvdl 
     34  1.1     fvdl #ifndef _LINUX_TYPES_H
     35  1.1     fvdl #define _LINUX_TYPES_H
     36  1.1     fvdl 
     37  1.2     fvdl typedef struct {
     38  1.2     fvdl 	long	val[2];
     39  1.2     fvdl } linux_fsid_t;
     40  1.1     fvdl 
     41  1.1     fvdl typedef unsigned short linux_uid_t;
     42  1.1     fvdl typedef unsigned short linux_gid_t;
     43  1.1     fvdl typedef unsigned short linux_dev_t;
     44  1.1     fvdl typedef unsigned long linux_ino_t;
     45  1.1     fvdl typedef unsigned short linux_mode_t;
     46  1.1     fvdl typedef unsigned short linux_nlink_t;
     47  1.1     fvdl typedef long linux_time_t;
     48  1.1     fvdl typedef long linux_clock_t;
     49  1.1     fvdl typedef long linux_off_t;
     50  1.1     fvdl typedef int linux_pid_t;
     51  1.1     fvdl 
     52  1.1     fvdl struct linux_statfs {
     53  1.2     fvdl 	long		l_ftype;
     54  1.2     fvdl 	long		l_fbsize;
     55  1.2     fvdl 	long		l_fblocks;
     56  1.2     fvdl 	long		l_fbfree;
     57  1.2     fvdl 	long		l_fbavail;
     58  1.2     fvdl 	long		l_ffiles;
     59  1.2     fvdl 	long		l_fffree;
     60  1.2     fvdl 	linux_fsid_t	l_ffsid;
     61  1.2     fvdl 	long		l_fnamelen;
     62  1.2     fvdl 	long		l_fspare[6];
     63  1.1     fvdl };
     64  1.1     fvdl 
     65  1.1     fvdl /*
     66  1.1     fvdl  * Structure for uname(2)
     67  1.1     fvdl  */
     68  1.1     fvdl struct linux_utsname {
     69  1.1     fvdl 	char l_sysname[65];
     70  1.1     fvdl 	char l_nodename[65];
     71  1.1     fvdl 	char l_release[65];
     72  1.1     fvdl 	char l_version[65];
     73  1.1     fvdl 	char l_machine[65];
     74  1.1     fvdl 	char l_domainname[65];
     75  1.4  mycroft };
     76  1.4  mycroft 
     77  1.4  mycroft struct linux_oldutsname {
     78  1.4  mycroft 	char l_sysname[65];
     79  1.4  mycroft 	char l_nodename[65];
     80  1.4  mycroft 	char l_release[65];
     81  1.4  mycroft 	char l_version[65];
     82  1.4  mycroft 	char l_machine[65];
     83  1.4  mycroft };
     84  1.4  mycroft 
     85  1.4  mycroft struct linux_oldoldutsname {
     86  1.4  mycroft 	char l_sysname[9];
     87  1.4  mycroft 	char l_nodename[9];
     88  1.4  mycroft 	char l_release[9];
     89  1.4  mycroft 	char l_version[9];
     90  1.4  mycroft 	char l_machine[9];
     91  1.1     fvdl };
     92  1.1     fvdl 
     93  1.1     fvdl /*
     94  1.1     fvdl  * Passed to the mmap() system call
     95  1.1     fvdl  */
     96  1.1     fvdl struct linux_mmap {
     97  1.1     fvdl 	caddr_t lm_addr;
     98  1.1     fvdl 	int lm_len;
     99  1.1     fvdl 	int lm_prot;
    100  1.1     fvdl 	int lm_flags;
    101  1.1     fvdl 	int lm_fd;
    102  1.1     fvdl 	int lm_pos;
    103  1.1     fvdl };
    104  1.1     fvdl 
    105  1.1     fvdl /*
    106  1.1     fvdl  * Passed to the select() system call
    107  1.1     fvdl  */
    108  1.1     fvdl struct linux_select {
    109  1.1     fvdl 	int nfds;
    110  1.1     fvdl 	fd_set *readfds;
    111  1.1     fvdl 	fd_set *writefds;
    112  1.1     fvdl 	fd_set *exceptfds;
    113  1.1     fvdl 	struct timeval *timeout;
    114  1.1     fvdl };
    115  1.1     fvdl 
    116  1.1     fvdl struct linux_stat {
    117  1.1     fvdl 	linux_dev_t		lst_dev;
    118  1.1     fvdl 	unsigned short		pad1;
    119  1.1     fvdl 	linux_ino_t		lst_ino;
    120  1.1     fvdl 	linux_mode_t		lst_mode;
    121  1.1     fvdl 	linux_nlink_t		lst_nlink;
    122  1.1     fvdl 	linux_uid_t		lst_uid;
    123  1.1     fvdl 	linux_gid_t		lst_gid;
    124  1.1     fvdl 	linux_dev_t		lst_rdev;
    125  1.1     fvdl 	unsigned short		pad2;
    126  1.1     fvdl 	linux_off_t		lst_size;
    127  1.1     fvdl 	unsigned long		lst_blksize;
    128  1.1     fvdl 	unsigned long		lst_blocks;
    129  1.1     fvdl 	linux_time_t		lst_atime;
    130  1.1     fvdl 	unsigned long		unused1;
    131  1.1     fvdl 	linux_time_t		lst_mtime;
    132  1.1     fvdl 	unsigned long		unused2;
    133  1.1     fvdl 	linux_time_t		lst_ctime;
    134  1.1     fvdl 	unsigned long		unused3;
    135  1.1     fvdl 	unsigned long		unused4;
    136  1.1     fvdl 	unsigned long		unused5;
    137  1.1     fvdl };
    138  1.1     fvdl 
    139  1.1     fvdl struct linux_tms {
    140  1.1     fvdl 	linux_clock_t ltms_utime;
    141  1.1     fvdl 	linux_clock_t ltms_stime;
    142  1.1     fvdl 	linux_clock_t ltms_cutime;
    143  1.1     fvdl 	linux_clock_t ltms_cstime;
    144  1.1     fvdl };
    145  1.1     fvdl 
    146  1.1     fvdl struct linux_utimbuf {
    147  1.1     fvdl 	linux_time_t l_actime;
    148  1.1     fvdl 	linux_time_t l_modtime;
    149  1.1     fvdl };
    150  1.1     fvdl 
    151  1.1     fvdl #endif /* !_LINUX_TYPES_H */
    152