X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,J_CHICKENPOX_64 autolearn=no version=3.4.0-r929098 Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id oAF4a0qZ025735 for ; Sun, 14 Nov 2010 22:36:00 -0600 X-ASG-Debug-ID: 1289795850-7376022f0000-S8gJnT X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from postoffice2.aconex.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id C2FE11C40834 for ; Sun, 14 Nov 2010 20:37:31 -0800 (PST) Received: from postoffice2.aconex.com (mail.aconex.com [203.89.202.182]) by cuda.sgi.com with ESMTP id rjTgM7y8clSHEZHz for ; Sun, 14 Nov 2010 20:37:31 -0800 (PST) Received: from postoffice.aconex.com (localhost [127.0.0.1]) by postoffice2.aconex.com (Spam & Virus Firewall) with ESMTP id C3CCD5A19C0; Mon, 15 Nov 2010 15:37:29 +1100 (EST) Received: from postoffice.aconex.com (postoffice.yarra.acx [192.168.102.1]) by postoffice2.aconex.com with ESMTP id LwUOiYHZ2X4wxCNL; Mon, 15 Nov 2010 15:37:29 +1100 (EST) Received: from gatekeeper.aconex.com (gatekeeper.yarra.acx [192.168.102.10]) by postoffice.aconex.com (Postfix) with ESMTP id B444CA5011D; Mon, 15 Nov 2010 15:37:29 +1100 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.aconex.com (Postfix) with ESMTP id AF0C69D0005; Mon, 15 Nov 2010 15:37:29 +1100 (EST) X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Scanned: amavisd-new at aconex.com Received: from gatekeeper.aconex.com ([127.0.0.1]) by localhost (gatekeeper.aconex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SpHA-ntiRn3n; Mon, 15 Nov 2010 15:37:25 +1100 (EST) Received: from acxmail-au2.aconex.com (acxmail-au2.aconex.com [192.168.102.14]) by gatekeeper.aconex.com (Postfix) with ESMTP id F2AD79D0002; Mon, 15 Nov 2010 15:37:24 +1100 (EST) Date: Mon, 15 Nov 2010 15:37:24 +1100 (EST) From: Nathan Scott To: Max Matveev Cc: Nate Pearlstein , pcp@oss.sgi.com Message-ID: <1008460397.46571289795844823.JavaMail.root@acxmail-au2.aconex.com> In-Reply-To: <19680.46333.631517.569650@iinet.net.au> X-ASG-Orig-Subj: Re: [pcp] pmcd on mac rsize ~1.8GB Subject: Re: [pcp] pmcd on mac rsize ~1.8GB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [203.89.193.116] X-Mailer: Zimbra 5.0.18_GA_3011.RHEL5_64 (ZimbraWebClient - FF3.0 (Linux)/5.0.18_GA_3011.RHEL5_64) X-Barracuda-Connect: mail.aconex.com[203.89.202.182] X-Barracuda-Start-Time: 1289795851 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.46664 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Status: Clean ----- "Max Matveev" wrote: > On Mon, 15 Nov 2010 15:06:00 +1100 (EST), Nathan Scott wrote: > > ctime returns a pointer to internal array in libc - I didn't feel > like roaching in there to chomp the line feed. The alternative I was > considering is to allocate a temporary, copy then chomp - I can see > now that the same effect can be achived with strcpy(ctim, > ctime(NOW)); Ah, OK, good. :) > nathans> Its not used anywhere else in pcp, and is unlikely to build > nathans> on at least one supported platform. :) > > ctime_r is supposed to be POSIX and, AFAIK, supported platform claims > to be POSIX-compliant. Win32 API gives us ANSI C but not POSIX. cheers. -- Nathan