History log of /external/ltp/testcases/kernel/io/aio/aio01/aio01.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f59234e4fcc3f44fc95dcdaa6b161a128dab2636 27-Aug-2015 Cyril Hrubis <chrubis@suse.cz> aio01: Fix sprintf() format warning.

The format string value should be always known by compile time.

(Fixes build system warnings)

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
d6d11d08678aac1ed2c370ea8e42e5f45aea07be 09-Mar-2015 Cyril Hrubis <chrubis@suse.cz> Introduce tst_parse_opts()

The pattern that was used in all testcases is:

const char *msg;

msg = parse_opts(...);
if (msg)
tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);

This change simplifies the steps to just calling:

tst_parse_opts(...);

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
aabb8340f63ed31afe995fd97795e542dc68b93c 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Include usctest.h in test.h

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
605fa3362fd7cef0baa2131be32cf44661783d3e 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Get rid of TEST_CLEANUP

Special thanks to Coccinelle for making this easy job.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
526fdf8d8ea3b43b73de7cc25eb754f12702c8d2 04-Dec-2014 Cyril Hrubis <chrubis@suse.cz> Change tst_resm() followed by tst_exit() to tst_brkm()

Created with coccinelle patch:

@@
expression list L;
expression C != {TINFO, TPASS};
@@
- tst_resm
+ tst_brkm
(C,
+ NULL,
L);
- tst_exit();

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
cf0d626fe6224db3c714843dc7007e9f81d94a80 23-Sep-2014 Cyril Hrubis <chrubis@suse.cz> Remove all useless NULL casts.

Created with coccinelle patch:

@@
type T;
@@
-(T) NULL
+ NULL

Hint:
You have to disable isomorphisms by pointing --iso-file to empty file

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
0b9589f3f9c0345b29cfcf7da5a1253c708303eb 27-May-2014 Cyril Hrubis <chrubis@suse.cz> testcases: Constify char *msg variable.

The parse_opts() now returns const char * instead of char * this commit
fixes all warnings caused by the change.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
c0e21fd8bb45f537154acd91489b048079dda2f0 17-Apr-2013 Jan Stancek <jstancek@redhat.com> aio01: fix compare loop

For loop was breaking unconditionally after 1st iteration.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
17ea0a9df5289d0c452442cd899fdaaa283343d8 17-Apr-2013 Jan Stancek <jstancek@redhat.com> aio01: fix arg types in tst_resm

TEST_RETURN type is long.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
354ebb48db8e66a853a58379a4808d5dcd1ceac3 07-Dec-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> cleanup code indent

Cleanup the code indent using:

find . -name *.c -exec Lindent {} \;

It's really a big change, but can fix almost all of
the indent problem in C code, although we can't
ensure all of the changes are right, but the error
changes are really few.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
4548c6cf9bcdd96d8303caa4130ab638b61f8a30 19-Oct-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> Update FSF address

find . -type f -exec sed -i 's/675 Mass Ave, Cambridge, MA 02139, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;
find . -type f -exec sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
ec6edca7aa42b6affd989ef91b5897f96795e40f 18-Oct-2012 Chris Dearman <chris@mips.com> Add missing newline at end of file

This is a scripted change done using the following command:

find . -type d -name .git -prune -o \
-type f \! -name \*\~ \! -name .\#\* \
\! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \
xargs -0 sed -i -e '$a\'

Signed-off-by: Chris Dearman <chris@mips.com>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
72521cf0741034f67dd17107453cda9a9819264c 18-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix more tests; remove more Tst_count externs.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
2c28215423293e443469a07ae7011135d058b671 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Style and conformance changes.

1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
df3eb16e38c6a163b0a7367c885679eed6140964 29-Nov-2010 Garrett Cooper <yanegomi@gmail.com> Deal with a lot of annoying style nits.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
d1e19731a558700857e91c3ddc26a8fc15ab41b3 30-Aug-2009 subrata_modak <subrata_modak> This problem has been forgotten for some time but it still makes trouble with too strict buildsystems. See attached patch that also fixes minor style problems. Signed-off-by: chrubis@suse.cz.
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
030e75388369d79cf5feabd29c81c791026dca99 09-Jun-2009 subrata_modak <subrata_modak> Include config.h in aio01, to get HAVE_LIBAIO_H. This patch is necessary for aio01 test to actually test something. Signed-off-by: Jiri Palecek <jpalecek@web.de>.
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
bdbaec51a423e715c2b03ed9e497e9a1fba6103e 26-Feb-2009 subrata_modak <subrata_modak> Clean Trailing Tab: Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
4bb656a129f7507823e9e6d6b98b1a02fd80ef89 26-Feb-2009 subrata_modak <subrata_modak> Clear Trailing Whitespace. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
dd8762974ee84cdc18caf1e11a599986832c43cb 28-Jan-2009 subrata_modak <subrata_modak> Make ltp compilable without libaio: This is a patch inspired by numerous whining recently seen on ltp-list concerning compile failures when libaio is not present. This includes changes:
- add stubs to the aio tests,
- remove -laio from doio and pipeio makefile, as it was superfluous,
Changed the signatures of main() function (requested by Garrett Cooper). Signed-Off-By: Jiri Palecek <jpalecek@web.de>.
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
967caaf4892fc8062257443a08532863bbc6cccf 12-Jul-2008 subrata_modak <subrata_modak> According to the manpages io_submit() can return the value: EAGAIN Insufficient resources are available to queue any iocbs. We should handle this opportunely trying to re-submit the AIO request again. Maybe an even better approach could be to just sleep a bit before trying to re-submit the request. In any case this would resolve a never-ending loop in aio01.c, where io_getevents() can be continuously called without having issued any actual request if io_submit() failed with -EAGAIN. Signed-off-by: Andrea Righi <righi.andrea@gmail.com>.
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c
86de3f3b87c7156b48fda190dbbcce07518a528e 29-Jan-2004 robbiew <robbiew> Reorganized the aio tests.
/external/ltp/testcases/kernel/io/aio/aio01/aio01.c