From owner-cvs-all Tue Aug 29 14:27:37 2000 Delivered-To: cvs-all@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 4210937B423; Tue, 29 Aug 2000 14:27:33 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id PAA94992; Tue, 29 Aug 2000 15:27:31 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id PAA11676; Tue, 29 Aug 2000 15:27:13 -0600 (MDT) Message-Id: <200008292127.PAA11676@harmony.village.org> To: "Andrey A. Chernov" Subject: Re: cvs commit: src/lib/libc/rpc getpublickey.c netnamer.c Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-reply-to: Your message of "Wed, 30 Aug 2000 01:25:27 +0400." <20000830012526.A96525@nagual.pp.ru> References: <20000830012526.A96525@nagual.pp.ru> <200008292104.OAA53001@freefall.freebsd.org> <200008292113.PAA11550@harmony.village.org> Date: Tue, 29 Aug 2000 15:27:12 -0600 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20000830012526.A96525@nagual.pp.ru> "Andrey A. Chernov" writes: : On Tue, Aug 29, 2000 at 03:13:18PM -0600, Warner Losh wrote: : > In message <200008292104.OAA53001@freefall.freebsd.org> "Andrey A. Chernov" writes: : > : strtok() -> strsep() (no strtok() in libraries allowed) : > : > Is that because it is not reentrant? : : Consider following scenario: : : 1) User call strtok(his_pointer, ...) : 2) Some library functions somehow called (with hidden internal strtok()) : 3) User call strtok(NULL, ...) Exactly my point... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message