Skip to contentSkip to conversation

PATCHES: build for uCLinux

LTP Marta Rybczynska 2 participants 2 messages Aug 8, 2013 – Aug 12, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hello,

I attach two small patches for LTP build on uCLinux.

Best regards,
Marta Rybczynska

From 42afd4c9f0546f1a9f28556bae58153271c8a86d Mon Sep 17 00:00:00 2001
From: Marta Rybczynska <[email protected]>
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.

---
 testcases/kernel/syscalls/flock/flock03.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
testcases/kernel/syscalls/flock/flock03.c +1 -1
index bacf4f6..d0bd214 100644
@@ -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
Signature · 1 line
1.7.4.4

From 6bc02047452c800eee47c7f7afe34ff524199454 Mon Sep 17 00:00:00 2001
From: Marta Rybczynska <[email protected]>
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.

---
 utils/benchmark/ebizzy-0.3/ebizzy.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
utils/benchmark/ebizzy-0.3/ebizzy.h +1 -1
index da1a78c..afc18b5 100644
@@ -18,7 +18,7 @@
 /*
  * FreeBSD compatibility stuff
  */
-#ifdef _freebsd
+#if defined(_freebsd) || defined(__UCLIBC__)
 #define mallopt(arg1, arg2) do { } while (0);
 #endif
 
Signature · 1 line
1.7.4.4

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#2 lore raw

Hi!

Quoted 8 lines
 testcases/kernel/syscalls/flock/flock03.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
testcases/kernel/syscalls/flock/flock03.c +0 -0
index bacf4f6..d0bd214 100644

testcases/kernel/syscalls/flock/flock03.c int main(int argc, char **argv) · line 98

Quoted 8 lines
testcases/kernel/syscalls/flock/flock03.c +1 -1
@@ -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

Quoted 17 lines

From 6bc02047452c800eee47c7f7afe34ff524199454 Mon Sep 17 00:00:00 2001
From: Marta Rybczynska <[email protected]>
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.

---
 utils/benchmark/ebizzy-0.3/ebizzy.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
utils/benchmark/ebizzy-0.3/ebizzy.h +0 -0
index da1a78c..afc18b5 100644

utils/benchmark/ebizzy-0.3/ebizzy.h line 23

Quoted 7 lines
utils/benchmark/ebizzy-0.3/ebizzy.h +1 -1
@@ -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.

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list