Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ types(5) — GENIX 4.1A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

filsys(5)

time(2)

lseek(2)



      TYPES(5)                GENIX Programmer's Manual                TYPES(5)



      NAME
           types - primitive system data types

      SYNOPSIS
           #include <sys/types.h>

      DESCRIPTION
           The data types defined in the include file are used in GENIX  system
           code; some data of these types are accessible to user code:

           /*
            * types.h         3.3     7/14/83
            */

           /*
            * Basic system types and major/minor device
            * constructing/busting macros.
            */

           # ifndef major     /* If already included, don't do it again... */

           /* major part of a device */
           #define  major(x)  ((int)(((unsigned)(x)>>8)&0377))

           /* minor part of a device */
           #define  minor(x)  ((int)((x)&0377))

           /* make a device number */
           #define  makedev(x,y)      ((dev_t)(((x)<<8) | (y)))

           typedef  unsigned char     u_char;
           typedef  unsigned short    u_short;
           typedef  unsigned int      u_int;
           typedef  unsigned long     u_long;

           /*typedef          struct  _physadr { int r[1]; } *physadr;*/
           typedef  int       daddr_t;
           typedef  char *    caddr_t;
           typedef  u_short ino_t;
           typedef  int       swblk_t;
           typedef  int       size_t;
           typedef  int       time_t;

           /*
            * The kernel context of a user process. These are saved by save,
            * and restored by resume. Three instances of this structure exist
            * in the u. area; they are u.rsav, u.ssav, and u.qsav.
            */

           typedef struct kcontext {
                    int       r7;
                    int       r6;



      Printed 11/16/83                                                        1





      TYPES(5)                GENIX Programmer's Manual                TYPES(5)



                    int       r5;
                    int       r4;
                    int       r3;
                    int       sp;
                    int       pc;
                    int       mod;
                    int       fp;
           } label_t;

           typedef  short     dev_t;
           typedef  long      off_t;

           # endif  major

           The form daddr_t is used for disk addresses except in an  i-node  on
           disk,  see  filsys(5).   Times are encoded in seconds since 00:00:00
           GMT, January 1, 1970.  The major and minor parts of  a  device  code
           specify  kind  and  unit  number  of  a device and are installation-
           dependent.  Offsets are measured in bytes from the  beginning  of  a
           file.   The  label_t  variables are used to save the processor state
           while another process is running.

      SEE ALSO
           filsys(5), time(2), lseek(2)































      Printed 11/16/83                                                        2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026