Skip to content

Improve string_copying(7)

Alejandro Colomar linux-man 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v12 patches 0 repliesSuperseded

v3 from the cover letter

- Patches 1/3 and 2/3 are identical to v2, except that I CCd libbsd's maintainer (Guillem) in 2/3 so he's aware that we're documenting BUGS for strlcpy(3). Since the strlcpy(3bsd) manual page is part of libbsd, it may be interesting to also add a BUGS section in that page.

- Add 3/3, which adds strtcpy(3), a function almost identical to strscpy(9), and very similar to strlcpy(3), which doesn't share its bugs.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3string_copying.7: BUGS: *cat(3) functions aren't always badman7/string_copying.7+6 -03 replies
2/3string_copying.7: BUGS: Document strl{cpy,cat}(3)'s performance problemsman7/string_copying.7+17 -10 replies
3/3strtcpy.3, string_copying.7: Add strtcpy(3)man3/strtcpy.3 man7/string_copying.7+69 -290 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Improve string_copying(7)

Hi,

v3:

- Patches 1/3 and 2/3 are identical to v2, except that I CCd libbsd's maintainer (Guillem) in 2/3 so he's aware that we're documenting BUGS for strlcpy(3). Since the strlcpy(3bsd) manual page is part of libbsd, it may be interesting to also add a BUGS section in that page.

- Add 3/3, which adds strtcpy(3), a function almost identical to strscpy(9), and very similar to strlcpy(3), which doesn't share its bugs.

Cheers,
Alex

Alejandro Colomar (3):
string_copying.7: BUGS: *cat(3) functions aren't always bad string_copying.7: BUGS: Document strl{cpy,cat}(3)'s performance
problems
strtcpy.3, string_copying.7: Add strtcpy(3)

 man3/strtcpy.3        |   1 +
 man7/string_copying.7 | 121 +++++++++++++++++++++++++++++++-----------
 2 files changed, 92 insertions(+), 30 deletions(-)
 create mode 100644 man3/strtcpy.3
Signature · 1 line
2.42.0