home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
games
/
volume4
/
spacewar
/
part06
/
tstsz.c
< prev
next >
Wrap
C/C++ Source or Header
|
1988-05-31
|
659b
|
28 lines
/*
* 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);
}