From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: Pradeep Susarla <pradeep.susarla@gmail.com>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] libs: adopt lib* prefix instead of tst_* for libs/
Date: Wed, 14 Jan 2026 12:33:49 +0100 [thread overview]
Message-ID: <20260114113349.GB344144@pevik> (raw)
In-Reply-To: <CAEemH2e1MVNjLJR+_h9Bvkk3b0roVxhtJRvedFhxH4ckzhW==A@mail.gmail.com>
> On Wed, Jan 14, 2026 at 4:51 PM Petr Vorel <pvorel@suse.cz> wrote:
> > > > > I'd keep them separate from core library. For non-core libraries, I'd go
> > > > with
> > > > > something more distinct, like "ltp" prefix for file and function names.
> > > Thanks!
> > > > > When I look at "libnuma.h" I'd have to think for a bit if this is
> > > > > header from numa-devel
> > > > > or LTP. "ltpnuma.h" seems (to me) more clear that it's not LTP core
> > > > > nor numa-devel.
> > > Good point, but the ltp* prefix sounds too serious to me. Anything with
> > > the ltp* prefix inside an LTP makes me think it's critical information.
> > +1
> > > Perhaps we can use a lightweight name for the extra libs/:
> > > est_*: extra test library
> > > xst_*: extened test library
> > > lst_*: ltp test library
> > > I prefer to use lst_*, which is not only different from tst_*, but also
> > > implies
> > > this is ltp tst_ things.
> > > What do you think? or any better prefix?
> > Given that include "libfoo.h" should be local header and include <foo.h> should
> > be header from /usr/lib* I would be ok with either keep things as they are or
> > use the original Li's proposal.
> > For me personally is more useful to know whether header can be used in the old
> > API (i.e. "tst_" prefix means source is converted in the new C API) than whether
> > header is from extra library.
> Well, we might subconsciously think that libfoo.h means an older version,
> but we can change that minds. Something like "lst_" can also be used in
> older APIs (and implies extra libs/).
> Furthermore, I believe these additional 'libs/' directories will continue to be
> developed and exist long-term; we currently have no plans to migrate them
> to the core API, so explicit naming becomes crucial for maintenance.
> By now, the situation is, inlcude/ contains different prefix header files:
> 'ltp_', 'old_', 'lib': meant old LTP API, but should eventually be dropped.
> tst_: meant the new core LTP API.
> Next, I hope that we only keep two prefixes in LTP API:
> tst_: new core LTP API
> lst_: extra (non-core) LTP API
I'm not a big fun of 'lst_' (I might need time to get used to it :)) but I'm not
against it. If we agree on this it'd be great to document it, so that new
contributors will not have to think which prefix to use.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-01-14 11:34 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-09 2:39 [LTP] [PATCH] libs: adopt lib* prefix instead of tst_* for libs/ Li Wang via ltp
2026-01-09 3:07 ` Li Wang via ltp
2026-01-12 12:59 ` Andrea Cervesato via ltp
2026-01-12 14:10 ` Li Wang via ltp
2026-01-13 11:51 ` Petr Vorel
2026-01-13 13:30 ` Jan Stancek via ltp
2026-01-13 13:41 ` Andrea Cervesato via ltp
2026-01-14 3:03 ` Li Wang via ltp
2026-01-14 8:51 ` Petr Vorel
2026-01-14 10:32 ` Li Wang via ltp
2026-01-14 11:33 ` Petr Vorel [this message]
2026-01-14 11:58 ` Li Wang via ltp
2026-01-14 12:18 ` Jan Stancek via ltp
2026-01-14 12:07 ` Andrea Cervesato via ltp
2026-01-14 12:47 ` Li Wang via ltp
2026-01-14 13:36 ` Andrea Cervesato via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260114113349.GB344144@pevik \
--to=pvorel@suse.cz \
--cc=liwang@redhat.com \
--cc=ltp@lists.linux.it \
--cc=pradeep.susarla@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox