diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-10-16 00:50:20 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-24 12:17:32 +0100 |
commit | 5c515a1c7a86c510b6ae4f99c5b2e20d52622543 (patch) | |
tree | a50849a10ae012ea29754bb6a341ac57cbb4cd55 /meta/recipes-core/uclibc/uclibc-git/0001-fcntl-Add-AT_EMPTY_PATH-for-all-and-O_PATH-for-arm.patch | |
parent | a267cf21b8e7c79e53354bd645c205f617de816c (diff) | |
download | openembedded-core-contrib-5c515a1c7a86c510b6ae4f99c5b2e20d52622543.tar.gz |
uclibc: Implement syncfs and AT_EMPTY_PATH for all and O_PATH for arm
needed for systemd 225 to compile with uclibc
Change-Id: Id5f990edf4a773de49742f9f9ea5139e55e21f69
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-git/0001-fcntl-Add-AT_EMPTY_PATH-for-all-and-O_PATH-for-arm.patch')
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-git/0001-fcntl-Add-AT_EMPTY_PATH-for-all-and-O_PATH-for-arm.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-git/0001-fcntl-Add-AT_EMPTY_PATH-for-all-and-O_PATH-for-arm.patch b/meta/recipes-core/uclibc/uclibc-git/0001-fcntl-Add-AT_EMPTY_PATH-for-all-and-O_PATH-for-arm.patch new file mode 100644 index 0000000000..6942db4624 --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-git/0001-fcntl-Add-AT_EMPTY_PATH-for-all-and-O_PATH-for-arm.patch @@ -0,0 +1,42 @@ +From 4c8f5fe7d41493e8e181941ae5a01713155f44d1 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Thu, 15 Oct 2015 15:34:39 +0000 +Subject: [PATCH] fcntl: Add AT_EMPTY_PATH for all and O_PATH for arm + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- +Upstream-Status: Pending + + include/fcntl.h | 3 +++ + libc/sysdeps/linux/arm/bits/fcntl.h | 1 + + 2 files changed, 4 insertions(+) + +diff --git a/include/fcntl.h b/include/fcntl.h +index 11000dd..8a7ad9b 100644 +--- a/include/fcntl.h ++++ b/include/fcntl.h +@@ -65,6 +65,9 @@ __BEGIN_DECLS + # define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */ + # define AT_EACCESS 0x200 /* Test access permitted for + effective IDs, not real IDs. */ ++# ifdef __USE_GNU ++# define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname. */ ++# endif + #endif + + /* Do the file control operation described by CMD on FD. +diff --git a/libc/sysdeps/linux/arm/bits/fcntl.h b/libc/sysdeps/linux/arm/bits/fcntl.h +index aedc154..c6ba958 100644 +--- a/libc/sysdeps/linux/arm/bits/fcntl.h ++++ b/libc/sysdeps/linux/arm/bits/fcntl.h +@@ -50,6 +50,7 @@ + # define O_DIRECT 0200000 /* Direct disk access. */ + # define O_NOATIME 01000000 /* Do not set atime. */ + # define O_CLOEXEC 02000000 /* Set close_on_exec. */ ++# define O_PATH 010000000 /* Resolve pathname but do not open file. */ + #endif + + /* For now Linux has synchronisity options for data and read operations. +-- +2.6.1 + |