mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
symlink and readlink are unconditionally available in the 2001 spec.
This commit is contained in:
parent
9cfe5381a1
commit
f2b0dc4404
@ -734,7 +734,7 @@ extern int ttyslot (void) __THROW;
|
||||
extern int link (__const char *__from, __const char *__to)
|
||||
__THROW __nonnull ((1, 2)) __wur;
|
||||
|
||||
#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
|
||||
#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
|
||||
/* Make a symbolic link to FROM named TO. */
|
||||
extern int symlink (__const char *__from, __const char *__to)
|
||||
__THROW __nonnull ((1, 2)) __wur;
|
||||
@ -1046,6 +1046,11 @@ extern void swab (__const void *__restrict __from, void *__restrict __to,
|
||||
extern char *ctermid (char *__s) __THROW __nonnull ((1));
|
||||
#endif
|
||||
|
||||
/* Define some macros helping to catch buffer overflows. */
|
||||
#if __USE_FORTIFY_LEVEL > 0 && !defined __cplusplus
|
||||
# include <bits/unistd.h>
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* unistd.h */
|
||||
|
Loading…
Reference in New Issue
Block a user