Lines Matching defs:mode
645 safe_open(const char *filename, mode_t mode, isc_boolean_t append) {
658 fd = open(filename, O_WRONLY|O_CREAT|O_APPEND, mode);
662 fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, mode);
704 unsigned int mode;
728 mode = S_IRUSR | S_IWUSR | S_IXUSR; /* u=rwx */
729 mode |= S_IRGRP | S_IXGRP; /* g=rx */
730 mode |= S_IROTH | S_IXOTH; /* o=rx */
731 if (mkdir(filename, mode) == -1) {
797 ns_os_openfile(const char *filename, mode_t mode, isc_boolean_t switch_user) {
825 fd = safe_open(filename, mode, ISC_FALSE);
834 fd = safe_open(filename, mode, ISC_FALSE);
855 fd = safe_open(filename, mode, ISC_FALSE);