[LTP] [PATCH 2/2] syscalls/io_pgetevents

Cyril Hrubis chrubis@suse.cz
Thu Jan 23 15:20:22 CET 2020


Hi!
> > +#ifdef HAVE_LIBAIO
> > +#include <libaio.h>
> > +
> > +#ifndef HAVE_IO_SETUP
> > +int io_setup(int nr, io_context_t *ctxp)
> > +{
> > +	return syscall(__NR_io_setup, nr, ctxp);
> > +}
> > +#endif /* HAVE_IO_SETUP */
> > +
> > +#ifndef HAVE_IO_DESTROY
> > +int io_destroy(io_context_t ctx)
> > +{
> > +	return syscall(__NR_io_destroy, ctx);
> > +}
> > +#endif /* HAVE_IO_DESTROY */
> > +
> > +#ifndef HAVE_IO_SUBMIT
> > +int io_submit(io_context_t ctx, long nr, struct iocb **iocbpp)
> > +{
> > +	return syscall(__NR_io_submit, ctx, nr, iocbpp);
> 
> Can functions above also use ltp_syscall?

tst_syscall(), ltp_syscall() is old API.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list