home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / pdksh-4.9-src.tgz / tar.out / contrib / pdksh / std / stdc / stdio.c < prev    next >
C/C++ Source or Header  |  1996-09-28  |  396b  |  32 lines

  1. /*
  2.  * Emulation of misc. ANSI C stdio functions
  3.  */
  4.  
  5. /* $Id: stdio.c,v 1.3 93/05/05 21:18:25 sjg Exp $ */
  6.  
  7. #include <stdio.h>
  8.  
  9. #ifndef __STDC__
  10. #define const
  11. #define volatile
  12. #endif
  13.  
  14. #if 1
  15. int
  16. remove(name)
  17.     const char *name;
  18. {
  19.     return unlink(name);
  20. }
  21. #endif
  22.  
  23. #if _V7
  24. int
  25. rename(oname, nname)
  26.     const char *oname, *nname;
  27. {
  28.     return link(oname, nname) == 0 && unlink(oname) == 0 ? 0 : -1;
  29. }
  30. #endif
  31.  
  32.