about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/Subdirs1
-rw-r--r--sysdeps/unix/sysv/linux/sys/param.h32
2 files changed, 32 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/Subdirs b/sysdeps/unix/sysv/linux/Subdirs
deleted file mode 100644
index ea1a9e9d3a..0000000000
--- a/sysdeps/unix/sysv/linux/Subdirs
+++ /dev/null
@@ -1 +0,0 @@
-sysvipc
diff --git a/sysdeps/unix/sysv/linux/sys/param.h b/sysdeps/unix/sysv/linux/sys/param.h
new file mode 100644
index 0000000000..652605e92a
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/sys/param.h
@@ -0,0 +1,32 @@
+#ifndef _SYS_PARAM_H
+#define _SYS_PARAM_H
+
+#include <limits.h>
+#include <linux/limits.h>
+#include <linux/param.h>
+
+#include <sys/types.h>
+
+/* Don't change it. H.J. */
+#ifdef OLD_LINUX
+#undef	MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN 	8	/* max length of hostname */
+#endif
+
+#ifndef howmany
+#define howmany(x, y)	(((x)+((y)-1))/(y))
+#endif
+
+#ifndef roundup
+#define roundup(x, y)	((((x)+((y)-1))/(y))*(y))
+#endif
+
+#define MAXPATHLEN      PATH_MAX
+#define NOFILE          OPEN_MAX
+
+/*  Following the information of some of the kernel people I here assume
+ *  that block size (i.e. the value of stat.st_blocks) for all filesystem
+ *  is 512 bytes.  If not tell me or HJ.  -- Uli */
+#define DEV_BSIZE       512
+
+#endif