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.
Signed-off-by: Marta Rybczynska <[email protected]>
---
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
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.
Signed-off-by: Marta Rybczynska <[email protected]>
---
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
------------------------------------------------------------------------------
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