[LTP] [PATCH] testcases/lib: introduce sysctl wrapper

Petr Vorel pvorel@suse.cz
Wed Feb 23 15:47:19 CET 2022


> Hi!
> > > Ah, right. But I guess that adding a simple tool that would behave just
> > > as echo but the first parameter would be filename may be cleaner
> > > solution than wrapping around the sysctl command.
> > +1. If really requested please create C binary testcases/lib/tst_sysctl.c.
> > Code which use simple SAFE_FILE_PRINTF() as many C code does would be fairly
> > simple, more portable and probably faster than shell script. FYI we tend to
> > rewrite shell code into C.

> I would even call it tst_write since it's pretty generic tool that does
> write to a file.
+1, good point.

Kind regards,
Petr


More information about the ltp mailing list