* libc/include/sys/unistd.h (MAXPATHLEN): Delete.
* libc/include/sys/param.h (MAXPATHLEN): Define. * libc/sys/rtems/sys/param.h (MAXPATHLEN): Likewise. * libc/unix/getcwd.c: Include <sys/param.h> for MAXPATHLEN.
This commit is contained in:
parent
9240d3c824
commit
05b637e340
|
@ -1,3 +1,10 @@
|
||||||
|
2013-10-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||||
|
|
||||||
|
* libc/include/sys/unistd.h (MAXPATHLEN): Delete.
|
||||||
|
* libc/include/sys/param.h (MAXPATHLEN): Define.
|
||||||
|
* libc/sys/rtems/sys/param.h (MAXPATHLEN): Likewise.
|
||||||
|
* libc/unix/getcwd.c: Include <sys/param.h> for MAXPATHLEN.
|
||||||
|
|
||||||
2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||||
|
|
||||||
* libc/libc/sys/rtems/sys/param.h: Update some parameters to
|
* libc/libc/sys/rtems/sys/param.h: Update some parameters to
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
# define _SYS_PARAM_H
|
# define _SYS_PARAM_H
|
||||||
|
|
||||||
#include <sys/config.h>
|
#include <sys/config.h>
|
||||||
|
#include <sys/syslimits.h>
|
||||||
#include <machine/endian.h>
|
#include <machine/endian.h>
|
||||||
#include <machine/param.h>
|
#include <machine/param.h>
|
||||||
|
|
||||||
|
@ -19,6 +20,8 @@
|
||||||
# define PATHSIZE (1024)
|
# define PATHSIZE (1024)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define MAXPATHLEN PATH_MAX
|
||||||
|
|
||||||
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
||||||
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
||||||
|
|
||||||
|
|
|
@ -500,10 +500,6 @@ int _EXFUN(unlinkat, (int, const char *, int));
|
||||||
#define _CS_V6_ENV _CS_V7_ENV
|
#define _CS_V6_ENV _CS_V7_ENV
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __CYGWIN__
|
|
||||||
# define MAXPATHLEN 1024
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -156,9 +156,7 @@
|
||||||
* It should be set high enough to allow all legitimate uses, but halt
|
* It should be set high enough to allow all legitimate uses, but halt
|
||||||
* infinite loops reasonably quickly.
|
* infinite loops reasonably quickly.
|
||||||
*/
|
*/
|
||||||
#if !defined(__rtems__)
|
|
||||||
#define MAXPATHLEN PATH_MAX
|
#define MAXPATHLEN PATH_MAX
|
||||||
#endif
|
|
||||||
#define MAXSYMLINKS 32
|
#define MAXSYMLINKS 32
|
||||||
|
|
||||||
/* Bit map related macros. */
|
/* Bit map related macros. */
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
static char sccsid[] = "@(#)getcwd.c 5.11 (Berkeley) 2/24/91";
|
static char sccsid[] = "@(#)getcwd.c 5.11 (Berkeley) 2/24/91";
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
|
#include <sys/param.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
|
Loading…
Reference in New Issue