History log of /external/ltp/testcases/kernel/syscalls/string/string01.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3367d2317d9a46c313be5d8472c2fa4a82be1650 27-Feb-2017 Cyril Hrubis <chrubis@suse.cz> syscalls/string01: Small cleanup

* Get rid of useless comments

* Make use of tst_parse_opts()

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/string/string01.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/syscalls/string/string01.c
371cf0a03162d0d1c2a9bb69a049a94b84312689 24-Sep-2014 Cyril Hrubis <chrubis@suse.cz> Remove returns that follows tst_exit()

Removes dead code that is never executed.

Created with coccinelle patch:

@@
expression E;
@@
tst_exit();
-return E;

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/string/string01.c
c57fba5535abf457e33dd7a986b6c512d95cdef6 10-Apr-2014 Mike Frysinger <vapier@gentoo.org> testcases/kernel/syscalls: clean up old style prototypes

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/ltp/testcases/kernel/syscalls/string/string01.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/syscalls/string/string01.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/syscalls/string/string01.c
1569799abe4296fc5ca50ede305c1eb2ac482422 18-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix some tests. Remove all externs to Tst_count.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/string/string01.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/syscalls/string/string01.c
45e285d46ab47b0ff76c88acb5ba97b0bd5f753d 22-Nov-2010 Garrett Cooper <yanegomi@gmail.com> Remove useless casts.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/string/string01.c
a8e1a60923c0d65ca323062990282c7d4ebc7296 18-Aug-2010 Garrett Cooper <yanegomi@gmail.com> Fix ad hoc errno definitions.

I found that some of the testcases in kernel/syscalls redefine 'errno'
as 'int':

int errno;

'errno' is normally in errno.h as a #define to a function returning a
pointer, i.e.,

extern int *__errno_location (void) . . .

Attached is a patch to remove the redefinition from the following files:

testcases/kernel/syscalls/mallopt/mallopt01.c
testcases/kernel/syscalls/memcmp/memcmp01.c
testcases/kernel/syscalls/memcpy/memcpy01.c
testcases/kernel/syscalls/memset/memset01.c
testcases/kernel/syscalls/syscall/syscall01.c
testcases/kernel/syscalls/string/string01.c

Signed-off-by: d.marlin <dmarlin@redhat.com>
/external/ltp/testcases/kernel/syscalls/string/string01.c
56207cec7732e09c216c751c0b5f88a242bacae6 23-Mar-2009 subrata_modak <subrata_modak> Coding Syle Cleanups. Signed-Off-By: <michal.simek@petalogix.com>.
/external/ltp/testcases/kernel/syscalls/string/string01.c
bdbaec51a423e715c2b03ed9e497e9a1fba6103e 26-Feb-2009 subrata_modak <subrata_modak> Clean Trailing Tab: Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/string/string01.c
43337a3cf6f8809647cf9fc6c0054241f44b1fb1 26-Feb-2009 subrata_modak <subrata_modak> Fix return(0) to return 0. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/string/string01.c
ab7e18bf87149b91cb433ea3ad9e693a10d5c868 26-Jan-2004 mridge <mridge> Added an acceptable value field to the strncmp structure and an additional test for acceptable ranges
sine the man pages only state "negative, 0, or positive return codes, no specific errors are mentioned.
/external/ltp/testcases/kernel/syscalls/string/string01.c
efe613f038a2afa852dfcab43e70c3ad2c6427bd 12-Jan-2004 robbiew <robbiew> Applied patch from Erik Andersen:
=================================
Looks like take 2 reverted take 1, but didn't manage to apply
the actual strncmp implementation assumption fix. This patch
should fix things right up.

Please apply,

-Erik
=================================
/external/ltp/testcases/kernel/syscalls/string/string01.c
eff20dba732aad883decc091ed31510aee0f494c 05-Jan-2004 robbiew <robbiew> Applied revised patch from Erik Andersen:
======================================
Here is a much more tasteful fix, using the same method that was
used for strcmp(), which is certainly more elegant than what I
sent off a few minutes ago. Please apply this version instead.
======================================
/external/ltp/testcases/kernel/syscalls/string/string01.c
c419fe4141d354607dc630272102db976fe0990e 05-Jan-2004 robbiew <robbiew> Applied patch from Erik Andersen:
================================
The string tests check strncmp(), but they expect certain
implementation specific results, which are not correct.

SuSv3 states:

"Upon successful completion, strncmp() shall return an
integer greater than, equal to, or less than 0, if the
possibly null-terminated array pointed to by s1 is
greater than, equal to, or less than the possibly
null-terminated array pointed to by s2 respectively."

yet the current strncmp() test checks for the result for equality
with things such as ('y'-'a'), which assumes a particular
implementation that is much more specific than is authorized by
SuSv3. I think the test should merely check for >, ==, or <
zero, and nothing else.

I propose this patch be applied to remedy the strncmp test, and
bring it into exact compliance with SuSv3....
================================
/external/ltp/testcases/kernel/syscalls/string/string01.c
70dfdc72087b3034253e3d34d0a9f8129fdbf4bc 08-Jul-2003 plars <plars> This test is retarded, but all I did was remove the extra \n
/external/ltp/testcases/kernel/syscalls/string/string01.c
4c53b8f397d354c8048d5f3e424aea5e2143ea61 04-Apr-2003 robbiew <robbiew> warnings cleanup
/external/ltp/testcases/kernel/syscalls/string/string01.c
c58f59a0ba8564da644a39379dc138a6c5c986ea 31-Dec-2002 robbiew <robbiew> Added string.h test string01 ported by Ananda Venkataraman <avenkat@us.ibm.com>
/external/ltp/testcases/kernel/syscalls/string/string01.c