|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3542 (0xdd6) Types: TextFile Notes: UNIX file Names: »il_types.h«
└─⟦8c4f54e61⟧ Bits:30004068/disk2.imd Interactive TCP/IP v.1.2 └─⟦8c4f54e61⟧ UNIX Filesystem └─⟦this⟧ »hb/new/usr/include/interlan/il_types.h«
#ident "@(#)il_types.h 2.1 - 89/04/21" /* * il_types.h version 1.2 * * This version retrieved: 10/18/87 @ 18:54:39 * This delta created: 10/15/87 @ 13:32:39 */ /* #ident "@(#)il_types.h 1.2" */ /* * Copyright 1986 MICOM-Interlan, Inc., Boxborough, Massachusetts. * This software is furnished under a license and may only be used * or copied in accordance with the terms of such license. * */ #include <sys/types.h> #ifdef pdp11 #define sign16 int /* 16 bit signed value */ #define unsign16 unsigned /* 16 bit unsigned value */ #define unsign32 unsigned long /* 32 bit unsigned value */ #endif /* ********************************************************************** */ #ifdef vax #define sign16 short /* 16 bit signed value */ #define unsign16 unsigned short /* 16 bit unsigned value */ #define unsign32 unsigned /* 32 bit unsigned value */ #endif /* ********************************************************************** */ #if defined(i8086)||defined(M_I86)||defined(M_I286) typedef short sign16; typedef unsigned unsign16; typedef unsigned long unsign32; typedef long sign32; #endif #if defined(i386) typedef short sign16; typedef unsigned short unsign16; typedef unsigned long unsign32; typedef long sign32; #endif /* ************** if i8086 and not Xenix then include the following: #define sign16 int * 16 bit signed value * #define unsign16 unsigned * 16 bit unsigned value * #ifdef lattice #define unsign32 long * wimpy lattice C has no unsigned 32s * #else #define unsign32 unsigned long * 32 bit unsigned value * #endif ************** */ /************************************************************************/ #ifdef mc68000 #define sign16 short /* 16 bit signed value */ #define unsign16 unsigned short /* 16 bit unsigned value */ #define unsign32 unsigned /* 32 bit unsigned value */ #endif /***********************************************************************/ #define BOOLEAN unsigned int /* {TRUE, FALSE} */ #define FALSE 0 #define TRUE 1 #define VOID int /* no returned value */ /* The following #defines replace the old "NIL" value. Since NIL must always be cast to avoid alignment and size problems, we've opted for typed NILs instead. NIL has been removed so that people can't use it by mistake without the cast. */ #define NIL_CHAR ((char *)0) #define NIL_U16 ((unsign16 *)0) #define NIL_U32 ((unsign32 *)0) #define NIL_BOOL ((BOOLEAN *)0) #define NIL_INT ((int *)0) #define NIL_UNSIGN ((unsigned *)0) #define NIL_UINT ((unsigned *)0) #define NILF_CHAR ((char (*)())0) #define NILF_U16 ((unsign16 (*)())0) #define NILF_U32 ((unsign32 (*)())0) #define NILF_BOOL ((BOOLEAN (*)())0) #define NILF_INT ((int (*)())0) #define NILF_UNSIGN ((unsigned (*)())0) #define NILF_UINT ((unsigned (*)())0) /*****************************************/ typedef unsigned char u_ch; typedef unsign16 u_short; #ifndef i386 typedef unsign16 ushort; #endif typedef long u_long; typedef unsign32 u_int; /* * Everyday typedefs. */ typedef struct _quad { long val[2]; } quad; typedef long swblk_t; #ifndef i386 typedef int size_t; typedef int off_t; #endif typedef struct fd_set { int fds_bits[1]; } fd_set; #ifdef ILTEST #define sleep(chan,pri) ue_sleep() #endif #ifndef INKERNEL #define bcopy(src,dest,size) memcpy(dest,src,size) #define bzero(a,b) memset(a,'\0',b) #endif #define tcp_ctl ioctl #if defined(i8086)||defined(M_I86)||defined(M_I286) extern char *alloc(); extern char *c_alloc(); extern char *malloc(); #endif