home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / compat / __undefined.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-17  |  584 b   |  31 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. #ifdef USE_CONSOLE
  5. #define OUT_FILE_PTR    fp
  6. #else
  7. #define    OUT_FILE_PTR    stderr
  8. #endif    /* USE_CONSOLE */
  9.  
  10. void
  11. __libc_undefined ()
  12. {
  13. #ifdef USE_CONSOLE
  14.   static FILE *fp = NULL;
  15.  
  16.   if (!fp) fp = fopen ("/dev/console", "w");
  17.   if (!fp) fp = stderr;
  18.   else setbuf (fp, NULL);
  19. #endif    /* USE_CONSOLE */
  20.  
  21.   fprintf (OUT_FILE_PTR, "Undefined C library functions:\n");
  22.   fprintf (OUT_FILE_PTR,
  23.     "\t1. light C shared image (Use the real one instead.)\n");
  24. #if 0
  25. \t2. libnet.a (Relink with -lnet.)
  26. \t3. librpc.a (Relink with -lrpc.)
  27. #endif
  28.  
  29.   exit (-1);
  30. }
  31.