tag 455429 patch thanks Hi,
This is fixed in the last upstream release. I attached a patch.
Cheers,
Gonéri Le Bouder
diff -ru ltp-full-20060918.orig/testcases/kernel/ipc/ipc_stress/pipe_test_02.c ltp-full-20060918/testcases/kernel/ipc/ipc_stress/pipe_test_02.c
--- ltp-full-20060918.orig/testcases/kernel/ipc/ipc_stress/pipe_test_02.c 2008-04-09 17:57:10.000000000 +0200
+++ ltp-full-20060918/testcases/kernel/ipc/ipc_stress/pipe_test_02.c 2008-04-09 17:44:24.000000000 +0200
@@ -1,5 +1,5 @@
/*
- *
+ * Copyright (C) Bull S.A. 1996
* Copyright (c) International Business Machines Corp., 2001
*
* This program is free software; you can redistribute it and/or modify
@@ -16,12 +16,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
-/*
- * Copyright (C) Bull S.A. 1996
- * Level 1,5 Years Bull Confidential and Proprietary Information
- */
-
/*---------------------------------------------------------------------+
| pipe_test_02 |
| ==================================================================== |
@@ -73,11 +67,6 @@
#include <sys/wait.h>
#include <unistd.h>
-#ifdef _LINUX_
-#include <linux/limits.h>
-#endif
-
-
/* Defines:
*
* MB: one megabyte (MB)
@@ -98,6 +87,7 @@
#define MB (1024*1024)
#define DEFAULT_PACKETS_TO_SEND 1024
#define DEFAULT_NUM_CHILDREN 1
+#define OPEN_MAX 256
#define MAXCHILD (OPEN_MAX/2 - 2)
#define VALID_PACKET 0xabcdef01
#define USAGE "\nUsage: %s [-n] [-p nprocs] [{-m totmegs | -b totbytes}]\n\n" \
diff -ru ltp-full-20060918.orig/testcases/kernel/syscalls/fork/fork09.c ltp-full-20060918/testcases/kernel/syscalls/fork/fork09.c
--- ltp-full-20060918.orig/testcases/kernel/syscalls/fork/fork09.c 2008-04-09 17:57:10.000000000 +0200
+++ ltp-full-20060918/testcases/kernel/syscalls/fork/fork09.c 2008-04-09 17:45:31.000000000 +0200
@@ -44,7 +44,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
-#include <linux/limits.h> /* for OPEN_MAX */
+#include <unistd.h> /* for _SC_OPEN_MAX */
#include "test.h"
#include "usctest.h"
@@ -60,6 +60,8 @@
FILE **fildeses; /* file streams */
int mypid, nfiles;
+#define OPEN_MAX (sysconf(_SC_OPEN_MAX))
+
int main(int ac, char **av)
{
int pid, status, nf;
signature.asc
Description: Digital signature

