Svn Log

Commit Date  
[r1007] (HEAD) by casparant

Fix redefinition of 'struct flock' error

in inotify_add/rm_watch testcases, mixing using glibc headers and kernel
headers causes including conflict:

make[1]: Entering directory
gcc -Wall -O2 -I/lib/modules/2.6.32-19.el6.i686/build/include -o test
basic.c ../../common.j.h/common_j_h.c
error: redefinition of 'struct flock'
warning: "F_DUPFD_CLOEXEC" redefined
/usr/include/bits/fcntl.h:107:1: warning: this is the location of the
previous definition

Replace kernel headers to glibc headers.

Signed-off-by: Caspar Zhang <>

2010-12-22 17:22:48 Tree
[r1006] by casparant

Fix initializer element is not constant error

No need to cast type for generate_flags function since it already
returns int value. Besides, it's incorrect to use (int) to cast a
function pointer, we should use (int(*)()) instead.

Signed-off-by: Caspar Zhang <>

2010-12-21 08:24:59 Tree
[r1005] by casparant

Fix FS macros undefined error

undefined error in ext2_mask_flags function

2) use <> instead of "" for system headers

Signed-off-by: Caspar Zhang <>

2010-12-21 06:28:05 Tree
[r1004] by casparant

fix syntax error in getsid() function

getsid() function without arguments is valid only in SUSv2 standard,
which needs feature test macro _XOPEN_SOURCE > 500, I suppose
Crackerjack project is not ready for testing under UNIX systems, so I
didn't define _XOPEN_SOURCE macro but changed getsid() to getsid(0).

Signed-off-by: Caspar Zhang <>

2010-12-21 05:50:40 Tree
[r1003] by casparant

Add definition of __set_errno

fallocate.c testcase shows undefined reference to `__set_errno', I wrote
a macro implementation for it.

Signed-off-by: Caspar Zhang <>

2010-12-21 05:50:14 Tree
[r1002] by casparant

Add asm/unistd.h

Some testcases needs to include <asm/unistd.h>, else compilation error
occurs due to undefined __NR_syscall.

Signed-off-by: Caspar Zhang <>

2010-12-21 05:49:43 Tree
[r1001] by casparant

Remove unnecessary headers

Remove some uncecessary headers in testcases, which may cause compiling

Signed-off-by: Caspar Zhang <>

2010-12-21 05:49:14 Tree
[r1000] by casparant

Add kernel include path

Some testcases requires kernel include path to be added. So I modified
Makefile to add -I/lib/modules/$(shell uname -r)/build/include as

Signed-off-by: Caspar Zhang <>

2010-12-21 05:48:42 Tree
[r999] by casparant

fix delete_module test cases

This patch has multiple fixes:

a) including <linux/modules.h> and add -I/lib/modules/`uname
-r`/build/include to CFLAGS directly will cause compiling error. So I
removed all linux/modules.h.

b) Since <linux/modules.h> is not included any more, I manually add
macro and struct definitions in delete_module03 case.

c) Fix the comments in delete_module03

Signed-off-by: Caspar Zhang <>

2010-12-21 05:48:14 Tree
[r998] by casparant

fix lib/kor compiling issue

This patch has two fixes:

1) make lib/kor get compiled first before other testcases get compiled.
Since other testcases may use the lib function implementations, so libs
must be compiled first.

2) add -D_GNU_SOURCE and -Wall to lib/kor/Makefile CFLAGS. Since some
variables in lib/kor require this GNU_SOURCE macro to be enabled, I
enabled this macro in Makefile.

Signed-off-by: Caspar Zhang <>

2010-12-21 05:47:38 Tree
[r997] by casparant

delete bits/byteswap.h to avoid include error

When compiling, crackerjack gave the following error message:

make[1]: Entering directory
../../../include/man/sysdeps/x86_64/bits/byteswap.h:22:3: Error:#error
"Never use <bits/byteswap.h> directly; include <byteswap.h> instead."

So I delete include/man/sysdeps/*/bits/byteswap.h to avoid such error

Signed-off-by: Caspar Zhang <>

2010-12-21 05:47:10 Tree
[r996] by hashimoh
2009-11-28 00:56:47 Tree
[r995] by hashimoh
2009-11-28 00:44:19 Tree
[r994] by gsyoon

not compare a return value

2009-10-15 01:30:58 Tree
[r993] by lovesirius
2009-10-13 02:40:50 Tree
[r992] by hashimoh
2009-10-12 05:29:18 Tree
[r991] by lovesirius
2009-10-12 04:59:20 Tree
[r990] by lovesirius
2009-10-12 04:57:22 Tree
[r989] by hashimoh
2009-10-09 14:18:10 Tree
[r988] by gsyoon

do not print return value

2009-10-08 04:31:16 Tree
[r987] by gsyoon

CFLAGS modified

2009-10-08 01:19:20 Tree
[r986] by hashimoh
2009-10-04 04:54:01 Tree
[r985] by hashimoh
2009-10-04 04:49:37 Tree
[r984] by hashimoh
2009-10-04 04:25:05 Tree
[r983] by hashimoh
2009-09-27 03:02:27 Tree
Older >

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks