Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262394AbVEYSdl (ORCPT ); Wed, 25 May 2005 14:33:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262386AbVEYSbk (ORCPT ); Wed, 25 May 2005 14:31:40 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:9912 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S262367AbVEYS0y (ORCPT ); Wed, 25 May 2005 14:26:54 -0400 Date: Wed, 25 May 2005 19:26:51 +0100 From: Christoph Hellwig To: Chris Friesen Cc: linux-kernel@vger.kernel.org Subject: Re: proper API for sched_setaffinity ? Message-ID: <20050525182651.GA25833@infradead.org> Mail-Followup-To: Christoph Hellwig , Chris Friesen , linux-kernel@vger.kernel.org References: <4294BAD8.4030300@nortel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4294BAD8.4030300@nortel.com> User-Agent: Mutt/1.4.1i X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 752 Lines: 22 On Wed, May 25, 2005 at 11:50:16AM -0600, Chris Friesen wrote: > On my system (Mandrake 10.0) the man page for sched_setaffinity() lists > the prototype as: > > int sched_setaffinity(pid_t pid, unsigned int len, unsigned long > *mask); > > > But /usr/include/sched.h gives it as > > extern int sched_setaffinity (__pid_t __pid, __const cpu_set_t *__mask) > > Which is correct? The first is the syscall, the second is an API glibc folks invented and put into libc while beeing on crack. - 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/