link: move fallback definitions of AT_* constants to xlat/

* link.c: Move definitions of AT_* constants ...
* xlat/at_flags.in: ... here.
This commit is contained in:
Дмитрий Левин 2015-06-17 19:45:26 +00:00
parent fddeeba9b8
commit f64a4395d9
2 changed files with 5 additions and 21 deletions

16
link.c
View File

@ -2,22 +2,6 @@
#include <fcntl.h>
#ifndef AT_SYMLINK_NOFOLLOW
# define AT_SYMLINK_NOFOLLOW 0x100
#endif
#ifndef AT_REMOVEDIR
# define AT_REMOVEDIR 0x200
#endif
#ifndef AT_SYMLINK_FOLLOW
# define AT_SYMLINK_FOLLOW 0x400
#endif
#ifndef AT_NO_AUTOMOUNT
# define AT_NO_AUTOMOUNT 0x800
#endif
#ifndef AT_EMPTY_PATH
# define AT_EMPTY_PATH 0x1000
#endif
#include "xlat/at_flags.h"
SYS_FUNC(link)

View File

@ -1,5 +1,5 @@
AT_SYMLINK_NOFOLLOW
AT_REMOVEDIR
AT_SYMLINK_FOLLOW
AT_NO_AUTOMOUNT
AT_EMPTY_PATH
AT_SYMLINK_NOFOLLOW 0x100
AT_REMOVEDIR 0x200
AT_SYMLINK_FOLLOW 0x400
AT_NO_AUTOMOUNT 0x800
AT_EMPTY_PATH 0x1000