home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / pdksh-4.9-src.lha / GNU / src / amiga / pdksh-4.9 / std / stdc / stdio.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-04  |  396 b   |  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.