diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2021-09-10 19:39:35 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2021-09-16 22:32:53 +0200 |
commit | 63a788f48a713f2081f200dd054df3e728b0e7c2 (patch) | |
tree | 6c003f9c053db9c56f0c4a3686f4d71cec522415 /posix/unistd.h | |
parent | 876e51548cc5d96af5ea13febd0a1a75bfc04497 (diff) | |
download | glibc-63a788f48a713f2081f200dd054df3e728b0e7c2.tar glibc-63a788f48a713f2081f200dd054df3e728b0e7c2.tar.gz glibc-63a788f48a713f2081f200dd054df3e728b0e7c2.tar.bz2 glibc-63a788f48a713f2081f200dd054df3e728b0e7c2.zip |
posix: Fix attribute access mode on getcwd [BZ #27476]
There is a GNU extension that allows to call getcwd(NULL, >0). It is
described in the documentation, but also directly in the unistd.h
header, just above the declaration.
Therefore the attribute access mode added in commit 06febd8c6705
is not correct. Drop it.
Diffstat (limited to 'posix/unistd.h')
-rw-r--r-- | posix/unistd.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/posix/unistd.h b/posix/unistd.h index 3dca65732f..8224c5fbc9 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -528,8 +528,7 @@ extern int fchdir (int __fd) __THROW __wur; an array is allocated with `malloc'; the array is SIZE bytes long, unless SIZE == 0, in which case it is as big as necessary. */ -extern char *getcwd (char *__buf, size_t __size) __THROW __wur - __attr_access ((__write_only__, 1, 2)); +extern char *getcwd (char *__buf, size_t __size) __THROW __wur; #ifdef __USE_GNU /* Return a malloc'd string containing the current directory name. |