summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.h
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2015-04-21 13:55:24 +0000
committertrasz <trasz@FreeBSD.org>2015-04-21 13:55:24 +0000
commit598f70c8b4adff38f53a5a95888cc863bd35bab4 (patch)
treeb66198948483bc993331cfa74ee83476af8aa51b /sys/compat/linux/linux_misc.h
parent25e5e803e77bc9385fbd54fcaf14eae06251d6f8 (diff)
downloadFreeBSD-src-598f70c8b4adff38f53a5a95888cc863bd35bab4.zip
FreeBSD-src-598f70c8b4adff38f53a5a95888cc863bd35bab4.tar.gz
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
Diffstat (limited to 'sys/compat/linux/linux_misc.h')
-rw-r--r--sys/compat/linux/linux_misc.h2
1 files changed, 2 insertions, 0 deletions
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;
/*
OpenPOWER on IntegriCloud