cs_open() should return error on invalid mode