From owner-cvs-all Wed May 30 19: 9:39 2001 Delivered-To: cvs-all@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 1D4C837B422; Wed, 30 May 2001 19:09:35 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.1) with ESMTP id f4V29NE88354; Wed, 30 May 2001 20:09:23 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200105310209.f4V29NE88354@harmony.village.org> To: Kris Kennaway Subject: Re: cvs commit: src/lib/libc/gen setproctitle.3 syslog.3 src/lib/libc/stdio printf.3 Cc: Eric Melville , Dima Dorfman , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-reply-to: Your message of "Wed, 30 May 2001 18:28:22 PDT." <20010530182822.A79068@xor.obsecurity.org> References: <20010530182822.A79068@xor.obsecurity.org> <200105252042.f4PKgfu84635@freefall.freebsd.org> <20010526004601.2109A3E2F@bazooka.unixfreak.org> <20010530172131.A60056@FreeBSD.org> Date: Wed, 30 May 2001 20:09:23 -0600 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20010530182822.A79068@xor.obsecurity.org> Kris Kennaway writes: : I'd also welcome this. I also want better manpage documentation about : things like how to use strncpy() properly, whether to use : array[FOO_MAX] or array[FOO_MAX+1] for proper bounding of buffers : passed to library (e.g. POSIX) functions, etc. These should include : code snippets so people can easily get the right idea instead of : having to infer from verbal descriptions. Some of this stuff best : goes in the individual function manpages, but the second class : includes examples of a general implementation used by a number of : functions. If someone gets the bones of a string.7 (or safe-sex.7 or safe-programming.7 or sprog.7 or whatever you want to call it) into the tree, I'll add what I know about the POSIXly correct thing to do, as well as known unsafe interfaces/practices. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message