home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c004 / 2.ddi / XENIX / CTCMPL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-04-18  |  1.2 KB  |  37 lines

  1.  
  2. /* Xenix System V */
  3.  
  4. #include <fcntl.h>
  5. #define BUPDATE O_RDWR
  6. #define BCREATE 0666
  7. #define C255    -1
  8. #define ct_NULL    (char *) 0
  9. #define remove    unlink
  10.  
  11. /*
  12.  * MAKE SURE THAT ct_NULL is properly sized.  If the compiler does not
  13.  * supply a value, then ct_NULL will be used for zero data pointers. In
  14.  * 32 bit systems, ct_NULL should usually be defined as 0L. We use the
  15.  * (char *) 0 approach so that ct_NULL will be correct for different
  16.  * memory models on the 8086/80286/80386 family of computers. Run
  17.  * CTTEST to check out your system set up.
  18.  *
  19.  * MAKE SURE THAT cpybuf IS defined CORRECTLY: cpybuf does a straight n byte 
  20.  * copy. It does not stop on NULL bytes.
  21.  * 
  22.  * You may eliminate the following cpybuf #define. c-tree will then 
  23.  * automatically use a C source code version of cpybuf found in CTCLB2.C.
  24.  */
  25.  
  26. #define cpybuf(dest_ptr,source_ptr,n) memcpy(dest_ptr,source_ptr,n)
  27.  
  28. /* 
  29.  * Change to PERC_D (on 16-bit machines) or PERC_HD (on 32 bit machines)
  30.  * in ctoptn.h.
  31.  *
  32.  * If there any questions, compile and execute CTTEST.C.
  33.  *
  34.  * Note that there is a shell script (MOVFILES) which will move the
  35.  * source code modules into your XENIX system.
  36.  */
  37.