mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 22:10:13 +00:00
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 06febd8c67
is not correct. Drop it.
This commit is contained in:
parent
876e51548c
commit
63a788f48a
@ -199,10 +199,9 @@ __NTH (readlinkat (int __fd, const char *__restrict __path,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen)
|
extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen)
|
||||||
__THROW __wur __attr_access ((__write_only__, 1, 2));
|
__THROW __wur;
|
||||||
extern char *__REDIRECT_NTH (__getcwd_alias,
|
extern char *__REDIRECT_NTH (__getcwd_alias,
|
||||||
(char *__buf, size_t __size), getcwd)
|
(char *__buf, size_t __size), getcwd) __wur;
|
||||||
__wur __attr_access ((__write_only__, 1, 2));
|
|
||||||
extern char *__REDIRECT_NTH (__getcwd_chk_warn,
|
extern char *__REDIRECT_NTH (__getcwd_chk_warn,
|
||||||
(char *__buf, size_t __size, size_t __buflen),
|
(char *__buf, size_t __size, size_t __buflen),
|
||||||
__getcwd_chk)
|
__getcwd_chk)
|
||||||
|
@ -528,8 +528,7 @@ extern int fchdir (int __fd) __THROW __wur;
|
|||||||
an array is allocated with `malloc'; the array is SIZE
|
an array is allocated with `malloc'; the array is SIZE
|
||||||
bytes long, unless SIZE == 0, in which case it is as
|
bytes long, unless SIZE == 0, in which case it is as
|
||||||
big as necessary. */
|
big as necessary. */
|
||||||
extern char *getcwd (char *__buf, size_t __size) __THROW __wur
|
extern char *getcwd (char *__buf, size_t __size) __THROW __wur;
|
||||||
__attr_access ((__write_only__, 1, 2));
|
|
||||||
|
|
||||||
#ifdef __USE_GNU
|
#ifdef __USE_GNU
|
||||||
/* Return a malloc'd string containing the current directory name.
|
/* Return a malloc'd string containing the current directory name.
|
||||||
|
Loading…
Reference in New Issue
Block a user