From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22380 invoked by alias); 11 Oct 2007 07:32:55 -0000 Received: (qmail 22357 invoked by uid 22791); 11 Oct 2007 07:32:55 -0000 X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_50,DK_POLICY_SIGNSOME,DNS_FROM_RFC_ABUSE X-Spam-Check-By: sourceware.org Received: from fgwmail5.fujitsu.co.jp (HELO fgwmail5.fujitsu.co.jp) (192.51.44.35) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 11 Oct 2007 07:32:47 +0000 Received: from m3.gw.fujitsu.co.jp ([10.0.50.73]) by fgwmail5.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id l9B7Wi6e023493 for (envelope-from zhaolei@cn.fujitsu.com); Thu, 11 Oct 2007 16:32:44 +0900 Received: from smail (m3 [127.0.0.1]) by outgoing.m3.gw.fujitsu.co.jp (Postfix) with ESMTP id E6E722AC029 for ; Thu, 11 Oct 2007 16:32:43 +0900 (JST) Received: from s11.gw.fujitsu.co.jp (s11.gw.fujitsu.co.jp [10.0.50.81]) by m3.gw.fujitsu.co.jp (Postfix) with ESMTP id B971412C075 for ; Thu, 11 Oct 2007 16:32:43 +0900 (JST) Received: from s11.gw.fujitsu.co.jp (s11 [127.0.0.1]) by s11.gw.fujitsu.co.jp (Postfix) with ESMTP id 807EC161C007 for ; Thu, 11 Oct 2007 16:32:43 +0900 (JST) Received: from vs00.gw.fujitsu.co.jp (vs00.gw.fujitsu.co.jp [133.161.11.20]) by s11.gw.fujitsu.co.jp (Postfix) with ESMTP id 1325C161C00B for ; Thu, 11 Oct 2007 16:32:43 +0900 (JST) Received: from root00.fujitsu.com (root00.fujitsu.com [133.161.11.10] (may be forged)) by vs00.gw.fujitsu.co.jp (8.13.7/8.13.7) with ESMTP id l9B7WgkC015994 for ; Thu, 11 Oct 2007 16:32:42 +0900 Received: from root00.fujitsu.com (root00 [127.0.0.1]) by root00.fujitsu.com (Postfix) with ESMTP id A1D56133798; Thu, 11 Oct 2007 16:32:42 +0900 (JST) Received: from guest004 (unknown [10.124.105.133]) by root00.fujitsu.com (Postfix) with SMTP id 22A4F13377B; Thu, 11 Oct 2007 16:32:42 +0900 (JST) Message-ID: <02c601c80bd8$e93a4250$85697c0a@guest004> From: "Zhaolei" To: Cc: "Zhaolei" References: <470B0D2A.4070401@cn.fujitsu.com> <13bd01c80a49$25aaa590$85697c0a@guest004> Subject: Mistake in man on tokenize Date: Thu, 11 Oct 2007 07:32:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1914 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00114.txt.bz2 Hi, everyone In man stapfuncs, tokenize is explained as following: tokenize:string (str:string, delim:string) Given a string and a token delimiter, return the next token in the string. If str is non-NULL, returns the first token. If str is NULL, returns the next token in the str passed in the previous call to tokenize(). Only the first character in delim is used as the delimiter. Returns NULL when no more tokens are left. But I found if delimiter includes more than 1 chars, Not only the first character, but also all of characters will used as the delimiter. So I think it is necessary to update man as following: - Only the first character in delim is used as the delimiter. + Each character in delim is taken as a delimiting character. If no objection, I will commit it. Regards Zhaolei