red-brick: Add missing error_code output parameter to kill_process function
red-brick: Add flags parameter to create_pipe function
red-brick: Add get_file_flags function and update error code list