public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] PATCHES: build for uCLinux
       [not found] <600498180.46596.1375958364140.JavaMail.zimbra@kalray.eu>
@ 2013-08-08 10:42 ` Marta Rybczynska
  2013-08-12 10:14   ` chrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Marta Rybczynska @ 2013-08-08 10:42 UTC (permalink / raw)
  To: ltp-list

[-- Attachment #1: Type: text/plain, Size: 92 bytes --]

Hello,

I attach two small patches for LTP build on uCLinux.

Best regards,
Marta Rybczynska

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-flock03-fix-compile-on-UCLINUX.patch --]
[-- Type: text/x-patch; name=0002-flock03-fix-compile-on-UCLINUX.patch, Size: 970 bytes --]

From 42afd4c9f0546f1a9f28556bae58153271c8a86d Mon Sep 17 00:00:00 2001
From: Marta Rybczynska <marta.rybczynska@kalray.eu>
Date: Tue, 6 Aug 2013 09:40:14 +0200
Subject: [PATCH 2/2] flock03: fix compile on UCLINUX

FILENAME definition does not exist, use FILE_NAME instead.

Signed-off-by: Marta Rybczynska <marta.rybczynska@kalray.eu>
---
 testcases/kernel/syscalls/flock/flock03.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testcases/kernel/syscalls/flock/flock03.c b/testcases/kernel/syscalls/flock/flock03.c
index bacf4f6..d0bd214 100644
--- a/testcases/kernel/syscalls/flock/flock03.c
+++ b/testcases/kernel/syscalls/flock/flock03.c
@@ -92,7 +92,7 @@ int main(int argc, char **argv)
 				 errno);
 		if (pid == 0) {
 #ifdef UCLINUX
-			if (self_exec(argv[0], "ds", fd, FILENAME) < 0)
+			if (self_exec(argv[0], "ds", fd, FILE_NAME) < 0)
 				tst_brkm(TFAIL, cleanup, "self_exec failed, "
 					 "errno &d", errno);
 #else
-- 
1.7.4.4


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0001-ebizzy.h-mallopt-does-not-exist-on-uClinux.patch --]
[-- Type: text/x-patch; name=0001-ebizzy.h-mallopt-does-not-exist-on-uClinux.patch, Size: 834 bytes --]

From 6bc02047452c800eee47c7f7afe34ff524199454 Mon Sep 17 00:00:00 2001
From: Marta Rybczynska <marta.rybczynska@kalray.eu>
Date: Tue, 6 Aug 2013 09:39:16 +0200
Subject: [PATCH 1/2] ebizzy.h: mallopt does not exist on uClinux

mallopt does not exist on uClibc, it requires MMU.

Signed-off-by: Marta Rybczynska <marta.rybczynska@kalray.eu>
---
 utils/benchmark/ebizzy-0.3/ebizzy.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utils/benchmark/ebizzy-0.3/ebizzy.h b/utils/benchmark/ebizzy-0.3/ebizzy.h
index da1a78c..afc18b5 100644
--- a/utils/benchmark/ebizzy-0.3/ebizzy.h
+++ b/utils/benchmark/ebizzy-0.3/ebizzy.h
@@ -18,7 +18,7 @@
 /*
  * FreeBSD compatibility stuff
  */
-#ifdef _freebsd
+#if defined(_freebsd) || defined(__UCLIBC__)
 #define mallopt(arg1, arg2) do { } while (0);
 #endif
 
-- 
1.7.4.4


[-- Attachment #4: Type: text/plain, Size: 405 bytes --]

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

[-- Attachment #5: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] PATCHES: build for uCLinux
  2013-08-08 10:42 ` [LTP] PATCHES: build for uCLinux Marta Rybczynska
@ 2013-08-12 10:14   ` chrubis
  0 siblings, 0 replies; 2+ messages in thread
From: chrubis @ 2013-08-12 10:14 UTC (permalink / raw)
  To: Marta Rybczynska; +Cc: ltp-list

Hi!
>  testcases/kernel/syscalls/flock/flock03.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/testcases/kernel/syscalls/flock/flock03.c b/testcases/kernel/syscalls/flock/flock03.c
> index bacf4f6..d0bd214 100644
> --- a/testcases/kernel/syscalls/flock/flock03.c
> +++ b/testcases/kernel/syscalls/flock/flock03.c
> @@ -92,7 +92,7 @@ int main(int argc, char **argv)
>  				 errno);
>  		if (pid == 0) {
>  #ifdef UCLINUX
> -			if (self_exec(argv[0], "ds", fd, FILENAME) < 0)
> +			if (self_exec(argv[0], "ds", fd, FILE_NAME) < 0)
>  				tst_brkm(TFAIL, cleanup, "self_exec failed, "
>  					 "errno &d", errno);
>  #else

This was allready fixed in git see:

12a9e945976a6ebfa9673ad27a79be704d9414a7

> From 6bc02047452c800eee47c7f7afe34ff524199454 Mon Sep 17 00:00:00 2001
> From: Marta Rybczynska <marta.rybczynska@kalray.eu>
> Date: Tue, 6 Aug 2013 09:39:16 +0200
> Subject: [PATCH 1/2] ebizzy.h: mallopt does not exist on uClinux
> 
> mallopt does not exist on uClibc, it requires MMU.
> 
> Signed-off-by: Marta Rybczynska <marta.rybczynska@kalray.eu>
> ---
>  utils/benchmark/ebizzy-0.3/ebizzy.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/utils/benchmark/ebizzy-0.3/ebizzy.h b/utils/benchmark/ebizzy-0.3/ebizzy.h
> index da1a78c..afc18b5 100644
> --- a/utils/benchmark/ebizzy-0.3/ebizzy.h
> +++ b/utils/benchmark/ebizzy-0.3/ebizzy.h
> @@ -18,7 +18,7 @@
>  /*
>   * FreeBSD compatibility stuff
>   */
> -#ifdef _freebsd
> +#if defined(_freebsd) || defined(__UCLIBC__)
>  #define mallopt(arg1, arg2) do { } while (0);
>  #endif

This one was applied to git, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-12 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <600498180.46596.1375958364140.JavaMail.zimbra@kalray.eu>
2013-08-08 10:42 ` [LTP] PATCHES: build for uCLinux Marta Rybczynska
2013-08-12 10:14   ` chrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox