Lines Matching defs:mode
32 int stickydirmode(const char *name, const mode_t mode, const int dropbox, const mode_t v_umask)
41 if ( ( (mode & S_IWOTH) && !(mode & S_IROTH)) ||
42 ( (mode & S_IWGRP) && !(mode & S_IRGRP)) )
48 if ( (retval=chmod_acl( name, ( (DIRBITS | mode | S_ISVTX) & ~v_umask) )) < 0) {
63 if ( (chmod_acl( name, (DIRBITS | mode) & ~v_umask ) < 0) && errno != EPERM &&
74 int dir_rx_set(mode_t mode)
76 return (mode & (S_IXUSR | S_IRUSR)) == (S_IXUSR | S_IRUSR);
80 int setfilmode(const struct vol *vol, const char *name, mode_t mode, struct stat *st)
91 mode |= st->st_mode & ~mask; /* keep other bits from previous mode */
94 if (ochmod(name, mode & ~vol->v_umask, st, vol_syml_opt(vol) | O_NETATALK_ACL) < 0 && errno != EPERM ) {
98 if (ochmod(name, mode & ~vol->v_umask, st, vol_syml_opt(vol)) < 0 && errno != EPERM ) {
182 int copy_file(int dirfd, const char *src, const char *dst, mode_t mode)
204 if ((dfd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, mode)) < 0) {