From: Lionel Sambuc Date: Mon, 8 Apr 2013 14:54:49 +0000 (+0200) Subject: Removing include/minix/limits.h X-Git-Tag: v3.3.0~1046 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F479%2F2;p=minix.git Removing include/minix/limits.h This files defines two constants which are only used through sys/syslimits. So they where moved there instead of including the file and it was removed. Change-Id: Iba3d220144dddf5d6411a6c66e2f223a1aafb50f --- diff --git a/distrib/sets/lists/minix/mi b/distrib/sets/lists/minix/mi index 3930c1945..fb09ab018 100644 --- a/distrib/sets/lists/minix/mi +++ b/distrib/sets/lists/minix/mi @@ -638,7 +638,7 @@ ./usr/include/minix/ipc.h minix-sys ./usr/include/minix/keymap.h minix-sys ./usr/include/minix/libminixfs.h minix-sys -./usr/include/minix/limits.h minix-sys +./usr/include/minix/limits.h minix-sys obsolete ./usr/include/minix/log.h minix-sys ./usr/include/minix minix-sys ./usr/include/minix/minlib.h minix-sys diff --git a/include/minix/Makefile b/include/minix/Makefile index f648464a3..f52c0ce08 100644 --- a/include/minix/Makefile +++ b/include/minix/Makefile @@ -12,7 +12,7 @@ INCS+= acpi.h audio_fw.h bitmap.h \ driver.h drivers.h drvlib.h ds.h \ endpoint.h fb.h fslib.h gpio.h gcov.h hash.h \ hgfs.h ioctl.h input.h ipc.h ipcconst.h \ - keymap.h limits.h log.h mmio.h mount.h mthread.h minlib.h \ + keymap.h log.h mmio.h mount.h mthread.h minlib.h \ netdriver.h optset.h padconf.h partition.h portio.h \ priv.h procfs.h profile.h queryparam.h \ reboot.h rs.h safecopies.h sched.h sef.h sffs.h \ diff --git a/include/minix/limits.h b/include/minix/limits.h deleted file mode 100644 index ee1012a95..000000000 --- a/include/minix/limits.h +++ /dev/null @@ -1,12 +0,0 @@ -/* The header defines the Minix values for some MINIX - * constants. Both the MINIX constants and the non-posix constants - * refer to these underlying definitions. - */ - -#ifndef _MINIX_LIMITS_H -#define _MINIX_LIMITS_H - -#define __MINIX_OPEN_MAX 255 /* a process may have 255 files open */ -#define __MINIX_PATH_MAX 1024/* a pathname may contain 1023 chars (+ '\0')*/ - -#endif /* _MINIX_LIMITS_H */ diff --git a/sys/sys/syslimits.h b/sys/sys/syslimits.h index cf7c8a759..e10c4e1c7 100644 --- a/sys/sys/syslimits.h +++ b/sys/sys/syslimits.h @@ -34,7 +34,11 @@ #ifndef _SYS_SYSLIMITS_H_ #define _SYS_SYSLIMITS_H_ -#include +#if defined(__minix) +#define __MINIX_OPEN_MAX 255 /* a process may have 255 files open */ +#define __MINIX_PATH_MAX 1024/* a pathname may contain 1023 chars (+ '\0')*/ +#endif /* defined(__minix) */ + #include #if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \