cvs commit: src/share/man/man9

Douwe Kiela virtus at wanadoo.nl
Sat Sep 4 14:35:56 PDT 2004


From: "Matthew Dillon" <dillon at xxxxxxxxxxxxxxxxxxxxxxx>
>   Modified files:
>     share/man/man9       style.9
>   Log:
>   Minor style cleanups.  Start a list of obsolete functions that should no
>   longer be used, and add a warning about the use of unbounded string
functions.
Hey, it wouldn't be a bad idea to also mention that strlcpy should sometimes
be used over strncpy, would it? OpenBSD created the function because
strncpy's security is insufficient in some cases, so I guess it wouldn't be
a bad thing to mention that. Also, I think that it is important to mention
what function should be used instead of the proposed LEGACY functions..
Avoiding race conditions using mkstemp instead of mktemp is an important
thing.
I am looking at style(9) now and from what I see it doesn't mention the
importance of error checking either.
Want me to submit patches for this, or do you want to change it yourself?

Greetings,
Douwe






More information about the Commits mailing list