[LTP] [PATCH] libs: adopt lib* prefix instead of tst_* for libs/

Li Wang liwang@redhat.com
Wed Jan 14 12:58:29 CET 2026


> > 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.

Understand, we can treat `lst_` as an alternative. This approach
allows us to replace all `lst_` values with the desired prefix using
a single 'sed' command.

Here only demo lst_ for an overview, I am still open-minded to find
a proper name :).

     include/{ipcmsg.h => lst_ipcmsg.h}
     include/{ipcsem.h => lst_ipcsem.h}
     include/{libmsgctl.h => lst_msgctl.h}
     include/{libnewipc.h => lst_newipc.h}
     include/{tst_numa.h => lst_numa.h}
     include/{parse_vdso.h => lst_parse_vdso.h}
     include/{libsigwait.h => lst_sigwait.h}
     include/{libswap.h => lst_swap.h}
     include/{tst_uinput.h => lst_uinput.h}
     libs/ipc/{libipc.c => lst_ipc.c}
     libs/ipc/{libmsgctl.c => lst_msgctl.c}
     libs/newipc/{libnewipc.c => lst_newipc.c}
     libs/numa/{tst_numa.c => lst_numa.c}
     libs/sigwait/{sigwait.c => lst_sigwait.c}
     libs/swap/{libswap.c => lst_swap.c}
     libs/uinput/{tst_uinput.c => lst_uinput.c}
     libs/vdso/{parse_vdso.c => lst_parse_vdso.c}


-- 
Regards,
Li Wang



More information about the ltp mailing list