|
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: 1990 (0x7c6) Types: TextFile Notes: UNIX file Names: »bsdtypes.h«
└─⟦8c4f54e61⟧ Bits:30004068/disk2.imd Interactive TCP/IP v.1.2 └─⟦8c4f54e61⟧ UNIX Filesystem └─⟦this⟧ »hb/new/usr/include/sys/bsdtypes.h«
/* * Copyrighted as an unpublished work. * Copyright INTERACTIVE Systems Corporation 1986 * All rights reserved. * * RESTRICTED RIGHTS: * These programs are furnished under a license and they * may be used, duplicated, and disclosed only with the * inclusion of the above copyright notice and in * accordance with the restrictions stated in your contract * with INTERACTIVE Systems Corporation. */ /* * @(#)bsdtypes.h 5.1 - 87/07/15 * bsd unix compatible */ #ifndef _h_BSDTYPES #define _h_BSDTYPES #ident "@(#)bsdtypes.h 1.6 - 89/05/05" typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; #if !defined(_T_GUID) #define _T_GUID typedef unsigned short uid_t; typedef unsigned short gid_t; #endif typedef unsigned long t_time; /* * Select uses bit masks of file descriptors in longs. * These macros manipulate such bit fields (the filesystem macros use chars). * FD_SETSIZE may be defined by the user, but the default here * should be >= NOFILE (param.h). */ #ifndef FD_SETSIZE #define FD_SETSIZE 256 #endif typedef long fd_mask; #ifndef CHAR_BIT #define CHAR_BIT 8 /* # of bits in a "char" */ #endif #define NFDBITS (sizeof(fd_mask) * CHAR_BIT) /* bits per mask */ #ifndef howmany #define howmany(x, y) (((x)+((y)-1))/(y)) #endif typedef struct fd_set { fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)]; } fd_set; #define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS))) #define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS))) #define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS))) #define FD_ZERO(p) bzero((char *)(p), sizeof(*(p))) #ifndef _h_TIME #include <sys/time.h> #endif /* casts to keep lint happy */ #define remque(q) _remque((caddr_t)q) #define insque(q,p) _insque((caddr_t)q,(caddr_t)p) #define MAXHOSTNAMELEN 64 #ifndef MAX #define MAX(a,b) ((a)>(b)?(a):(b)) #endif #endif /* _BSDTYPES */