diff options
author | Tom Deseyn <tom.deseyn@gmail.com> | 2017-12-01 12:38:13 +0100 |
---|---|---|
committer | Stephen Toub <stoub@microsoft.com> | 2017-12-01 06:38:13 -0500 |
commit | a71ed469befc3c1a352638244ba262d42fe0f775 (patch) | |
tree | 579343d9028a3689ff7be783bd6850fbec6a3c13 /src/corefx | |
parent | c1e44d9db9cc0d03e5f44af665acefa3589a6883 (diff) | |
download | coreclr-a71ed469befc3c1a352638244ba262d42fe0f775.tar.gz coreclr-a71ed469befc3c1a352638244ba262d42fe0f775.tar.bz2 coreclr-a71ed469befc3c1a352638244ba262d42fe0f775.zip |
Unix: Remove MaxPath, MaxName (#15229)
* Unix: Remove MaxPath, MaxName
PATH_MAX is not an upper bound on path lengths on Unix. system function return
values should be used to determine behavior, instead of limiting the path length.
NAME_MAX depends on the file system used. Its value depends on the path, it is
not constant for the entire system.
* PR feedback
* Sync with corefx Interop.ReadLink
* Deal with /etc/localtime link containing relative path
Diffstat (limited to 'src/corefx')
-rw-r--r-- | src/corefx/System.Globalization.Native/timeZoneInfo.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/corefx/System.Globalization.Native/timeZoneInfo.cpp b/src/corefx/System.Globalization.Native/timeZoneInfo.cpp index 0dd28b4b70..d5ab7e094d 100644 --- a/src/corefx/System.Globalization.Native/timeZoneInfo.cpp +++ b/src/corefx/System.Globalization.Native/timeZoneInfo.cpp @@ -12,20 +12,6 @@ #include "errors.h" /* -Gets the symlink value for the path. -*/ -extern "C" int32_t GlobalizationNative_ReadLink(const char* path, char* result, size_t resultCapacity) -{ - ssize_t r = readlink(path, result, resultCapacity - 1); // subtract one to make room for the NULL character - - if (r < 1 || r >= resultCapacity) - return false; - - result[r] = '\0'; - return true; -} - -/* These values should be kept in sync with the managed Interop.GlobalizationInterop.TimeZoneDisplayNameType enum. */ enum TimeZoneDisplayNameType : int32_t |