Home | History | Annotate | Line # | Download | only in common
linux_olduname.h revision 1.1
      1  1.1  fvdl /*	$NetBSD: linux_olduname.h,v 1.1 1995/02/28 23:26:14 fvdl 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.1  fvdl 
     38  1.1  fvdl typedef unsigned short linux_uid_t;
     39  1.1  fvdl typedef unsigned short linux_gid_t;
     40  1.1  fvdl typedef unsigned short linux_dev_t;
     41  1.1  fvdl typedef unsigned long linux_ino_t;
     42  1.1  fvdl typedef unsigned short linux_mode_t;
     43  1.1  fvdl typedef unsigned short linux_nlink_t;
     44  1.1  fvdl typedef long linux_time_t;
     45  1.1  fvdl typedef long linux_clock_t;
     46  1.1  fvdl typedef long linux_off_t;
     47  1.1  fvdl typedef int linux_pid_t;
     48  1.1  fvdl typedef unsigned long linux_sigset_t;
     49  1.1  fvdl typedef void (*linux_handler_t)(int);
     50  1.1  fvdl 
     51  1.1  fvdl struct linux_statfs {
     52  1.1  fvdl 	int dummy;	/* Not filled in yet */
     53  1.1  fvdl };
     54  1.1  fvdl 
     55  1.1  fvdl /*
     56  1.1  fvdl  * Structure for uname(2)
     57  1.1  fvdl  */
     58  1.1  fvdl struct linux_utsname {
     59  1.1  fvdl 	char l_sysname[65];
     60  1.1  fvdl 	char l_nodename[65];
     61  1.1  fvdl 	char l_release[65];
     62  1.1  fvdl 	char l_version[65];
     63  1.1  fvdl 	char l_machine[65];
     64  1.1  fvdl 	char l_domainname[65];
     65  1.1  fvdl };
     66  1.1  fvdl 
     67  1.1  fvdl struct linux_sigaction {
     68  1.1  fvdl 	void (*sa_handler)(int);
     69  1.1  fvdl 	linux_sigset_t sa_mask;
     70  1.1  fvdl 	unsigned long sa_flags;
     71  1.1  fvdl 	void (*sa_restorer)(void);
     72  1.1  fvdl };
     73  1.1  fvdl 
     74  1.1  fvdl /*
     75  1.1  fvdl  * Passed to the mmap() system call
     76  1.1  fvdl  */
     77  1.1  fvdl struct linux_mmap {
     78  1.1  fvdl 	caddr_t lm_addr;
     79  1.1  fvdl 	int lm_len;
     80  1.1  fvdl 	int lm_prot;
     81  1.1  fvdl 	int lm_flags;
     82  1.1  fvdl 	int lm_fd;
     83  1.1  fvdl 	int lm_pos;
     84  1.1  fvdl };
     85  1.1  fvdl 
     86  1.1  fvdl /*
     87  1.1  fvdl  * Passed to the select() system call
     88  1.1  fvdl  */
     89  1.1  fvdl struct linux_select {
     90  1.1  fvdl 	int nfds;
     91  1.1  fvdl 	fd_set *readfds;
     92  1.1  fvdl 	fd_set *writefds;
     93  1.1  fvdl 	fd_set *exceptfds;
     94  1.1  fvdl 	struct timeval *timeout;
     95  1.1  fvdl };
     96  1.1  fvdl 
     97  1.1  fvdl struct linux_stat {
     98  1.1  fvdl 	linux_dev_t		lst_dev;
     99  1.1  fvdl 	unsigned short		pad1;
    100  1.1  fvdl 	linux_ino_t		lst_ino;
    101  1.1  fvdl 	linux_mode_t		lst_mode;
    102  1.1  fvdl 	linux_nlink_t		lst_nlink;
    103  1.1  fvdl 	linux_uid_t		lst_uid;
    104  1.1  fvdl 	linux_gid_t		lst_gid;
    105  1.1  fvdl 	linux_dev_t		lst_rdev;
    106  1.1  fvdl 	unsigned short		pad2;
    107  1.1  fvdl 	linux_off_t		lst_size;
    108  1.1  fvdl 	unsigned long		lst_blksize;
    109  1.1  fvdl 	unsigned long		lst_blocks;
    110  1.1  fvdl 	linux_time_t		lst_atime;
    111  1.1  fvdl 	unsigned long		unused1;
    112  1.1  fvdl 	linux_time_t		lst_mtime;
    113  1.1  fvdl 	unsigned long		unused2;
    114  1.1  fvdl 	linux_time_t		lst_ctime;
    115  1.1  fvdl 	unsigned long		unused3;
    116  1.1  fvdl 	unsigned long		unused4;
    117  1.1  fvdl 	unsigned long		unused5;
    118  1.1  fvdl };
    119  1.1  fvdl 
    120  1.1  fvdl struct linux_tms {
    121  1.1  fvdl 	linux_clock_t ltms_utime;
    122  1.1  fvdl 	linux_clock_t ltms_stime;
    123  1.1  fvdl 	linux_clock_t ltms_cutime;
    124  1.1  fvdl 	linux_clock_t ltms_cstime;
    125  1.1  fvdl };
    126  1.1  fvdl 
    127  1.1  fvdl struct linux_utimbuf {
    128  1.1  fvdl 	linux_time_t l_actime;
    129  1.1  fvdl 	linux_time_t l_modtime;
    130  1.1  fvdl };
    131  1.1  fvdl 
    132  1.1  fvdl #endif /* !_LINUX_TYPES_H */
    133