diff options
author | Kamil Rytarowski <n54@gmx.com> | 2015-12-07 21:21:12 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2015-12-07 21:21:12 +0000 |
commit | 1f1a15332b99bfaf2c6ae0fa702762a15b840d17 (patch) | |
tree | ac6c248c2f88309ed3a837d1f499f8c8a889eb9f /lldb/packages/Python/lldbsuite/test/api/multithreaded/common.h | |
parent | 55d927a4fd31ba5334b8a752c47543abc7e73a6d (diff) | |
download | bcm5719-llvm-1f1a15332b99bfaf2c6ae0fa702762a15b840d17.tar.gz bcm5719-llvm-1f1a15332b99bfaf2c6ae0fa702762a15b840d17.zip |
getwd(3) with NULL pointer extension is supported on NetBSD
Summary:
The getwd() and getcwd() functions conform to IEEE Std 1003.1-1990
(POSIX.1). The IEEE Std 1003.1-2004 (POSIX.1) revision marked
getwd() as legacy and recommended the use of getcwd() instead. The IEEE
Std 1003.1-2008 (``POSIX.1'') revision removed getwd() from the
specification.
The ability to specify a NULL pointer and have getcwd() allocate memory
as necessary is an extension.
The getwd() function appeared in 4.0BSD.
Reviewers: emaste, tfiala, clayborg
Subscribers: lldb-commits, joerg
Differential Revision: http://reviews.llvm.org/D15260
llvm-svn: 254944
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/api/multithreaded/common.h')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/api/multithreaded/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/api/multithreaded/common.h b/lldb/packages/Python/lldbsuite/test/api/multithreaded/common.h index a943f28e731..dad8bba07a3 100644 --- a/lldb/packages/Python/lldbsuite/test/api/multithreaded/common.h +++ b/lldb/packages/Python/lldbsuite/test/api/multithreaded/common.h @@ -56,9 +56,9 @@ public: } }; -/// Allocates a char buffer with the current working directory on Linux/Darwin +/// Allocates a char buffer with the current working directory inline char* get_working_dir() { -#if defined(__APPLE__) || defined(__FreeBSD__) +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) return getwd(0); #else return get_current_dir_name(); |