home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
0
/
0980
/
system.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-12-28
|
526b
|
41 lines
/* system type */
#ifndef BSD
# if defined(sun) || defined(sun3)
# define BSD 1
# endif
#endif
#ifndef USG
# ifdef L_ctermid
# define USG 1
# endif
# ifdef M_XENIX
# define USG 1
# endif
#endif
#ifdef BSD
# undef USG
#endif
#ifdef USG
# define rindex strrchr
# ifdef M_XENIX
# define GETCWD
# define SIGNAL int
# else
# define minor(i) ((i)&0xFF)
# define major(i) minor((i)>>8)
# define SIGNAL void
# endif
#else
# ifdef BSD
# define SIGNAL void
# else
# define SIGNAL int
# include <whoami.h>
# endif
#endif