Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753921AbZCYMp0 (ORCPT ); Wed, 25 Mar 2009 08:45:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761705AbZCYMpG (ORCPT ); Wed, 25 Mar 2009 08:45:06 -0400 Received: from mail-fx0-f158.google.com ([209.85.220.158]:60235 "EHLO mail-fx0-f158.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761145AbZCYMpE (ORCPT ); Wed, 25 Mar 2009 08:45:04 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=SLZoZw7my7l/xJW8ooKjfxhM408LuGN9068rywuntgoS3VBzmH/LhTuh7JokxzAQR8 +EudJCnuZkL5aH3vt8bDPFdQDnC6P2yX/VGwk0lssYQvMaNHUEQLM8iVeh0FevsvLhMS 4zR0jKHN25v/oV/kidMcjk65a/kkD942uRGQw= MIME-Version: 1.0 Date: Wed, 25 Mar 2009 13:45:01 +0100 Message-ID: <84a01a8b0903250545n799a8727o1faad60c8eaf372e@mail.gmail.com> Subject: epoll_ctl and const correctness From: nicolas sitbon To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 640 Lines: 16 Currently, the prototype of epoll_ctl is : int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event); I searched in the man of epoll_ctl and google, and it seems that the structure pointed to by event isn't modify, valgrind confirms this behaviour, so am I wrong? or the good prototype is int epoll_ctl(int epfd, int op, int fd, struct epoll_event const *event); Thanks by advance! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/