diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-02-21 10:22:29 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-02-21 10:22:29 +0000 |
commit | f2b0dc44042cae1ab0f99a3938b9265669e4d0bc (patch) | |
tree | 0124a63e3ab62f19886314be82df8b51a64210d2 /posix/unistd.h | |
parent | 9cfe5381a17b19e6558902606a59e6ad6695e410 (diff) | |
download | glibc-f2b0dc44042cae1ab0f99a3938b9265669e4d0bc.tar.gz glibc-f2b0dc44042cae1ab0f99a3938b9265669e4d0bc.tar.xz glibc-f2b0dc44042cae1ab0f99a3938b9265669e4d0bc.zip |
symlink and readlink are unconditionally available in the 2001 spec.
Diffstat (limited to 'posix/unistd.h')
-rw-r--r-- | posix/unistd.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/posix/unistd.h b/posix/unistd.h index 744c10c50b..97e28fc70b 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -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 */ |