History log of /external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
817d8095fbfe5ebe22b29f58b7483f3d8d5e3fcc 24-Jul-2017 Richard Palethorpe <rpalethorpe@suse.com> Rename linux_syscall_numbers.h to lapi/syscalls.h

Move testcases/kernel/include/linux_syscall_numbers.h to lapi/syscalls.h so
that it is easily accessible from the LTP library as well as the tests.

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Acked-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
437d181393d9b957cd77086d575e5e9ce746fbc2 13-Dec-2016 Steven Jackson <sj@oscode.net> various: include sys/sycall.h instead of syscall.h

A majority of tests already use sys/syscall.h and Android's NDK doesn't
have syscall.h.

Signed-off-by: Steven Jackson <sj@oscode.net>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
3f6726023c7fc45c969dfbbc9464726a8d213c87 27-Jul-2015 Li Wang <liwang@redhat.com> syscalls/sysfs: don't return TWARN if unsupported

Replace syscall() with ltp_syscall() to avoid returning
TWARN in case sysfs is not supported, ltp_syscall will break
with TCONF in such case.

Signed-off-by: Li Wang <liwang@redhat.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.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/syscalls/sysfs/sysfs01.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/sysfs/sysfs01.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/syscalls/sysfs/sysfs01.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/syscalls/sysfs/sysfs01.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/sysfs/sysfs01.c
fdce7d5e2a219d201a2b0e3bab6b61b01ec1d716 04-Apr-2013 Cyril Hrubis <chrubis@suse.cz> Another semiautomated cleanup.

Remove comments such as:

- /* Test program identifier. */

- /* Total number of test cases. */

- /* Extern Global Variables */

- /* Harness Specific Include Files. */

- /* Standard Include Files */

- /* Parse standard options given to run the test. */

- etc.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
d59a659cd639ca2780b00049d102acd2a783d585 07-Mar-2013 Caspar Zhang <caspar@casparzhang.com> s/Tst_count/tst_count/ to avoid CamelCase

when using latest checkpatch.pl, CamelCase variables are not encouraged,
this patch does a batch update to replace all var `Tst_count` with
`tst_count`.

Signed-off-by: Caspar Zhang <caspar@casparzhang.com>
Acked-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
89af32a63ce8a780ea39337339e14caae244b5a4 24-Oct-2012 Cyril Hrubis <chrubis@suse.cz> Another semiautomated cleanup.

This patch removes all dumbious comments as:

/* loop counter */

/* message returned from from parse_opts */

/* parse standard options */

Various variations on:

int i; /* ... counter .... */

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
fed9641096e27f79a0f2d9adfe9839dd8d11dc0f 24-Oct-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> Fix FSF address

find . -type f -exec sed -i 's/the Free Software Foundation, Inc., 59/the Free Software Foundation, Inc.,/g;s/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/sysfs/sysfs01.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/sysfs/sysfs01.c
1e6f5a673655551de5734ff31ef48cd63b604e6d 19-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Resolving all compile errors via a script

This may leave dupe calls to tst_exit in main, but those are easier
to deal (and much less) than no-compile scenarios.

As a side-effect, fix all trailing whitespace issues.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.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/sysfs/sysfs01.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/sysfs/sysfs01.c
60fa8014af7534eaefa901200c8df4b74ce422e6 22-Nov-2010 Garrett Cooper <yanegomi@gmail.com> More meaningful cleanup with making options parsing errors consistent.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.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/sysfs/sysfs01.c
56207cec7732e09c216c751c0b5f88a242bacae6 23-Mar-2009 subrata_modak <subrata_modak> Coding Syle Cleanups. Signed-Off-By: <michal.simek@petalogix.com>.
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
5e27825cabb94268c3fd9ebf9128fc3ad1603d58 23-Apr-2008 subrata_modak <subrata_modak> The Linux port I run on LTP has a minimal set of system calls. It currently does not implement the sysfs system call so I'd like to disable the tests for this system call - at the moment they will fail to compile because __NR_sysfs is undefined. Is there an idiomatic way of doing this? I can either prevent the test compiling completely somehow in the Makefile (e.g. as modify_ldt does) or make the test compile but return BROK perhaps. Attached is a patch to implement a strategy like this one. By Will Newton <will.newton@gmail.com>
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
79c12181b49ed145430467b0c84b30a372fdf5d0 28-Apr-2007 subrata_modak <subrata_modak> Fixing 'sysfs01' testcase to make it ask for File System Index of 'proc' instead of 'ext2' as pointed out by <doug.chapman@hp.com>
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
238755b1e4dd7de60cb6cff2be1742bd64c0a2ab 22-Mar-2007 vapier <vapier> cleanup
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
949f2e5e344ad67e7a47121a1401e54be84970b8 08-Dec-2006 vapier <vapier> scrub references to _syscall2
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
83de32724a09cefc44344fb7fa6bdadd56718495 06-Aug-2006 vapier <vapier> fixes from Jeff Bailey to just use syscall() rather than _syscall#() macros
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
0c7769a4d4fbbeb807cbd41c58eef452d0a9b2ba 19-Jul-2006 mreed10 <mreed10> A fix to include the x86_64 archtiecture to build on latest version RHEL
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
8c106646405a708728df6f489c7c98230bd25252 10-Jul-2006 mreed10 <mreed10> A fix for bug 25085 to allow the testsuite to build on rhel5
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
a1b04dbe1661061bd98d15002354989d37437412 26-Jun-2006 robbiew <robbiew> Applied fix for __powerpc__
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
afd4843765a549fedf06fbf402fe4a07bf84a953 15-Mar-2004 robbiew <robbiew> Applied patch from Yaroslav Popovitch that addresses problems related
to the __syscall2 definition and 2.6 kernel based systems with
glibc-kernheaders-2.4-8.43.
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
4eb889d50277080d8236f001b40efeda83dece86 27-May-2003 robbiew <robbiew> Applied IA64 specific fixes from Jacky Malcles.
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c
9a55a78e1bcfc2fda4bc70a6cf1fc1cb3f433191 26-Dec-2002 robbiew <robbiew> Initial checkin of sysfs() tests from Aniruddha Marathe <aniruddha.marathe@wipro.com>
/external/ltp/testcases/kernel/syscalls/sysfs/sysfs01.c