Annotation of coherent/g/usr/lib/uucp/tay104/unix/chmod.c, revision 1.1.1.1

1.1       root        1: /* chmod.c
                      2:    Change the mode of a file.  */
                      3: 
                      4: #include "uucp.h"
                      5: 
                      6: #include "uudefs.h"
                      7: #include "sysdep.h"
                      8: #include "system.h"
                      9: 
                     10: #include <errno.h>
                     11: 
                     12: /* Change the mode of a file.  */
                     13: 
                     14: boolean
                     15: fsysdep_change_mode (zfile, imode)
                     16:      const char *zfile;
                     17:      unsigned int imode;
                     18: {
                     19:   if (chmod ((char *) zfile, imode) < 0)
                     20:     {
                     21:       ulog (LOG_ERROR, "chmod (%s): %s", zfile, strerror (errno));
                     22:       return FALSE;
                     23:     }
                     24:   return TRUE;
                     25: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.