home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / emerald / emrldsys.lha / Kernel / h / system.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-17  |  1.2 KB  |  55 lines

  1. #ifndef system_h
  2. #define system_h
  3. #ifndef NULL
  4. #include <stdio.h>
  5. #endif
  6.  
  7. #include <sys/types.h>
  8.  
  9. extern int perror();
  10.  
  11. #define check(xxxx) { if (xxxx < 0) { perror("check"); abort();}}
  12.  
  13. #define Free(N) if ((int) (N) > 0x100) free((char *)(N));
  14.  
  15. extern int errno;
  16. extern char *malloc(/* nBytes */);
  17. /* unsigned int nBytes; */
  18. extern char *calloc(/* nElements, nBytes */);
  19. /* unsigned int nElement, nBytes; */
  20.  
  21. #ifdef RICEGC
  22. /* If RICE collector is included then switch to it via the following macros */
  23. #ifndef emalloc
  24. /* (They may have been defined previously, if stdTypes.h has been included) */
  25. #define emalloc(X) gc_malloc(X)
  26. #define malloc(X)  gc_malloc(X)
  27. #define free(X)    gc_free(X)
  28. #define emfree(X)  gc_free(X)
  29. #endif  emalloc
  30. #endif RICEGC
  31.  
  32. extern void free();
  33. extern void emfree();
  34. extern char *emalloc(), *emallocnil();
  35.  
  36. extern char *sbrk();
  37.  
  38. extern char *strcat(), *strcpy(), *strncpy();
  39. extern int bcopy();
  40.  
  41. extern int exit(/* status */);
  42. /* int status; */
  43.  
  44. extern char *ctime();
  45. extern time_t time();
  46. extern long random();
  47. extern int sigvec();
  48. extern long seek(), lseek();
  49. extern int sleep();
  50. extern nlist();
  51. extern int srandom();
  52. extern char *inet_ntoa();
  53. extern void ErrMsg(), QueueTask();
  54. #endif
  55.