Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 5 Apr 2001 09:08:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 5 Apr 2001 09:08:40 -0400 Received: from pizda.ninka.net ([216.101.162.242]:63887 "EHLO pizda.ninka.net") by vger.kernel.org with ESMTP id convert rfc822-to-8bit; Thu, 5 Apr 2001 09:08:34 -0400 From: "David S. Miller" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Message-ID: <15052.28178.701561.756926@pizda.ninka.net> Date: Thu, 5 Apr 2001 06:07:30 -0700 (PDT) To: =?ISO-8859-1?Q?Sarda=F1ons@pizda.ninka.net, ?= Eliel Cc: "'linux-kernel@vger.kernel.org'" Subject: Re: asm/unistd.h In-Reply-To: In-Reply-To: X-Mailer: VM 6.75 under 21.1 (patch 13) "Crater Lake" XEmacs Lucid Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Sarda?ons@pizda.ninka.net, Eliel writes: > I'm taking a look at the linux code and I don't understand how do you > programm...mmm (?) may be i'm a stupid why in include/asm/unistd.h in some > macros you use this: Two reasons: 1) Empty statements give a warning from the compiler so this is why you see "#define FOO do { } while(0)" 2) It gives you a basic block in which to declare local variables. Later, David S. Miller davem@redhat.com - 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/