Lines Matching refs:flags
764 static int osl_file_adjustLockFlags (const char * path, int flags) in osl_file_adjustLockFlags() argument
779 flags &= ~O_EXLOCK; in osl_file_adjustLockFlags()
780 flags |= O_SHLOCK; in osl_file_adjustLockFlags()
785 flags &= ~(O_EXLOCK | O_SHLOCK | O_NONBLOCK); in osl_file_adjustLockFlags()
791 return flags; in osl_file_adjustLockFlags()
851 int flags = O_RDONLY; in osl_openFile() local
855 flags = OPEN_WRITE_FLAGS; in osl_openFile()
860 flags = OPEN_CREATE_FLAGS; in osl_openFile()
865 flags &= ~(O_EXLOCK | O_SHLOCK | O_NONBLOCK); in osl_openFile()
870 flags = osl_file_adjustLockFlags (buffer, flags); in osl_openFile()
874 int fd = open( buffer, flags, mode ); in osl_openFile()
879 if (flags & O_NONBLOCK) in osl_openFile()
951 if (flags & O_RDWR) in osl_openFile()
956 flags & O_RDWR ? "writeable":"readonly", in osl_openFile()