]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/, po/, src/: Rename stpeprintf() => seprintf()
authorAlejandro Colomar <alx@kernel.org>
Mon, 10 Feb 2025 14:06:34 +0000 (15:06 +0100)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Fri, 15 May 2026 10:06:49 +0000 (12:06 +0200)
commit8da922e7747f32b81176050ab12f2a0e9fffca07
tree340ff03347dbc83ca2412f2bab75e43c989e7fed
parent840519ba8de9473235b2639f7e9dfe252ee0dcb3
lib/, po/, src/: Rename stpeprintf() => seprintf()

The old name was too complex, and is inconsistent with all other
sprintf(3)-based APIs having just one letter for differentiation.
This allows breaking less lines.

The original name was chosen for differentiation with the buggy Plan9
API seprint(2).  However, 9front (the current fork where Plan9 is mainly
developed) has acknowledged the bug.  There's still no decision on
fixing the bug or not, due to the age of their code base, and the
projects depending on their library.  It is under consideration
inventing something like a seprint2(2) in 9front for replacement of
seprint(2), but there's no decision yet either.

Considering that 9front acknowledges their bug, and that they *may*
release a fixed API with a similar name, we may as well claim that our
seprintf() is also a fixed version of Plan9's seprint(2).  It has a
different name, after all (we terminate in 'f').

This commit was partially scripted with

$ find * -type f \
| xargs grep -l stpeprintf \
| xargs sed -i 's/stpeprintf/seprintf/g';

Signed-off-by: Alejandro Colomar <alx@kernel.org>
50 files changed:
configure.ac
lib/Makefile.am
lib/idmapping.c
lib/string/README
lib/string/sprintf/seprintf.c [new file with mode: 0644]
lib/string/sprintf/seprintf.h [new file with mode: 0644]
lib/string/sprintf/stpeprintf.c [deleted file]
lib/string/sprintf/stpeprintf.h [deleted file]
po/bs.po
po/ca.po
po/cs.po
po/da.po
po/de.po
po/dz.po
po/el.po
po/es.po
po/eu.po
po/fi.po
po/fr.po
po/gl.po
po/he.po
po/hu.po
po/id.po
po/it.po
po/ja.po
po/ka.po
po/kk.po
po/km.po
po/ko.po
po/nb.po
po/ne.po
po/nl.po
po/nn.po
po/pl.po
po/pt.po
po/pt_BR.po
po/ro.po
po/ru.po
po/shadow.pot
po/sk.po
po/sq.po
po/sv.po
po/tl.po
po/tr.po
po/uk.po
po/vi.po
po/zh_CN.po
po/zh_TW.po
src/chfn.c
src/groupmod.c