|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T t
Length: 659 (0x293) Types: TextFile Names: »tstsz.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Spacewar/tstsz.c«
/* * Spacewar - test size of uio and alternate * * Copyright 1984 obo Systems, Inc. * Copyright 1984 Dan Rosenblatt */ #include "spacewar.h" #include "uio.h" #include "uio2.h" main() { #ifdef BSD printf("only one uio, nothing to worry about\n"); #else /* VMS SYSIII SYSV */ #ifdef VMS printf("only one uio, nothing to worry about\n"); #else /* SYSIII SYSV */ printf("since there are two uios, they must match in size\n"); printf("sizeof(uio)(%d) %c= sizeof(uio2)(%d)\n", sizeof(struct uio), (sizeof(struct uio) == sizeof(struct uio2)) ? '=' : '!', sizeof(struct uio2)); #endif /* VMS SYSIII SYSV */ #endif /* BSD VMS SYSIII SYSV */ return(0); }