From 598f70c8b4adff38f53a5a95888cc863bd35bab4 Mon Sep 17 00:00:00 2001 From: trasz Date: Tue, 21 Apr 2015 13:55:24 +0000 Subject: Modify kern___getcwd() to take max pathlen limit as an additional argument. This will be used for the Linux emulation layer - for Linux, PATH_MAX is 4096 and not 1024. Differential Revision: https://reviews.freebsd.org/D2335 Reviewed by: kib@ MFC after: 1 month Sponsored by: The FreeBSD Foundation --- sys/compat/linux/linux_misc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/compat/linux/linux_misc.h') diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index 154d78f..51135d8 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -55,6 +55,8 @@ #define LINUX_MREMAP_MAYMOVE 1 #define LINUX_MREMAP_FIXED 2 +#define LINUX_PATH_MAX 4096 + extern const char *linux_platform; /* -- cgit v1.1