From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41155 Path: news.gmane.org!not-for-mail From: "=?ISO-8859-1?Q?Martin_Schr=F6der?=" Newsgroups: gmane.comp.tex.context Subject: Re: [LUATEX] uname() volunteers needed Date: Thu, 22 May 2008 00:15:52 +0200 Message-ID: <68c491a60805211515w2df8ce6fs71602968dab196d3@mail.gmail.com> References: <48341162.2000008@elvenkind.com> <20080521134357.GI21340@phare.normalesup.org> <68c491a60805211322o39cebbfar8e3dad0fe283413b@mail.gmail.com> <20080521220015.GR21340@phare.normalesup.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211408564 25048 80.91.229.12 (21 May 2008 22:22:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 May 2008 22:22:44 +0000 (UTC) To: "Mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu May 22 00:23:20 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JywiO-0002xv-2Z for gctc-ntg-context-518@m.gmane.org; Thu, 22 May 2008 00:23:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7516E1FC16; Thu, 22 May 2008 00:22:33 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28525-03-2; Thu, 22 May 2008 00:21:55 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E88751FC32; Thu, 22 May 2008 00:21:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DA9591FC24 for ; Thu, 22 May 2008 00:21:48 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27838-02 for ; Thu, 22 May 2008 00:21:08 +0200 (CEST) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.251]) by ronja.ntg.nl (Postfix) with ESMTP id 8669A1FCC7 for ; Thu, 22 May 2008 00:15:54 +0200 (CEST) Original-Received: by rv-out-0708.google.com with SMTP id f25so3052225rvb.14 for ; Wed, 21 May 2008 15:15:52 -0700 (PDT) Original-Received: by 10.141.151.20 with SMTP id d20mr5437613rvo.108.1211408152705; Wed, 21 May 2008 15:15:52 -0700 (PDT) Original-Received: by 10.140.248.21 with HTTP; Wed, 21 May 2008 15:15:52 -0700 (PDT) In-Reply-To: <20080521220015.GR21340@phare.normalesup.org> Content-Disposition: inline X-Google-Sender-Auth: 3629939fb4a12f22 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:41155 Archived-At: 2008/5/22 Arthur Reutenauer : >> No; instead of (uname(&uts)) it should be (uname(&uts) < 0) . > > Well, no: if the function fails on Linux and returns, say, 1, this > test wouldn't catch it. But Taco knows what to do, and the discussion >>From uname(2) on Linux: RETURN VALUE On success, zero is returned. On error, -1 is returned, and errno is set appropriately. And SUS3 has this: Upon successful completion, a non-negative value shall be returned. Otherwise, -1 shall be returned and errno set to indicate the error. Best Martin ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________