home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / disk / mkisofs-1.00.5.lha / mkisofs / unix / misc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-29  |  234 b   |  15 lines

  1. /* misc.c: */
  2.  
  3. #include <fcntl.h>
  4. #include "unixlib.h"
  5.  
  6. /* chmod does not really change any permissions: */
  7.  
  8. int chmod (const char *p_pathname, int p_mode)
  9. {
  10.   if (access ((char*) p_pathname, 0))
  11.     return -1;
  12.   else
  13.     return 0;
  14. }
  15.